The Sequence Toolkit
www.sequence-toolkit.com
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
include
stk_service.h
Go to the documentation of this file.
1
4
#ifndef STK_SERVICE_H
5
#define STK_SERVICE_H
6
7
#include "
stk_common.h
"
8
15
typedef
stk_uint64
stk_service_id
;
16
24
typedef
stk_uint16
stk_service_type
;
25
26
/* Predefined Service Types */
27
#define STK_SERVICE_TYPE_IO 1
28
#define STK_SERVICE_TYPE_DATA 2
29
#define STK_SERVICE_TYPE_MGMT 3
30
#define STK_SERVICE_TYPE_NET 4
32
/* Defines for automated service notifications */
33
#define STK_SERVICE_NOTIF_CREATE 0xe00
34
#define STK_SERVICE_NOTIF_DESTROY 0xe01
35
#define STK_SERVICE_NOTIF_STATE 0xe02
43
typedef stk_uint8 stk_service_state;
44
45
#define STK_SERVICE_STATE_INVALID 0
46
#define STK_SERVICE_STATE_STARTING 1
47
#define STK_SERVICE_STATE_RUNNING 2
48
#define STK_SERVICE_STATE_STOPPING 3
49
#define STK_SERVICE_STATE_STOPPED 4
50
#define STK_SERVICE_STATE_TIMED_OUT 5
52
#define STK_SERVICE_STATE_NAME_MAX 80
54
#define STK_SERVICE_GROUP_NAME 0x8110
61
typedef struct stk_service_stct stk_service_t;
62
67
typedef
void (*
stk_service_state_change_cb
)(
stk_service_t
*svc,
stk_service_state
old_state,
stk_service_state
new_state);
68
#endif
69
70
Sequence Toolkit
API, Wed Apr 15 2015 22:32:53