GIO Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
GSimplePermission is a trivial implementation of GPermission that represents a permission that is either always or never allowed. The value is given at constuction and doesn't change.
Calling request or release will result in errors.
typedef struct _GSimplePermission GSimplePermission;
GSimplePermission is an opaque data structure. There are no methods except for those defined by GPermission.
GPermission * g_simple_permission_new (gboolean allowed
);
Creates a new GPermission instance that represents an action that is either always or never allowed.
|
TRUE if the action is allowed
|
Returns : |
the GSimplePermission, as a GPermission |
Since 2.26