rpmdb/db_emu.h

Go to the documentation of this file.
00001 /*
00002  * This file emulates the db3/4 structures
00003  * ...this is supposed to be compatable w/ the _real_ db.h!
00004  */
00005 
00006 #ifndef __DB_EMU_H
00007 #define __DB_EMU_H
00008 
00009 struct __db;            typedef struct __db DB;
00010 struct __db_dbt;        typedef struct __db_dbt DBT;
00011 struct __db_env;        typedef struct __db_env DB_ENV;
00012 struct __dbc;           typedef struct __dbc DBC;
00013 struct __db_txn;        typedef struct __db_txn DB_TXN;
00014 struct __db_h_stat;     typedef struct __db_h_stat DB_HASH_STAT;
00015 
00016 /* Database handle */
00017 struct __db {
00018   void          *app_private;
00019 };
00020 
00021 struct __db_dbt {
00022   u_int32_t     size;
00023   void          *data;
00024 
00025   #define DB_DBT_MALLOC 0x01   /* We malloc the memory and hand off a copy. */
00026   u_int32_t     flags;
00027 };
00028 
00029 struct __db_env {
00030   void          *app_private;
00031 };
00032 
00033 struct __dbc {
00034   DB            *dbp;
00035 };
00036 
00037 struct __db_txn {
00038   /* NULL */ ;
00039 };
00040 
00041 struct __db_h_stat {
00042   u_int32_t     hash_nkeys;
00043 };
00044 
00045 #define DB_FAST_STAT 11
00046 #define DB_KEYLAST 19
00047 #define DB_NEXT 21
00048 #define DB_SET 32
00049 #define DB_WRITECURSOR 39
00050 #define DB_NOTFOUND (-30990)
00051 
00052 #endif

Generated on Mon Mar 5 14:30:15 2007 for rpm by  doxygen 1.5.1