Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _BDB_CON_H_
00026 #define _BDB_CON_H_
00027
00038 #include <time.h>
00039 #include <db.h>
00040
00041 #include "../../lib/srdb2/db_pool.h"
00042 #include "../../lib/srdb2/db_con.h"
00043 #include "../../lib/srdb2/db_uri.h"
00044
00045 #include "bdb_lib.h"
00046
00050 enum bdb_con_flags {
00051 BDB_CONNECTED = (1 << 0),
00052 };
00053
00054
00060 typedef struct _bdb_con {
00061 db_pool_entry_t gen;
00062 bdb_db_t *dbp;
00063 unsigned int flags;
00064 } bdb_con_t, *bdb_con_p;
00065
00073 int bdb_con(db_con_t* con);
00074
00075
00083 int bdb_con_connect(db_con_t* con);
00084
00085
00090 void bdb_con_disconnect(db_con_t* con);
00091
00094 #endif