dbd.h   dbd.h 
skipping to change at line 20 skipping to change at line 20
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A
* *
* $Id: dbd.h,v 1.2 2001/07/31 00:42:40 dap24 Exp $ * $Id: dbd.h,v 1.5 2001/08/15 19:20:47 dap24 Exp $
*/ */
#ifndef __DBD_H__ #ifndef __DBD_H__
#define __DBD_H__ #define __DBD_H__
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#include <dbi/dbi.h> #include <dbi/dbi.h>
skipping to change at line 44 skipping to change at line 44
void dbd_register_plugin(const dbi_info_t **_plugin_info, const char ***_cu stom_functions, const char ***_reserved_words); void dbd_register_plugin(const dbi_info_t **_plugin_info, const char ***_cu stom_functions, const char ***_reserved_words);
int dbd_initialize(dbi_plugin_t *plugin); int dbd_initialize(dbi_plugin_t *plugin);
int dbd_connect(dbi_driver_t *driver); int dbd_connect(dbi_driver_t *driver);
int dbd_disconnect(dbi_driver_t *driver); int dbd_disconnect(dbi_driver_t *driver);
int dbd_fetch_row(dbi_result_t *result, unsigned int rownum); int dbd_fetch_row(dbi_result_t *result, unsigned int rownum);
int dbd_free_query(dbi_result_t *result); int dbd_free_query(dbi_result_t *result);
int dbd_goto_row(dbi_result_t *result, unsigned int row); int dbd_goto_row(dbi_result_t *result, unsigned int row);
dbi_result_t *dbd_list_dbs(dbi_driver_t *driver); dbi_result_t *dbd_list_dbs(dbi_driver_t *driver);
dbi_result_t *dbd_list_tables(dbi_driver_t *driver, const char *db); dbi_result_t *dbd_list_tables(dbi_driver_t *driver, const char *db);
dbi_result_t *dbd_query(dbi_driver_t *driver, const char *statement); dbi_result_t *dbd_query(dbi_driver_t *driver, const char *statement);
int dbd_quote_string(dbi_plugin_t *plugin, const char *orig, char *dest);
char *dbd_select_db(dbi_driver_t *driver, const char *db); char *dbd_select_db(dbi_driver_t *driver, const char *db);
int dbd_geterror(dbi_driver_t *driver, int *errno, char **errstr); int dbd_geterror(dbi_driver_t *driver, int *errno, char **errstr);
int dbd_geterror(dbi_driver_t *driver, int *errno, char **errstr);
/* _DBD_* PLUGIN AUTHORS HELPER FUNCTIONS */ /* _DBD_* PLUGIN AUTHORS HELPER FUNCTIONS */
dbi_result_t *_dbd_result_create(dbi_driver_t *driver, void *handle, unsign ed int numrows_matched, unsigned int numrows_affected); dbi_result_t *_dbd_result_create(dbi_driver_t *driver, void *handle, unsign ed int numrows_matched, unsigned int numrows_affected);
void _dbd_result_set_numfields(dbi_result_t *result, unsigned int numfields ); void _dbd_result_set_numfields(dbi_result_t *result, unsigned int numfields );
void _dbd_result_add_field(dbi_result_t *result, unsigned int idx, char *na me, unsigned short type, unsigned int attribs); void _dbd_result_add_field(dbi_result_t *result, unsigned int idx, char *na me, unsigned short type, unsigned int attribs);
dbi_row_t *_dbd_row_allocate(unsigned int numfields, unsigned int has_strin g_fields); dbi_row_t *_dbd_row_allocate(unsigned int numfields);
void _dbd_row_finalize(dbi_result_t *result, dbi_row_t *row, unsigned int i dx); void _dbd_row_finalize(dbi_result_t *result, dbi_row_t *row, unsigned int i dx);
unsigned long _dbd_isolate_attrib(unsigned long attribs, unsigned long rang emin, unsigned rangemax);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* __DBD_H__ */ #endif /* __DBD_H__ */
 End of changes. 5 change blocks. 
4 lines changed or deleted 3 lines changed or added


 dbi-dev.h   dbi-dev.h 
skipping to change at line 20 skipping to change at line 20
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A
* *
* $Id: dbi-dev.h,v 1.4 2001/07/20 23:38:42 dap24 Exp $ * $Id: dbi-dev.h,v 1.7 2001/08/15 19:20:47 dap24 Exp $
*/ */
#ifndef __DBI_DEV_H__ #ifndef __DBI_DEV_H__
#define __DBI_DEV_H__ #define __DBI_DEV_H__
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/********************* /*********************
skipping to change at line 47 skipping to change at line 47
typedef struct _field_binding_s *_field_binding_t_pointer; typedef struct _field_binding_s *_field_binding_t_pointer;
typedef union dbi_data_u { typedef union dbi_data_u {
char d_char; char d_char;
short d_short; short d_short;
long d_long; long d_long;
long long d_longlong; long long d_longlong;
float d_float; float d_float;
double d_double; double d_double;
char *d_string; char *d_string;
time_t d_datetime;
} dbi_data_t; } dbi_data_t;
typedef struct dbi_row_s { typedef struct dbi_row_s {
dbi_data_t *field_values; dbi_data_t *field_values;
unsigned int *field_sizes; /* only set for field indexes that are st rings */ int *field_sizes; /* NULL field = 0, string field = len, anything el se = -1 */
} dbi_row_t; } dbi_row_t;
typedef struct dbi_result_s { typedef struct dbi_result_s {
dbi_driver_t_pointer driver; dbi_driver_t_pointer driver;
void *result_handle; /* will be typecast into driver-specific type * / void *result_handle; /* will be typecast into driver-specific type * /
unsigned long numrows_matched; /* set immediately after query */ unsigned long numrows_matched; /* set immediately after query */
unsigned long numrows_affected; unsigned long numrows_affected;
_field_binding_t_pointer field_bindings; _field_binding_t_pointer field_bindings;
unsigned int numfields; /* can be zero or NULL until first fetchrow */ unsigned int numfields; /* can be zero or NULL until first fetchrow */
char **field_names; char **field_names;
unsigned short *field_types; unsigned short *field_types;
unsigned int *field_attribs; unsigned int *field_attribs;
enum { NOTHING_RETURNED, ROWS_RETURNED, GETTING_ROWS } result_state; /* nothing_returned: wasn't a SELECT query. returns_rows: select, but no r ows fetched yet. getting_rows: select, at least one row has been fetched */ enum { NOTHING_RETURNED, ROWS_RETURNED, GETTING_ROWS } result_state; /* nothing_returned: wasn't a SELECT query. returns_rows: select, but no r ows fetched yet. getting_rows: select, at least one row has been fetched */
unsigned int has_string_fields;
dbi_row_t **rows; /* array of filled rows, elements set to NULL if n ot fetched yet */ dbi_row_t **rows; /* array of filled rows, elements set to NULL if n ot fetched yet */
unsigned long currowidx; unsigned long currowidx;
} dbi_result_t; } dbi_result_t;
typedef struct _field_binding_s { typedef struct _field_binding_s {
void (*helper_function)(_field_binding_t_pointer); void (*helper_function)(_field_binding_t_pointer);
dbi_result_t *result; dbi_result_t *result;
const char *fieldname; const char *fieldname;
void *bindto; void *bindto;
struct _field_binding_s *next; struct _field_binding_s *next;
skipping to change at line 111 skipping to change at line 111
void (*register_plugin)(const dbi_info_t **, const char ***, const c har ***); void (*register_plugin)(const dbi_info_t **, const char ***, const c har ***);
int (*initialize)(dbi_plugin_t_pointer); int (*initialize)(dbi_plugin_t_pointer);
int (*connect)(dbi_driver_t_pointer); int (*connect)(dbi_driver_t_pointer);
int (*disconnect)(dbi_driver_t_pointer); int (*disconnect)(dbi_driver_t_pointer);
int (*fetch_row)(dbi_result_t *, unsigned int); int (*fetch_row)(dbi_result_t *, unsigned int);
int (*free_query)(dbi_result_t *); int (*free_query)(dbi_result_t *);
int (*goto_row)(dbi_result_t *, unsigned int); int (*goto_row)(dbi_result_t *, unsigned int);
dbi_result_t *(*list_dbs)(dbi_driver_t_pointer); dbi_result_t *(*list_dbs)(dbi_driver_t_pointer);
dbi_result_t *(*list_tables)(dbi_driver_t_pointer, const char *); dbi_result_t *(*list_tables)(dbi_driver_t_pointer, const char *);
dbi_result_t *(*query)(dbi_driver_t_pointer, const char *); dbi_result_t *(*query)(dbi_driver_t_pointer, const char *);
int (*quote_string)(dbi_plugin_t_pointer, const char *, char *);
char *(*select_db)(dbi_driver_t_pointer, const char *); char *(*select_db)(dbi_driver_t_pointer, const char *);
int (*geterror)(dbi_driver_t_pointer, int *, char **); int (*geterror)(dbi_driver_t_pointer, int *, char **);
} dbi_functions_t; } dbi_functions_t;
typedef struct dbi_custom_function_s { typedef struct dbi_custom_function_s {
const char *name; const char *name;
void *function_pointer; void *function_pointer;
struct dbi_custom_function_s *next; struct dbi_custom_function_s *next;
} dbi_custom_function_t; } dbi_custom_function_t;
skipping to change at line 143 skipping to change at line 144
dbi_option_t *options; dbi_option_t *options;
void *connection; /* will be typecast into driver-specific type */ void *connection; /* will be typecast into driver-specific type */
char *current_db; char *current_db;
int error_number; /*XXX*/ int error_number; /*XXX*/
char *error_message; /*XXX*/ char *error_message; /*XXX*/
void *error_handler; void *error_handler;
void *error_handler_argument; void *error_handler_argument;
struct dbi_driver_s *next; /* so libdbi can unload all drivers at ex it */ struct dbi_driver_s *next; /* so libdbi can unload all drivers at ex it */
} dbi_driver_t; } dbi_driver_t;
unsigned long _isolate_attrib(unsigned long attribs, unsigned long rangemin
, unsigned rangemax);
void _error_handler(dbi_driver_t *driver);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* __DBI_DEV_H__ */ #endif /* __DBI_DEV_H__ */
 End of changes. 6 change blocks. 
3 lines changed or deleted 8 lines changed or added


 dbi.h   dbi.h 
skipping to change at line 20 skipping to change at line 20
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US A
* *
* $Id: dbi.h,v 1.15 2001/07/21 22:15:07 dap24 Exp $ * $Id: dbi.h,v 1.19 2001/08/15 20:30:46 dap24 Exp $
*/ */
#ifndef __DBI_H__ #ifndef __DBI_H__
#define __DBI_H__ #define __DBI_H__
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
/* opaque type definitions */ /* opaque type definitions */
#define dbi_plugin void * typedef void * dbi_plugin;
#define dbi_driver void * typedef void * dbi_driver;
#define dbi_result void * typedef void * dbi_result;
/* values for the int in field_types[] */ /* values for the int in field_types[] */
#define DBI_TYPE_INTEGER 1 #define DBI_TYPE_INTEGER 1
#define DBI_TYPE_DECIMAL 2 #define DBI_TYPE_DECIMAL 2
#define DBI_TYPE_STRING 3 #define DBI_TYPE_STRING 3
#define DBI_TYPE_BINARY 4 #define DBI_TYPE_BINARY 4
#define DBI_TYPE_ENUM 5 #define DBI_TYPE_ENUM 5
#define DBI_TYPE_SET 6 #define DBI_TYPE_SET 6
#define DBI_TYPE_DATETIME 7
/* values for the bitmask in field_type_attributes[] */ /* values for the bitmask in field_type_attributes[] */
#define DBI_INTEGER_UNSIGNED 1 #define DBI_INTEGER_UNSIGNED 1
#define DBI_INTEGER_SIZE1 2 #define DBI_INTEGER_SIZE1 2
#define DBI_INTEGER_SIZE2 4 #define DBI_INTEGER_SIZE2 4
#define DBI_INTEGER_SIZE3 8 #define DBI_INTEGER_SIZE3 8
#define DBI_INTEGER_SIZE4 16 #define DBI_INTEGER_SIZE4 16
#define DBI_INTEGER_SIZE8 32 #define DBI_INTEGER_SIZE8 32
#define DBI_DECIMAL_UNSIGNED 1 #define DBI_DECIMAL_UNSIGNED 1
#define DBI_DECIMAL_SIZE4 2 #define DBI_DECIMAL_SIZE4 2
#define DBI_DECIMAL_SIZE8 4 #define DBI_DECIMAL_SIZE8 4
#define DBI_STRING_FIXEDSIZE 1 /* XXX */ #define DBI_STRING_FIXEDSIZE 1 /* XXX unused as of now */
#define DBI_DATETIME_DATE 1
#define DBI_DATETIME_TIME 2
int dbi_initialize(const char *plugindir); int dbi_initialize(const char *plugindir);
void dbi_shutdown(); void dbi_shutdown();
const char *dbi_version(); const char *dbi_version();
dbi_plugin dbi_plugin_list(dbi_plugin Current); /* returns next plugin. if current is NULL, return first plugin. */ dbi_plugin dbi_plugin_list(dbi_plugin Current); /* returns next plugin. if current is NULL, return first plugin. */
dbi_plugin dbi_plugin_open(const char *name); /* goes thru linked list unti l it finds the right one */ dbi_plugin dbi_plugin_open(const char *name); /* goes thru linked list unti l it finds the right one */
int dbi_plugin_is_reserved_word(dbi_plugin Plugin, const char *word); int dbi_plugin_is_reserved_word(dbi_plugin Plugin, const char *word);
void *dbi_plugin_specific_function(dbi_plugin Plugin, const char *name); void *dbi_plugin_specific_function(dbi_plugin Plugin, const char *name);
int dbi_plugin_quote_string(dbi_plugin Plugin, char **orig);
const char *dbi_plugin_get_name(dbi_plugin Plugin); const char *dbi_plugin_get_name(dbi_plugin Plugin);
const char *dbi_plugin_get_filename(dbi_plugin Plugin); const char *dbi_plugin_get_filename(dbi_plugin Plugin);
const char *dbi_plugin_get_description(dbi_plugin Plugin); const char *dbi_plugin_get_description(dbi_plugin Plugin);
const char *dbi_plugin_get_maintainer(dbi_plugin Plugin); const char *dbi_plugin_get_maintainer(dbi_plugin Plugin);
const char *dbi_plugin_get_url(dbi_plugin Plugin); const char *dbi_plugin_get_url(dbi_plugin Plugin);
const char *dbi_plugin_get_version(dbi_plugin Plugin); const char *dbi_plugin_get_version(dbi_plugin Plugin);
const char *dbi_plugin_get_date_compiled(dbi_plugin Plugin); const char *dbi_plugin_get_date_compiled(dbi_plugin Plugin);
dbi_driver dbi_driver_new(const char *name); /* shortcut for dbi_driver_ope n(dbi_plugin_open("foo")) */ dbi_driver dbi_driver_new(const char *name); /* shortcut for dbi_driver_ope n(dbi_plugin_open("foo")) */
skipping to change at line 106 skipping to change at line 110
dbi_driver dbi_result_get_driver(dbi_result Result); dbi_driver dbi_result_get_driver(dbi_result Result);
int dbi_result_free(dbi_result Result); int dbi_result_free(dbi_result Result);
int dbi_result_seek_row(dbi_result Result, unsigned int row); int dbi_result_seek_row(dbi_result Result, unsigned int row);
int dbi_result_first_row(dbi_result Result); int dbi_result_first_row(dbi_result Result);
int dbi_result_last_row(dbi_result Result); int dbi_result_last_row(dbi_result Result);
int dbi_result_prev_row(dbi_result Result); int dbi_result_prev_row(dbi_result Result);
int dbi_result_next_row(dbi_result Result); int dbi_result_next_row(dbi_result Result);
unsigned int dbi_result_get_numrows(dbi_result Result); unsigned int dbi_result_get_numrows(dbi_result Result);
unsigned int dbi_result_get_numrows_affected(dbi_result Result); unsigned int dbi_result_get_numrows_affected(dbi_result Result);
unsigned int dbi_result_get_field_size(dbi_result Result, const char *field name); unsigned int dbi_result_get_field_size(dbi_result Result, const char *field name);
unsigned int dbi_result_get_field_size_idx(dbi_result Result, unsigned int idx);
unsigned int dbi_result_get_field_length(dbi_result Result, const char *fie ldname); /* size-1 */ unsigned int dbi_result_get_field_length(dbi_result Result, const char *fie ldname); /* size-1 */
unsigned int dbi_result_get_field_length_idx(dbi_result Result, unsigned in
t idx);
int dbi_result_get_field_idx(dbi_result Result, const char *fieldname);
const char *dbi_result_get_field_name(dbi_result Result, unsigned int idx);
unsigned int dbi_result_get_numfields(dbi_result Result);
unsigned short dbi_result_get_field_type(dbi_result Result, const char *fie
ldname);
unsigned short dbi_result_get_field_type_idx(dbi_result Result, unsigned in
t idx);
unsigned long dbi_result_get_field_attrib(dbi_result Result, const char *fi
eldname, unsigned long attribmin, unsigned long attribmax);
unsigned long dbi_result_get_field_attrib_idx(dbi_result Result, unsigned i
nt idx, unsigned long attribmin, unsigned long attribmax);
unsigned long dbi_result_get_field_attribs(dbi_result Result, const char *f
ieldname);
unsigned long dbi_result_get_field_attribs_idx(dbi_result Result, unsigned
int idx);
int dbi_result_get_fields(dbi_result Result, const char *format, ...); int dbi_result_get_fields(dbi_result Result, const char *format, ...);
int dbi_result_bind_fields(dbi_result Result, const char *format, ...); int dbi_result_bind_fields(dbi_result Result, const char *format, ...);
signed char dbi_result_get_char(dbi_result Result, const char *fieldname); signed char dbi_result_get_char(dbi_result Result, const char *fieldname);
unsigned char dbi_result_get_uchar(dbi_result Result, const char *fieldname ); unsigned char dbi_result_get_uchar(dbi_result Result, const char *fieldname );
short dbi_result_get_short(dbi_result Result, const char *fieldname); short dbi_result_get_short(dbi_result Result, const char *fieldname);
unsigned short dbi_result_get_ushort(dbi_result Result, const char *fieldna me); unsigned short dbi_result_get_ushort(dbi_result Result, const char *fieldna me);
long dbi_result_get_long(dbi_result Result, const char *fieldname); long dbi_result_get_long(dbi_result Result, const char *fieldname);
unsigned long dbi_result_get_ulong(dbi_result Result, const char *fieldname ); unsigned long dbi_result_get_ulong(dbi_result Result, const char *fieldname );
skipping to change at line 132 skipping to change at line 147
const char *dbi_result_get_string(dbi_result Result, const char *fieldname) ; const char *dbi_result_get_string(dbi_result Result, const char *fieldname) ;
const unsigned char *dbi_result_get_binary(dbi_result Result, const char *f ieldname); const unsigned char *dbi_result_get_binary(dbi_result Result, const char *f ieldname);
char *dbi_result_get_string_copy(dbi_result Result, const char *fieldname); char *dbi_result_get_string_copy(dbi_result Result, const char *fieldname);
unsigned char *dbi_result_get_binary_copy(dbi_result Result, const char *fi eldname); unsigned char *dbi_result_get_binary_copy(dbi_result Result, const char *fi eldname);
const char *dbi_result_get_enum(dbi_result Result, const char *fieldname); const char *dbi_result_get_enum(dbi_result Result, const char *fieldname);
const char *dbi_result_get_set(dbi_result Result, const char *fieldname); const char *dbi_result_get_set(dbi_result Result, const char *fieldname);
time_t dbi_result_get_datetime(dbi_result Result, const char *fieldname);
int dbi_result_bind_char(dbi_result Result, const char *fieldname, char *bi ndto); int dbi_result_bind_char(dbi_result Result, const char *fieldname, char *bi ndto);
int dbi_result_bind_uchar(dbi_result Result, const char *fieldname, unsigne d char *bindto); int dbi_result_bind_uchar(dbi_result Result, const char *fieldname, unsigne d char *bindto);
int dbi_result_bind_short(dbi_result Result, const char *fieldname, short * bindto); int dbi_result_bind_short(dbi_result Result, const char *fieldname, short * bindto);
int dbi_result_bind_ushort(dbi_result Result, const char *fieldname, unsign ed short *bindto); int dbi_result_bind_ushort(dbi_result Result, const char *fieldname, unsign ed short *bindto);
int dbi_result_bind_long(dbi_result Result, const char *fieldname, long *bi ndto); int dbi_result_bind_long(dbi_result Result, const char *fieldname, long *bi ndto);
int dbi_result_bind_ulong(dbi_result Result, const char *fieldname, unsigne d long *bindto); int dbi_result_bind_ulong(dbi_result Result, const char *fieldname, unsigne d long *bindto);
int dbi_result_bind_longlong(dbi_result Result, const char *fieldname, long long *bindto); int dbi_result_bind_longlong(dbi_result Result, const char *fieldname, long long *bindto);
int dbi_result_bind_ulonglong(dbi_result Result, const char *fieldname, uns igned long long *bindto); int dbi_result_bind_ulonglong(dbi_result Result, const char *fieldname, uns igned long long *bindto);
int dbi_result_bind_float(dbi_result Result, const char *fieldname, float * bindto); int dbi_result_bind_float(dbi_result Result, const char *fieldname, float * bindto);
skipping to change at line 153 skipping to change at line 170
int dbi_result_bind_string(dbi_result Result, const char *fieldname, const char **bindto); int dbi_result_bind_string(dbi_result Result, const char *fieldname, const char **bindto);
int dbi_result_bind_binary(dbi_result Result, const char *fieldname, const unsigned char **bindto); int dbi_result_bind_binary(dbi_result Result, const char *fieldname, const unsigned char **bindto);
int dbi_result_bind_string_copy(dbi_result Result, const char *fieldname, c har **bindto); int dbi_result_bind_string_copy(dbi_result Result, const char *fieldname, c har **bindto);
int dbi_result_bind_binary_copy(dbi_result Result, const char *fieldname, u nsigned char **bindto); int dbi_result_bind_binary_copy(dbi_result Result, const char *fieldname, u nsigned char **bindto);
int dbi_result_bind_enum(dbi_result Result, const char *fieldname, const ch ar **bindto); int dbi_result_bind_enum(dbi_result Result, const char *fieldname, const ch ar **bindto);
int dbi_result_bind_set(dbi_result Result, const char *fieldname, const cha r **bindto); int dbi_result_bind_set(dbi_result Result, const char *fieldname, const cha r **bindto);
int dbi_result_bind_datetime(dbi_result Result, const char *fieldname, time
_t *bindto);
/* and now for the same exact thing in index form: */
signed char dbi_result_get_char_idx(dbi_result Result, unsigned int idx);
unsigned char dbi_result_get_uchar_idx(dbi_result Result, unsigned int idx)
;
short dbi_result_get_short_idx(dbi_result Result, unsigned int idx);
unsigned short dbi_result_get_ushort_idx(dbi_result Result, unsigned int id
x);
long dbi_result_get_long_idx(dbi_result Result, unsigned int idx);
unsigned long dbi_result_get_ulong_idx(dbi_result Result, unsigned int idx)
;
long long dbi_result_get_longlong_idx(dbi_result Result, unsigned int idx);
unsigned long long dbi_result_get_ulonglong_idx(dbi_result Result, unsigned
int idx);
float dbi_result_get_float_idx(dbi_result Result, unsigned int idx);
double dbi_result_get_double_idx(dbi_result Result, unsigned int idx);
const char *dbi_result_get_string_idx(dbi_result Result, unsigned int idx);
const unsigned char *dbi_result_get_binary_idx(dbi_result Result, unsigned
int idx);
char *dbi_result_get_string_copy_idx(dbi_result Result, unsigned int idx);
unsigned char *dbi_result_get_binary_copy_idx(dbi_result Result, unsigned i
nt idx);
const char *dbi_result_get_enum_idx(dbi_result Result, unsigned int idx);
const char *dbi_result_get_set_idx(dbi_result Result, unsigned int idx);
time_t dbi_result_get_datetime_idx(dbi_result Result, unsigned int idx);
/*
int dbi_result_bind_char_idx(dbi_result Result, unsigned int idx, char *bin
dto);
int dbi_result_bind_uchar_idx(dbi_result Result, unsigned int idx, unsigned
char *bindto);
int dbi_result_bind_short_idx(dbi_result Result, unsigned int idx, short *b
indto);
int dbi_result_bind_ushort_idx(dbi_result Result, unsigned int idx, unsigne
d short *bindto);
int dbi_result_bind_long_idx(dbi_result Result, unsigned int idx, long *bin
dto);
int dbi_result_bind_ulong_idx(dbi_result Result, unsigned int idx, unsigned
long *bindto);
int dbi_result_bind_longlong_idx(dbi_result Result, unsigned int idx, long
long *bindto);
int dbi_result_bind_ulonglong_idx(dbi_result Result, unsigned int idx, unsi
gned long long *bindto);
int dbi_result_bind_float_idx(dbi_result Result, unsigned int idx, float *b
indto);
int dbi_result_bind_double_idx(dbi_result Result, unsigned int idx, double
*bindto);
int dbi_result_bind_string_idx(dbi_result Result, unsigned int idx, const c
har **bindto);
int dbi_result_bind_binary_idx(dbi_result Result, unsigned int idx, const u
nsigned char **bindto);
int dbi_result_bind_string_copy_idx(dbi_result Result, unsigned int idx, ch
ar **bindto);
int dbi_result_bind_binary_copy_idx(dbi_result Result, unsigned int idx, un
signed char **bindto);
int dbi_result_bind_enum_idx(dbi_result Result, unsigned int idx, const cha
r **bindto);
int dbi_result_bind_set_idx(dbi_result Result, unsigned int idx, const char
**bindto);
int dbi_result_bind_datetime_idx(dbi_result Result, unsigned int idx, time_
t *bindto);
*/
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* __DBI_H__ */ #endif /* __DBI_H__ */
 End of changes. 9 change blocks. 
5 lines changed or deleted 105 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/