fix: minor code refactor
This commit is contained in:
parent
505faa6df2
commit
f167f9caec
22 changed files with 83 additions and 30 deletions
src
17
src/cache.c
Normal file
17
src/cache.c
Normal file
|
@ -0,0 +1,17 @@
|
|||
#include <cache.h>
|
||||
#include <logger.h>
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue