Cleaning up explanation for why addons failed to build
[io/quag.git] / addons / DBI / source / IoDBIResult.h
blob0e66dd13f2beb6148181869f76ebd6a8ffcfd536
1 /*
2 docCopyright("Jeremy Cowgar", 2006)
3 docLicense("BSD revised")
4 */
6 #ifndef IODBIRESULT_DEFINED
7 #define IODBIRESULT_DEFINED 1
9 #include "IoObject.h"
10 #include "IoSeq.h"
11 #include "IoList.h"
12 #include <dbi/dbi.h>
14 /*
15 This *is* defined in dbi/dbi.h but I continue to get " warning:
16 implicit declaration of function 'dbi_result_get_int_idx'" which is driving
17 me crazy, therefore I added this line in the .h.
19 TODO: figure out why it is not working correctly with the dbi/dbi.h
22 int dbi_result_get_int_idx(dbi_result Result, unsigned int fieldidx);
24 #define ISDBIRESULT(self) IoObject_hasCloneFunc_(self, \
25 (IoTagCloneFunc *)IoDBIResult_rawClone)
27 typedef IoObject IoDBIResult;
29 typedef struct
31 dbi_conn conn;
32 dbi_result result;
33 } IoDBIResultData;
35 IoDBIResult *IoDBIResult_rawClone(IoDBIResult *self);
36 IoDBIResult *IoDBIResult_proto(void *state);
37 void IoDBIResult_free(IoDBIResult *self);
38 void IoDBIResult_mark(IoDBIResult *self);
40 /* ---------------------------------------------------------------- */
42 IoDBIResult *IoDBIResult_new(void *state, dbi_result result);
44 /* ---------------------------------------------------------------- */
46 IoObject *IoDBIResult_size(
47 IoDBIResult *self, IoObject *locals, IoMessage *m);
48 IoObject *IoDBIResult_fields(
49 IoDBIResult *self, IoObject *locals, IoMessage *m);
50 IoObject *IoDBIResult_first(
51 IoDBIResult *self, IoObject *locals, IoMessage *m);
52 IoObject *IoDBIResult_previous(
53 IoDBIResult *self, IoObject *locals, IoMessage *m);
54 IoObject *IoDBIResult_next(
55 IoDBIResult *self, IoObject *locals, IoMessage *m);
56 IoObject *IoDBIResult_last(
57 IoDBIResult *self, IoObject *locals, IoMessage *m);
58 IoObject *IoDBIResult_seek(
59 IoDBIResult *self, IoObject *locals, IoMessage *m);
60 IoObject *IoDBIResult_position(
61 IoDBIResult *self, IoObject *locals, IoMessage *m);
62 IoObject *IoDBIResult_at(IoDBIResult *self, IoObject *locals, IoMessage *m);
63 IoObject *IoDBIResult_populate(IoDBIResult *self, IoObject *locals,
64 IoMessage *m);
65 IoObject *IoDBIResult_foreach(IoDBIResult *self, IoObject *locals,
66 IoMessage *m);
67 IoObject *IoDBIResult_done(IoDBIResult *self, IoObject *locals, IoMessage *m);
69 #endif