EXPORT int execute_command(const char* rule, void *h){ int newargc; char* table = "filter"; char** newargv = split_commandline(rule, &newargc); int ret = do_command4(newargc, newargv, &table, &h); free(newargv); return ret; }
int main(void) { DWORD dwExitCode; char *cmdline; /* Make sure a logoff does not distrurb us. */ SetConsoleCtrlHandler(LogoffHandlerRoutine, TRUE); cmdline = GetCommandLine(); assert(cmdline); CommandLineStart = (char *) malloc(strlen(cmdline) + 1); assert(CommandLineStart); strcpy(CommandLineStart,cmdline); split_commandline(); parse_commandline(); complete_options(); /* We now have all the options we need in order to fire up a new node.. */ dwExitCode = start_new_node(); return( (int) dwExitCode ); }