#include #include sqlite3 *cache_database; void cache_init() { int rc = sqlite3_open(":memory:", &cache_database); if(rc) { LOGGER_CRIT("can't open cache database: %s\n", sqlite3_errmsg(cache_database)); return; } }