| 1 | #ifndef dbobj_h |
| 2 | #define dbobj_h |
| 3 | |
| 4 | static const char dbobj_h_rcsid[]="$Id: dbobj.h.in,v 1.1 2004/10/21 00:15:50 mrsam Exp $"; |
| 5 | |
| 6 | #if @USE_GDBM@ |
| 7 | #include "gdbmobj/gdbmobj.h" |
| 8 | #define DbObj GdbmObj |
| 9 | |
| 10 | #define dbobj gdbmobj |
| 11 | #define dbobj_init gdbmobj_init |
| 12 | #define dbobj_open gdbmobj_open |
| 13 | #define dbobj_close gdbmobj_close |
| 14 | #define dbobj_isopen gdbmobj_isopen |
| 15 | #define dbobj_fetch gdbmobj_fetch |
| 16 | #define dbobj_exists gdbmobj_exists |
| 17 | #define dbobj_delete gdbmobj_delete |
| 18 | #define dbobj_store gdbmobj_store |
| 19 | #define dbobj_firstkey gdbmobj_firstkey |
| 20 | #define dbobj_nextkey gdbmobj_nextkey |
| 21 | |
| 22 | #define DBNAME "gdbm" |
| 23 | |
| 24 | #endif |
| 25 | |
| 26 | #if @USE_DB@ |
| 27 | #include "bdbobj/bdbobj.h" |
| 28 | #define DbObj BDbObj |
| 29 | |
| 30 | #define dbobj bdbobj |
| 31 | #define dbobj_init bdbobj_init |
| 32 | #define dbobj_open bdbobj_open |
| 33 | #define dbobj_close bdbobj_close |
| 34 | #define dbobj_isopen bdbobj_isopen |
| 35 | #define dbobj_fetch bdbobj_fetch |
| 36 | #define dbobj_exists bdbobj_exists |
| 37 | #define dbobj_delete bdbobj_delete |
| 38 | #define dbobj_store bdbobj_store |
| 39 | #define dbobj_firstkey bdbobj_firstkey |
| 40 | #define dbobj_nextkey bdbobj_nextkey |
| 41 | |
| 42 | #if DB_VERSION_MAJOR >= 3 |
| 43 | #define DBNAME "db3" |
| 44 | #else |
| 45 | #if DB_VERSION_MAJOR >= 2 |
| 46 | #define DBNAME "db2" |
| 47 | #else |
| 48 | #define DBNAME "db1" |
| 49 | #endif |
| 50 | #endif |
| 51 | |
| 52 | #endif |
| 53 | |
| 54 | #endif |