#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
+#include <inttypes.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "keydb.h"
#include "keyid.h"
#include "keystructs.h"
-#include "ll.h"
#include "log.h"
#include "mem.h"
+#include "onak.h"
#include "onak-conf.h"
#include "parsekey.h"
*
* This is just a no-op for flat file access.
*/
-struct onak_dbctx *keydb_file_init(bool readonly)
+struct onak_dbctx *keydb_file_init(struct onak_db_config *dbcfg, bool readonly)
{
struct onak_dbctx *dbctx;
return NULL;
}
- dbctx->priv = strdup(config.db_dir);
+ dbctx->config = dbcfg;
+ dbctx->priv = strdup(dbcfg->location);
dbctx->cleanupdb = file_cleanupdb;
dbctx->starttrans = file_starttrans;