|  |  |  | Liboobs (System configuration management) Reference Manual |  | 
|---|---|---|---|---|
| OobsServicesConfigOobsServicesConfig — Object that represents the configuration of services that start/stop during init/shutdown. | 
                    OobsServicesRunlevel;
enum                OobsRunlevelRole;
                    OobsServicesConfig;
OobsObject*         oobs_services_config_get            (void);
OobsList*           oobs_services_config_get_services   (OobsServicesConfig *config);
GList*              oobs_services_config_get_runlevels  (OobsServicesConfig *config);
const OobsServicesRunlevel* oobs_services_config_get_default_runlevel
                                                        (OobsServicesConfig *config);
typedef enum
{
  OOBS_RUNLEVEL_HALT,
  OOBS_RUNLEVEL_REBOOT,
  OOBS_RUNLEVEL_MONOUSER,
  OOBS_RUNLEVEL_MULTIUSER
} OobsRunlevelRole;
OobsObject* oobs_services_config_get (void);
Returns the OobsServicesConfig singleton, which represents the services that are run during system init.
| Returns : | the singleton OobsServicesConfig object. | 
OobsList* oobs_services_config_get_services (OobsServicesConfig *config);
Returns an OobsList containing objects of type OobsService. The returned OobsList is locked, meaning that new elements can't be added nor removed.
| 
 | An OobsServicesConfig. | 
| Returns : | an OobsList containing the services list. | 
GList* oobs_services_config_get_runlevels (OobsServicesConfig *config);
Returns a list of OobsServicesRunlevel describing the available runlevels.
| 
 | An OobsServicesConfig. | 
| Returns : | list of runlevels. the list must be freed with g_list_free(); | 
const OobsServicesRunlevel* oobs_services_config_get_default_runlevel (OobsServicesConfig *config);
Returns the current runlevel.
| 
 | An OobsServicesConfig. | 
| Returns : | An OobsServicesRunlevel describing the current runlevel. This value must not be freed, modified, or stored. |