rpm  5.2.1
db_emu.h
Go to the documentation of this file.
1 /*
2  * This file emulates the db3/4 structures
3  * ...this is supposed to be compatable w/ the _real_ db.h!
4  */
5 
6 #ifndef __DB_EMU_H
7 #define __DB_EMU_H
8 
9 struct __db; typedef struct __db DB;
10 struct __db_dbt; typedef struct __db_dbt DBT;
11 struct __db_env; typedef struct __db_env DB_ENV;
12 struct __dbc; typedef struct __dbc DBC;
13 struct __db_txn; typedef struct __db_txn DB_TXN;
14 struct __db_h_stat; typedef struct __db_h_stat DB_HASH_STAT;
15 
16 /* Database handle */
17 struct __db {
18  void *app_private;
19 };
20 
21 struct __db_dbt {
23  void *data;
24 
25 #define DB_DBT_MALLOC 0x01 /* We malloc the memory and hand off a copy. */
27 };
28 
29 struct __db_env {
30  void *app_private;
31 };
32 
33 struct __dbc {
34  DB *dbp;
35 };
36 
37 struct __db_txn {
38  /* NULL */ ;
39 };
40 
41 struct __db_h_stat {
43 };
44 
45 #define DB_FAST_STAT 11
46 #define DB_KEYLAST 19
47 #define DB_NEXT 21
48 #define DB_SET 32
49 #define DB_WRITECURSOR 39
50 #define DB_NOTFOUND (-30990)
51 #define DB_PRIVATE 0x0200000
52 #define DB_EXCL 0x0004000
53 
54 #define DB_VERSION_MAJOR 3
55 #define DB_VERSION_MINOR 0
56 #define DB_VERSION_PATCH 0
57 
58 #endif