MIRROR: javascript for 馃悳's, a tiny runtime with big ambitions
1#ifndef ANT_LMDB_MODULE_H
2#define ANT_LMDB_MODULE_H
3
4#include "types.h"
5
6typedef struct lmdb_env_handle lmdb_env_handle_t;
7typedef struct lmdb_db_handle lmdb_db_handle_t;
8typedef struct lmdb_txn_handle lmdb_txn_handle_t;
9
10typedef struct lmdb_env_ref lmdb_env_ref_t;
11typedef struct lmdb_db_ref lmdb_db_ref_t;
12typedef struct lmdb_txn_ref lmdb_txn_ref_t;
13
14typedef struct {
15 ant_value_t env_ctor;
16 ant_value_t db_ctor;
17 ant_value_t txn_ctor;
18 ant_value_t env_proto;
19 ant_value_t db_proto;
20 ant_value_t txn_proto;
21 bool ready;
22} lmdb_js_types_t;
23
24ant_value_t lmdb_library(ant_t *js);
25void cleanup_lmdb_module(void);
26
27#endif