## OobsServicesConfig OobsServicesConfig — Object that represents the configuration of services that start/stop during init/shutdown |

## Synopsis

                        OobsServicesConfig;
                        OobsServicesConfigClass;
                        OobsServicesRunlevel;
    enum                OobsRunlevelRole;
    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);

## Object Hierarchy

      GObject
       +----OobsObject
             +----OobsServicesConfig

## Description

## Details

### OobsServicesConfig

    typedef struct _OobsServicesConfig OobsServicesConfig;

### OobsServicesConfigClass

    typedef struct {
      OobsObjectClass parent_class;

      void (*_oobs_padding1) (void);
      void (*_oobs_padding2) (void);
      void (*_oobs_padding3) (void);
      void (*_oobs_padding4) (void);
    } OobsServicesConfigClass;

### OobsServicesRunlevel

    typedef struct {
      gchar *name;
      guint role;
    } OobsServicesRunlevel;

### enum OobsRunlevelRole

    typedef enum
    {
      OOBS_RUNLEVEL_HALT,
      OOBS_RUNLEVEL_REBOOT,
      OOBS_RUNLEVEL_MONOUSER,
      OOBS_RUNLEVEL_MULTIUSER
    } OobsRunlevelRole;

### oobs_services_config_get ()

    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.

### oobs_services_config_get_services ()

    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.

`config` : | An OobsServicesConfig.
Returns : | an OobsList containing the services list.

### oobs_services_config_get_runlevels ()

    GList*              oobs_services_config_get_runlevels  (OobsServicesConfig *config);

Returns a list of OobsServicesRunlevel describing the available runlevels.

`config` : | An OobsServicesConfig.
Returns : | list of runlevels. the list must be freed with `g_list_free()`;

### oobs_services_config_get_default_runlevel ()

    const OobsServicesRunlevel* oobs_services_config_get_default_runlevel
                                                            (OobsServicesConfig *config);

Returns the current runlevel.

`config` : | An OobsServicesConfig.
Returns : | An OobsServicesRunlevel describing the current runlevel. This value must not be freed, modified, or stored.

## See Also

OobsService