Revision 39736270
Added by Hamish Coleman over 13 years ago
- ID 39736270c860147751b68999fd4645ae1717815d
scm.h | ||
---|---|---|
int mode; /* set to SVC_CONSOLE by the *-scm.c code */
|
||
int argc; char **argv; /* original cmdline args */
|
||
int (*init)(int, char **); /* called before main */
|
||
int (*main)(int); /* called to run the service */
|
||
int (*stop)(int); /* called by scm to tell the service to stop */
|
||
int (*main)(int, char **); /* called to run the service */
|
||
int (*stop)(void *); /* called by scm to tell the service to stop */
|
||
};
|
||
|
||
int SCM_Start(struct SCM_def *, int argc, char **argv);
|
Also available in: Unified diff
Pass the args to the main function and thus allow the init function to be optional.