15 #define sleep(x) Sleep((x) * 1000)
16 #include "main-common.c"
20 int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow)
23 /* TODO: parse lpCmdLine */
24 log_module(MAIN_LOG, LOG_INFO, "Initializing daemon...");
26 if (!conf_read(services_config)) {
27 log_module(MAIN_LOG, LOG_FATAL, "Unable to read %s.", services_config);
31 boot_time = time(&now);
32 conf_register_reload(uplink_compile);
33 atexit(call_exit_funcs);
34 reg_exit_func(main_shutdown);
37 MAIN_LOG = log_register_type("srvx", "file:main.log");
49 message_register_table(msgtab);
54 reg_exit_func(saxdb_write_all);
59 (void)hInst; (void)hPrevInst; (void)nCmdShow;