Liboobs (System configuration management) Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
OobsServicesConfigOobsServicesConfig — 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
);
Details
OobsServicesConfigClass
typedef struct { OobsObjectClass parent_class; void (*_oobs_padding1) (void); void (*_oobs_padding2) (void); void (*_oobs_padding3) (void); void (*_oobs_padding4) (void); } OobsServicesConfigClass;
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.
|
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.
|
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.
|
An OobsServicesConfig. |
Returns : |
An OobsServicesRunlevel describing the current runlevel. This value must not be freed, modified, or stored. |