root/scm.h @ 66a63de2
e592f8f7 | Hamish Coleman | /*
|
|
*
|
|||
*
|
|||
*
|
|||
*/
|
|||
4dcb97c2 | Hamish Coleman | struct SCM_def {
|
|
66a63de2 | Hamish Coleman | char *name;
|
|
char *desc;
|
|||
e592f8f7 | Hamish Coleman | 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
|