1#ifndef COMPAT_DB_H
2#define COMPAT_DB_H
3
4#include <stddef.h>
5
6typedef struct {
7 void *data;
8 size_t size;
9} DBT;
10
11typedef struct __db DB;
12
13struct __db {
14 int (*close)(DB *);
15 int (*del)(DB *, DBT *, unsigned int);
16 int (*get)(DB *, DBT *, DBT *, unsigned int);
17 int (*put)(DB *, DBT *, DBT *, unsigned int);
18 int (*seq)(DB *, DBT *, DBT *, unsigned int);
19 void *internal;
20};
21
22#define DB_BTREE 1
23#define DB_HASH 2
24
25#define R_FIRST 1
26#define R_NEXT 2
27
28DB *dbopen(const char *, int, int, int, const void *);
29
30#endif