root/scm.h @ 5ddf869b
e592f8f7 | Hamish Coleman | /*
|
|
*
|
|||
*
|
|||
*
|
|||
*/
|
|||
4dcb97c2 | Hamish Coleman | struct SCM_def {
|
|
e592f8f7 | Hamish Coleman | unsigned char *name;
|
|
unsigned char *desc;
|
|||
int (*init)(int, char **);
|
|||
int (*main)(int);
|
|||
4dcb97c2 | Hamish Coleman | int (*stop)(int);
|
|
e592f8f7 | Hamish Coleman | };
|
|
4dcb97c2 | Hamish Coleman | int SCM_Start(struct SCM_def *);
|
|
6f662bc7 | Hamish Coleman | char *SCM_Install(struct SCM_def *);
|
|
4dcb97c2 | Hamish Coleman | int SCM_Remove(struct SCM_def *);
|
|
e592f8f7 | Hamish Coleman | ||
#define SVC_OK 0
|
|||
#define SVC_FAIL -1
|
|||
#define SVC_CONSOLE 1
|