|  |  |  | Liboobs (System configuration management) Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
OobsService; OobsServiceClass; enum OobsServiceStatus; void oobs_service_set_runlevel_configuration (OobsService *service,OobsServicesRunlevel *runlevel,OobsServiceStatus status,gint priority); void oobs_service_get_runlevel_configuration (OobsService *service,OobsServicesRunlevel *runlevel,OobsServiceStatus *status,gint *priority); const gchar* oobs_service_get_name (OobsService *service);
typedef struct {
  OobsObjectClass parent_class;
  void (*_oobs_padding1) (void);
  void (*_oobs_padding2) (void);
} OobsServiceClass;
typedef enum
{
  OOBS_SERVICE_START,
  OOBS_SERVICE_STOP,
  /* For services not listed in that runlevel */
  OOBS_SERVICE_IGNORE
} OobsServiceStatus;
void oobs_service_set_runlevel_configuration (OobsService *service,OobsServicesRunlevel *runlevel,OobsServiceStatus status,gint priority);
Sets the configuration of a service for a given runlevel.
| 
 | An OobsService. | 
| 
 | A OobsServicesRunlevel. | 
| 
 | status for the service in the given runlevel | 
| 
 | priority for the service in the given runlevel. Use 0 to either keep the previous priority, or get the default value in case the script is new. | 
void oobs_service_get_runlevel_configuration (OobsService *service,OobsServicesRunlevel *runlevel,OobsServiceStatus *status,gint *priority);
Gets the status and priority of a service in a given runlevel.
| 
 | An OobsService. | 
| 
 | An OobsServiceRunlevel. | 
| 
 | return value for the current service status. | 
| 
 | return value for the current service priority. | 
const gchar*        oobs_service_get_name               (OobsService *service);
Returns the service name
| 
 | An OobsService. | 
| Returns : | A pointer to the service name as a string. This string must not be freed, modified or stored. |