Top | ![]() |
![]() |
![]() |
![]() |
OobsGroup * | oobs_group_new () |
const gchar * | oobs_group_get_name () |
void | oobs_group_set_password () |
gid_t | oobs_group_get_gid () |
void | oobs_group_set_gid () |
GList * | oobs_group_get_users () |
void | oobs_group_clear_users () |
void | oobs_group_add_user () |
void | oobs_group_remove_user () |
gboolean | oobs_group_is_root () |
OobsGroup *
oobs_group_new (const gchar *name
);
Returns a newly allocated OobsGroup with the name specified by name
.
const gchar *
oobs_group_get_name (OobsGroup *group
);
Returns the name of the group represented by group
.
gid_t
oobs_group_get_gid (OobsGroup *group
);
Returns the group ID (GID) associated to OobsGroup
void oobs_group_set_gid (OobsGroup *group
,gid_t gid
);
Sets the group ID (GID) of group to be gid.
GList *
oobs_group_get_users (OobsGroup *group
);
Returns a GList containing pointers to the OobsUser objects that represent the users represented by the group.
void oobs_group_add_user (OobsGroup *group
,OobsUser *user
);
Adds a new user to the group. If the user is already in the group, it does nothing.
void oobs_group_remove_user (OobsGroup *group
,OobsUser *user
);
Removes an user from the group. If the user isn't a member of this group, this function does nothing.
“gid”
property“gid” guint
Main group GID for the group.
Owner: OobsGroup
Flags: Read / Write
Allowed values: <= G_MAXINT
Default value: 2147483647
“name”
property“name” gchar *
Name for the group.
Owner: OobsGroup
Flags: Read / Write / Construct Only
Default value: NULL
“password”
property“password” gchar *
Password for the group.
Owner: OobsGroup
Flags: Read / Write
Default value: NULL