PolicyKit Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
Synopsis
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);
Details
PolkitUnixGroup
typedef struct _PolkitUnixGroup PolkitUnixGroup;
The PolkitUnixGroup struct should not be accessed directly.
polkit_unix_group_new ()
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() .
|
polkit_unix_group_new_for_name ()
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 : |
A PolkitUnixGroup object or NULL if error is set.
|
polkit_unix_group_get_gid ()
gint polkit_unix_group_get_gid (PolkitUnixGroup *group);
Gets the UNIX group id for group
.
|
A PolkitUnixGroup. |
Returns : |
A UNIX group id. |
polkit_unix_group_set_gid ()
void polkit_unix_group_set_gid (PolkitUnixGroup *group, gint gid);
Sets gid
for group
.
|
A PolkitUnixGroup. |
|
A UNIX group id. |
Property Details
The "gid"
property
"gid" gint : Read / Write / Construct
The UNIX group id.
Allowed values: >= 0
Default value: 0