add: cache (WIP)

This commit is contained in:
Tobias Reisinger 2020-08-13 16:29:26 +02:00
parent f167f9caec
commit 6d37bd9734
26 changed files with 365 additions and 61 deletions

View file

@ -7,6 +7,7 @@
#include <mongoose.h>
#include <confini.h>
#include <cache.h>
#include <router.h>
#include <logger.h>
#include <config.h>
@ -30,6 +31,7 @@ terminate(int signum)
router_free();
status_free();
cache_free();
closelog();
@ -54,7 +56,6 @@ main(int argc, const char** argv)
setlogmask(LOG_UPTO(LOG_INFO));
/******************** LOAD CONFIG ********************/
global_config.file = "core.ini";
@ -152,6 +153,7 @@ main(int argc, const char** argv)
/******************** INIT COMPONENTS ********************/
cache_init();
router_init();
status_init();