Project

General

Profile

« Previous | Next » 

Revision 39736270

Added by Hamish Coleman over 13 years ago

  • ID 39736270c860147751b68999fd4645ae1717815d

Pass the args to the main function and thus allow the init function to be optional.

View differences:

wconsd.c
struct cli_def *cli;
int wconsd_init(int argc, char **argv);
int wconsd_main(int param1);
int wconsd_stop(int param1);
int wconsd_main(int argc, char **argv);
int wconsd_stop(void *);
struct SCM_def sd = {
.name = "wconsd",
.desc = "wconsd - Telnet to Serial server",
......
return 0;
}
int wconsd_stop(int param1) {
int wconsd_stop(void *param1) {
SetEvent(stopEvent);
return 0;
}
......
return 0;
}
int wconsd_main(int param1)
int wconsd_main(int argc, char **argv)
{
HANDLE wait_array[2];
BOOL run=TRUE;

Also available in: Unified diff