| 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_clear_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 (constgchar *name);
Returns a newly allocated OobsGroup with the name specified by name.
|
group name. |
Returns : |
A new |
constgchar * oobs_group_get_name (OobsGroup *group);
Returns the name of the group represented by
|
An |
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, constgchar *password);
Sets the group password for the group defined by OobsGroup, overwriting the previous one.
|
An |
|
A new password for |
void oobs_group_set_crypted_password (OobsGroup *group, constgchar *crypted_password);
Sets an already crypted password for the group defined by OobsGroup, overwriting the previous one.
|
An |
|
a new crypted password for |
gid_t oobs_group_get_gid (OobsGroup *group);
Returns the group ID (GID) associated to OobsGroup
|
An |
Returns : |
the |
void oobs_group_set_gid (OobsGroup *group,gid_t gid);
Sets the group ID (GID) of
|
An |
|
A new GID for |
GList * oobs_group_get_users (OobsGroup *group);
Returns a
|
An |
Returns : |
a newly allocated g_list_free() |
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.
|
An |
|
An OobsUser to add to the group. |
"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