18 lines
384 B
C
18 lines
384 B
C
|
#ifndef CONTROLLER_DATABASE_H
|
||
|
#define CONTROLLER_DATABASE_H
|
||
|
|
||
|
#include <lmdb.h>
|
||
|
|
||
|
/**
|
||
|
* @brief Setup lmdb database enviroment
|
||
|
*
|
||
|
* Creates, sets max dbs and opens an MDB_env instance.
|
||
|
* Will return on success, but exit program on failure.
|
||
|
*
|
||
|
* @param mdb_env Source variable will be set to new MDB_env
|
||
|
*/
|
||
|
void
|
||
|
database_setup(MDB_env **mdb_env);
|
||
|
|
||
|
#endif /* CONTROLLER_DATABASE_H */
|