| PolicyKit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
PolkitUnixGroup;
PolkitIdentity * polkit_unix_group_new (gid_t gid);
PolkitIdentity * polkit_unix_group_new_for_name (const gchar *name,
GError **error);
gid_t polkit_unix_group_get_gid (PolkitUnixGroup *group);
void polkit_unix_group_set_gid (PolkitUnixGroup *group,
gid_t gid);
typedef struct _PolkitUnixGroup PolkitUnixGroup;
The PolkitUnixGroup struct should not be accessed directly.
PolkitIdentity * polkit_unix_group_new (gid_t gid);
Creates a new PolkitUnixGroup object for gid.
|
A UNIX group id. |
Returns : |
A PolkitUnixGroup object. Free with g_object_unref().
|
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.
|
gid_t 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, gid_t gid);
Sets gid for group.
|
A PolkitUnixGroup. |
|
A UNIX group id. |