![]() |
![]() |
![]() |
Liboobs (System configuration management) Reference Manual | ![]() |
---|---|---|---|---|
OobsGroup; OobsGroup* oobs_group_new (const gchar *name); const gchar* oobs_group_get_name (OobsGroup *group); void oobs_group_set_password (OobsGroup *group, const gchar *password); void oobs_group_set_crypted_password (OobsGroup *group, const gchar *crypted_password); gid_t oobs_group_get_gid (OobsGroup *group); void oobs_group_set_gid (OobsGroup *group, gid_t gid); GList* oobs_group_get_users (OobsGroup *group); void oobs_group_add_user (OobsGroup *group, OobsUser *user); void oobs_group_remove_user (OobsGroup *group, OobsUser *user);
"crypted-password" gchar* : Read / Write "gid" gint : Read / Write "name" gchar* : Read / Write / Construct Only "password" gchar* : Write
OobsGroup* oobs_group_new (const gchar *name);
Returns a newly allocated OobsGroup with the name specified by name
.
|
group name. |
Returns : |
A new OobsGroup. |
const gchar* oobs_group_get_name (OobsGroup *group);
Returns the name of the group represented by OobsGroup.
|
An OobsGroup. |
Returns : |
A pointer to the group name as a string. This string must not be freed, modified or stored. |
void oobs_group_set_password (OobsGroup *group, const gchar *password);
Sets the group password for the group defined by OobsGroup, overwriting the previous one.
|
An OobsGroup. |
|
A new password for group. |
void oobs_group_set_crypted_password (OobsGroup *group, const gchar *crypted_password);
Sets an already crypted password for the group defined by OobsGroup, overwriting the previous one.
|
An OobsGroup. |
|
a new crypted password for group. |
gid_t oobs_group_get_gid (OobsGroup *group);
Returns the group ID (GID) associated to OobsGroup
|
An OobsGroup. |
Returns : |
the group GID. |
void oobs_group_set_gid (OobsGroup *group, gid_t gid);
Sets the group ID (GID) of group to be gid.
|
An OobsGroup. |
|
A new GID for group. |
GList* oobs_group_get_users (OobsGroup *group);
Returns a GList containing pointers to the OobsUser objects that represent the users represented by the group.
|
An OobsGroup. |
Returns : |
a newly allocated GList, use g_list_free() to free it.
|
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.
"crypted-password"
property"crypted-password" gchar* : Read / Write
Crypted password for the group.
Default value: NULL
"gid"
property"gid" gint : Read / Write
Main group GID for the group.
Allowed values: [0,65534]
Default value: 65534
"name"
property"name" gchar* : Read / Write / Construct Only
Name for the group.
Default value: NULL