|  |  |  | Liboobs (System configuration management) Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
OobsGroup; OobsGroupClass; 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); 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); gboolean oobs_group_is_root (OobsGroup *group);
"gid" guint : Read / Write "name" gchar* : Read / Write / Construct Only "password" gchar* : Read / Write
typedef struct {
  OobsObjectClass parent_class;
  
  void (*_oobs_padding1) (void);
  void (*_oobs_padding2) (void);
} OobsGroupClass;
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 group.
| 
 | 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);
| 
 | |
| 
 | 
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.
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.