| Top |
| OobsObject * | oobs_groups_config_get () |
| OobsList * | oobs_groups_config_get_groups () |
| OobsResult | oobs_groups_config_add_group () |
| OobsResult | oobs_groups_config_delete_group () |
| OobsGroup * | oobs_groups_config_get_from_name () |
| OobsGroup * | oobs_groups_config_get_from_gid () |
| gboolean | oobs_groups_config_is_name_used () |
| gboolean | oobs_groups_config_is_gid_used () |
| gid_t | oobs_groups_config_find_free_gid () |
OobsObject *
oobs_groups_config_get (void);
Returns the OobsGroupsConfig singleton, which represents the groups configuration.
OobsList *
oobs_groups_config_get_groups (OobsGroupsConfig *config);
OobsResult oobs_groups_config_add_group (OobsGroupsConfig *config,OobsGroup *group);
Add a group to the configuration, immediately committing changes to the system.
On success, group
will be appended to the groups list.
OobsResult oobs_groups_config_delete_group (OobsGroupsConfig *config,OobsGroup *group);
Delete an group from the configuration, immediately committing changes to the system.
On success, group
will be removed from the groups list.
OobsGroup * oobs_groups_config_get_from_name (OobsGroupsConfig *config,const gchar *name);
Gets the (first) group called name
. This is a convenience function
to avoid walking manually over the groups list.
OobsGroup * oobs_groups_config_get_from_gid (OobsGroupsConfig *config,gid_t gid);
Gets the (first) group whose GID is gid
. This is a convenience function
to avoid walking manually over the groups list.
gboolean oobs_groups_config_is_name_used (OobsGroupsConfig *config,const gchar *name);
Check whether name
is already used by an existing group or not. This is
a convenience function to avoid walking manually over the groups list.
gboolean oobs_groups_config_is_gid_used (OobsGroupsConfig *config,gid_t gid);
Check whether gid
is already used by an existing group or not. This is
a convenience function to avoid walking manually over the groups list.
gid_t oobs_groups_config_find_free_gid (OobsGroupsConfig *config,gid_t gid_min,gid_t gid_max);