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_CMD_H_
00026 #define _BDB_CMD_H_
00027
00040 #include <stdarg.h>
00041 #include <sys/time.h>
00042 #include <db.h>
00043
00044 #include "../../lib/srdb2/db_drv.h"
00045 #include "../../lib/srdb2/db_cmd.h"
00046 #include "../../lib/srdb2/db_res.h"
00047 #include "../../str.h"
00048
00049 #include "bdb_con.h"
00050
00055 typedef struct _bdb_cmd {
00056 db_drv_t gen;
00057 bdb_con_t *bcon;
00058 DB *dbp;
00059 DBC *dbcp;
00060 int next_flag;
00061 str skey;
00062 int skey_size;
00063 } bdb_cmd_t, *bdb_cmd_p;
00064
00065
00073 int bdb_cmd(db_cmd_t* cmd);
00074
00075
00086 int bdb_cmd_exec(db_res_t* res, db_cmd_t* cmd);
00087
00088
00089 int bdb_cmd_first(db_res_t* res);
00090
00091
00092 int bdb_cmd_next(db_res_t* res);
00093
00096 #endif