polkit Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
PolkitUnixGroup; PolkitIdentity * polkit_unix_group_new (gint gid
); PolkitIdentity * polkit_unix_group_new_for_name (const gchar *name
,GError **error
); gint polkit_unix_group_get_gid (PolkitUnixGroup *group
); void polkit_unix_group_set_gid (PolkitUnixGroup *group
,gint gid
);
typedef struct _PolkitUnixGroup PolkitUnixGroup;
The PolkitUnixGroup struct should not be accessed directly.
PolkitIdentity * polkit_unix_group_new (gint gid
);
Creates a new PolkitUnixGroup object for gid
.
|
A UNIX group id. |
Returns : |
A PolkitUnixGroup object. Free with g_object_unref() . [transfer full]
|
PolkitIdentity * polkit_unix_group_new_for_name (const gchar *name
,GError **error
);
Creates a new PolkitUnixGroup object for a group with the group name
name
.
|
A UNIX group name. |
|
Return location for error. |
Returns : |
(allow-none): A PolkitUnixGroup object or NULL if error
is set. [transfer full]
|
gint polkit_unix_group_get_gid (PolkitUnixGroup *group
);
Gets the UNIX group id for group
.
|
A PolkitUnixGroup. |
Returns : |
A UNIX group id. |
void polkit_unix_group_set_gid (PolkitUnixGroup *group
,gint gid
);
Sets gid
for group
.
|
A PolkitUnixGroup. |
|
A UNIX group id. |
"gid"
property"gid" gint : Read / Write / Construct
The UNIX group id.
Allowed values: >= 0
Default value: 0