18 lines
273 B
C
18 lines
273 B
C
|
#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;
|
||
|
}
|
||
|
}
|