add_role_from_structure


Description:

[ Version ( since = "1.14" ) ]
public void add_role_from_structure (Structure structure)

Add a new role to permissions based on structure, for example given a role named `tester`, which should be granted a permission named `permission1`, the structure could be created with:

``` gst_structure_new ("tester", "permission1", G_TYPE_BOOLEAN, TRUE, NULL); ```