GATE
|
OS service and daemon management utilities. More...
#include "gate/system/gate_system_api.h"
#include "gate/gatetypes.h"
#include "gate/strings.h"
#include "gate/arrays.h"
Macros | |
#define | GATE_SERVICE_STATE_UNKNOWN 0 |
#define | GATE_SERVICE_STATE_STOPPED 1 |
#define | GATE_SERVICE_STATE_RUNNING 2 |
#define | GATE_SERVICE_STATE_ERROR 3 |
#define | GATE_SERVICE_STATE_PAUSED 4 |
#define | GATE_SERVICE_STATE_STARTING 5 |
#define | GATE_SERVICE_STATE_STOPPING 6 |
#define | GATE_SERVICE_FLAG_AUTOSTART 1 |
#define | GATE_SERVICE_FLAG_DISABLED 2 |
Typedefs | |
typedef gate_bool_t(* | gate_service_enum_callback_t) (gate_service_t const *service, void *user_param) |
typedef void(* | gate_service_message_callback_t) (gate_string_t const *message, void *user_param) |
OS service and daemon management utilities.
#define GATE_SERVICE_STATE_UNKNOWN 0 |
state of service is unknown
#define GATE_SERVICE_STATE_STOPPED 1 |
service is NOT running (offline)
#define GATE_SERVICE_STATE_RUNNING 2 |
service is running (online)
#define GATE_SERVICE_STATE_ERROR 3 |
service is in error state and not functional
#define GATE_SERVICE_STATE_PAUSED 4 |
service was started and is currently paused
#define GATE_SERVICE_STATE_STARTING 5 |
service is starting but not yet ready to be used
#define GATE_SERVICE_STATE_STOPPING 6 |
service is running but currently shuting down
#define GATE_SERVICE_FLAG_AUTOSTART 1 |
service is automatically started
#define GATE_SERVICE_FLAG_DISABLED 2 |
service is disabled and cannot be started
typedef gate_bool_t(* gate_service_enum_callback_t) (gate_service_t const *service, void *user_param) |
function callback type to receive enumerated services
typedef void(* gate_service_message_callback_t) (gate_string_t const *message, void *user_param) |
function callback that receives progress messages during operation