OobsServicesConfig

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

Synopsis

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

  GEnum
   +----OobsRunlevelRole
  GObject
   +----OobsObject
         +----OobsServicesConfig

Description

Details

enum OobsRunlevelRole

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

OOBS_RUNLEVEL_HALT

OOBS_RUNLEVEL_REBOOT

OOBS_RUNLEVEL_MONOUSER

OOBS_RUNLEVEL_MULTIUSER


struct OobsServicesRunlevel

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


struct OobsServicesConfig

struct OobsServicesConfig;


struct OobsServicesConfigClass

struct OobsServicesConfigClass {
  OobsObjectClass parent_class;

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


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