Liboobs (System configuration management) Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
Synopsis
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
);
Details
OobsServiceClass
typedef struct { OobsObjectClass parent_class; void (*_oobs_padding1) (void); void (*_oobs_padding2) (void); } OobsServiceClass;
enum OobsServiceStatus
typedef enum { OOBS_SERVICE_START, OOBS_SERVICE_STOP, /* For services not listed in that runlevel */ OOBS_SERVICE_IGNORE } OobsServiceStatus;
oobs_service_set_runlevel_configuration ()
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. |
oobs_service_get_runlevel_configuration ()
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. |
oobs_service_get_name ()
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. |
Property Details
The "name"
property
"name" gchar* : Read / Write / Construct Only
Name of the service.
Default value: NULL