forked from agorise/c-ipfs
30 lines
963 B
C
30 lines
963 B
C
#ifndef __FS_REPO_LMDB_DATASTORE_H__
|
|
#define __FS_REPO_LMDB_DATASTORE_H__
|
|
|
|
#include "ipfs/repo/config/datastore.h"
|
|
|
|
/***
|
|
* Places the LMDB methods into the datastore's function pointers
|
|
* @param datastore the datastore to fill
|
|
* @returns true(1) on success;
|
|
*/
|
|
int repo_fsrepo_lmdb_cast(struct Datastore* datastore);
|
|
|
|
/**
|
|
* Open an lmdb database with the given parameters.
|
|
* Note: for now, the parameters are not used
|
|
* @param argc number of parameters in the following array
|
|
* @param argv an array of parameters
|
|
*/
|
|
int repo_fsrepro_lmdb_open(int argc, char** argv, struct Datastore* datastore);
|
|
|
|
/***
|
|
* Close an LMDB database
|
|
* NOTE: for now, argc and argv are not used
|
|
* @param argc number of parameters in the argv array
|
|
* @param argv parameters to be passed in
|
|
* @param datastore the datastore struct that contains information about the opened database
|
|
*/
|
|
int repo_fsrepo_lmdb_close(int argc, char** argv, struct Datastore* datastore);
|
|
|
|
#endif
|