summaryrefslogtreecommitdiffstats
path: root/server/memdb.h
blob: 21bca5ef8837c4274535cc14615b739623f46300 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef MEMDB_H
#define MEMDB_H

int memdb_new();
void memdb_delete();

int memdb_add(const unsigned char *key, int keylen, array_t *vals);
int memdb_del(const unsigned char *key, int keylen);
int memdb_get(const unsigned char *key, int keylen, array_t *vals);
int memdb_upd(const unsigned char *key, int keylen, array_t *vals);

int memdb_stats(array_t *statarr);
void memdb_collate();

#endif