forked from Telodendria/Cytoplasm
b87979e9a2
Not everything is available as of now, I'm still working on it, but it builds and seems to work, and its 9PM, so that's worthapush.
39 lines
537 B
C
39 lines
537 B
C
#include <Memory.h>
|
|
|
|
#include <Db.h>
|
|
|
|
#include "Db/Internal.h"
|
|
|
|
#ifdef EDB_LMDB
|
|
|
|
typedef struct LMDB {
|
|
Db base; /* The base implementation required to pass */
|
|
} LMDB;
|
|
Db *
|
|
DbOpenLMDB(char *dir, size_t size)
|
|
{
|
|
/* TODO */
|
|
LMDB *db;
|
|
if (!dir || !size)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
db = Malloc(sizeof(*db));
|
|
DbInit(db);
|
|
|
|
(void) size;
|
|
(void) dir;
|
|
return db;
|
|
}
|
|
|
|
#else
|
|
Db *
|
|
DbOpenLMDB(char *dir, size_t size)
|
|
{
|
|
/* Unimplemented function */
|
|
(void) size;
|
|
(void) dir;
|
|
return NULL;
|
|
}
|
|
#endif
|