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 |