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 _LD_CMD_H
00026 #define _LD_CMD_H
00027
00037 #include "../../lib/srdb2/db_drv.h"
00038 #include "../../lib/srdb2/db_cmd.h"
00039 #include "../../lib/srdb2/db_res.h"
00040 #include "../../str.h"
00041
00042 #include <stdarg.h>
00043 #include <sys/time.h>
00044
00045
00050 struct ld_cmd {
00051 db_drv_t gen;
00052 char* base;
00053 int scope;
00054 str filter;
00055 char** result;
00056 int sizelimit;
00057 struct timeval timelimit;
00058 int chase_references;
00059 int chase_referrals;
00060 };
00061
00062
00070 int ld_cmd(db_cmd_t* cmd);
00071
00072
00083 int ld_cmd_exec(db_res_t* res, db_cmd_t* cmd);
00084
00085
00086 int ld_cmd_first(db_res_t* res);
00087
00088
00089 int ld_cmd_next(db_res_t* res);
00090
00091 int ld_cmd_setopt(db_cmd_t* cmd, char* optname, va_list ap);
00092
00095 #endif