src/server/daemon/webserver.c

changeset 28
f387669912e8
parent 22
adb0bda54e6b
child 32
ebba53de8b18
equal deleted inserted replaced
27:05b7576dca2b 28:f387669912e8
36 #include "func.h" 36 #include "func.h"
37 #include "config.h" 37 #include "config.h"
38 #include "configmanager.h" 38 #include "configmanager.h"
39 #include "httplistener.h" 39 #include "httplistener.h"
40 #include "webserver.h" 40 #include "webserver.h"
41 #include "log.h"
41 42
42 43
43 extern struct FuncStruct webserver_funcs[]; 44 extern struct FuncStruct webserver_funcs[];
44 45
45 46
46 int webserver_init() { 47 int webserver_init() {
47 // init NSPR 48 // init NSPR
48 systhread_init("webserver"); 49 systhread_init("webserver");
49 50
50 // init NSAPI functions 51 // init NSAPI functions
51 func_init(); 52 func_init();
52 add_functions(webserver_funcs); 53 add_functions(webserver_funcs);
53 54
54 // load init.conf 55 // load init.conf
76 fclose(pidfile); 77 fclose(pidfile);
77 free(pid_file_path); 78 free(pid_file_path);
78 79
79 // init NSAPI functions 80 // init NSAPI functions
80 81
81 82
82 return 0; 83 return 0;
83 } 84 }
84 85
85 int webserver_run() { 86 int webserver_run() {
86 printf("webserver_run\n"); 87 printf("webserver_run\n");

mercurial