dbd.h   dbd.h 
/* /*
* libdbi - database independent abstraction layer for C. * libdbi - database independent abstraction layer for C.
* Copyright (C) 2001-2002, David Parker and Mark Tobenkin. * Copyright (C) 2001-2003, David Parker and Mark Tobenkin.
* http://libdbi.sourceforge.net * http://libdbi.sourceforge.net
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* 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.17 2002/10/25 22:16:51 dap Exp $ * $Id: dbd.h,v 1.20 2003/06/21 21:36:19 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 50 skipping to change at line 50
int dbd_goto_row(dbi_result_t *result, unsigned long long row); int dbd_goto_row(dbi_result_t *result, unsigned long long row);
dbi_result_t *dbd_list_dbs(dbi_conn_t *conn, const char *pattern); dbi_result_t *dbd_list_dbs(dbi_conn_t *conn, const char *pattern);
dbi_result_t *dbd_list_tables(dbi_conn_t *conn, const char *db, const char *pattern); dbi_result_t *dbd_list_tables(dbi_conn_t *conn, const char *db, const char *pattern);
dbi_result_t *dbd_query(dbi_conn_t *conn, const char *statement); dbi_result_t *dbd_query(dbi_conn_t *conn, const char *statement);
dbi_result_t *dbd_query_null(dbi_conn_t *conn, const unsigned char *stateme nt, unsigned long st_length); dbi_result_t *dbd_query_null(dbi_conn_t *conn, const unsigned char *stateme nt, unsigned long st_length);
int dbd_quote_string(dbi_driver_t *driver, const char *orig, char *dest); int dbd_quote_string(dbi_driver_t *driver, const char *orig, char *dest);
char *dbd_select_db(dbi_conn_t *conn, const char *db); char *dbd_select_db(dbi_conn_t *conn, const char *db);
int dbd_geterror(dbi_conn_t *conn, int *errno, char **errstr); int dbd_geterror(dbi_conn_t *conn, int *errno, char **errstr);
unsigned long long dbd_get_seq_last(dbi_conn_t *conn, const char *sequence) ; unsigned long long dbd_get_seq_last(dbi_conn_t *conn, const char *sequence) ;
unsigned long long dbd_get_seq_next(dbi_conn_t *conn, const char *sequence) ; unsigned long long dbd_get_seq_next(dbi_conn_t *conn, const char *sequence) ;
int dbd_ping(dbi_conn_t *conn);
/* _DBD_* DRIVER AUTHORS HELPER FUNCTIONS */ /* _DBD_* DRIVER AUTHORS HELPER FUNCTIONS */
dbi_result_t *_dbd_result_create(dbi_conn_t *conn, void *handle, unsigned l ong long numrows_matched, unsigned long long numrows_affected); dbi_result_t *_dbd_result_create(dbi_conn_t *conn, void *handle, unsigned l ong long numrows_matched, unsigned long long numrows_affected);
void _dbd_result_set_numfields(dbi_result_t *result, unsigned short numfiel ds); void _dbd_result_set_numfields(dbi_result_t *result, unsigned short numfiel ds);
void _dbd_result_add_field(dbi_result_t *result, unsigned short idx, char * name, unsigned short type, unsigned int attribs); void _dbd_result_add_field(dbi_result_t *result, unsigned short idx, char * name, unsigned short type, unsigned int attribs);
dbi_row_t *_dbd_row_allocate(unsigned short numfields); dbi_row_t *_dbd_row_allocate(unsigned short numfields);
void _dbd_row_finalize(dbi_result_t *result, dbi_row_t *row, unsigned long long idx); void _dbd_row_finalize(dbi_result_t *result, dbi_row_t *row, unsigned long long idx);
void _dbd_internal_error_handler(dbi_conn_t *conn, const char *errmsg, cons t int errno); void _dbd_internal_error_handler(dbi_conn_t *conn, const char *errmsg, cons t int errno);
dbi_result_t *_dbd_result_create_from_stringarray(dbi_conn_t *conn, unsigne d long long numrows_matched, const char **stringarray); dbi_result_t *_dbd_result_create_from_stringarray(dbi_conn_t *conn, unsigne d long long numrows_matched, const char **stringarray);
void _dbd_register_driver_cap(dbi_driver_t *driver, const char *capname, in t value); void _dbd_register_driver_cap(dbi_driver_t *driver, const char *capname, in t value);
void _dbd_register_conn_cap(dbi_conn_t *conn, const char *capname, int valu e); void _dbd_register_conn_cap(dbi_conn_t *conn, const char *capname, int valu e);
int _dbd_result_add_to_conn(dbi_result_t *result); int _dbd_result_add_to_conn(dbi_result_t *result);
time_t _dbd_parse_datetime(const char *raw, unsigned long attribs);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* __DBD_H__ */ #endif /* __DBD_H__ */
 End of changes. 4 change blocks. 
2 lines changed or deleted 4 lines changed or added


 dbi-dev.h   dbi-dev.h 
/* /*
* libdbi - database independent abstraction layer for C. * libdbi - database independent abstraction layer for C.
* Copyright (C) 2001-2002, David Parker and Mark Tobenkin. * Copyright (C) 2001-2003, David Parker and Mark Tobenkin.
* http://libdbi.sourceforge.net * http://libdbi.sourceforge.net
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* 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.23 2002/11/06 00:35:33 dap Exp $ * $Id: dbi-dev.h,v 1.28 2003/06/21 21:36:19 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
#include <dbi/dbi.h> /* for dbi_conn_error_handler_func */ #include <dbi/dbi.h> /* for dbi_conn_error_handler_func */
skipping to change at line 70 skipping to change at line 70
void *result_handle; /* will be typecast into conn-specific type */ void *result_handle; /* will be typecast into conn-specific type */
unsigned long long numrows_matched; /* set immediately after query * / unsigned long long numrows_matched; /* set immediately after query * /
unsigned long long numrows_affected; unsigned long long numrows_affected;
_field_binding_t_pointer field_bindings; _field_binding_t_pointer field_bindings;
unsigned short numfields; /* can be zero or NULL until first fetchro w */ unsigned short numfields; /* can be zero or NULL until first fetchro w */
char **field_names; char **field_names;
unsigned short *field_types; unsigned short *field_types;
unsigned long *field_attribs; unsigned long *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 } result_state;
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 long currowidx; unsigned long 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 127 skipping to change at line 127
int (*get_socket)(dbi_conn_t_pointer); int (*get_socket)(dbi_conn_t_pointer);
dbi_result_t *(*list_dbs)(dbi_conn_t_pointer, const char *); dbi_result_t *(*list_dbs)(dbi_conn_t_pointer, const char *);
dbi_result_t *(*list_tables)(dbi_conn_t_pointer, const char *, const char *); dbi_result_t *(*list_tables)(dbi_conn_t_pointer, const char *, const char *);
dbi_result_t *(*query)(dbi_conn_t_pointer, const char *); dbi_result_t *(*query)(dbi_conn_t_pointer, const char *);
dbi_result_t *(*query_null)(dbi_conn_t_pointer, const unsigned char *, unsigned long); dbi_result_t *(*query_null)(dbi_conn_t_pointer, const unsigned char *, unsigned long);
int (*quote_string)(dbi_driver_t_pointer, const char *, char *); int (*quote_string)(dbi_driver_t_pointer, const char *, char *);
char *(*select_db)(dbi_conn_t_pointer, const char *); char *(*select_db)(dbi_conn_t_pointer, const char *);
int (*geterror)(dbi_conn_t_pointer, int *, char **); int (*geterror)(dbi_conn_t_pointer, int *, char **);
unsigned long long (*get_seq_last)(dbi_conn_t_pointer, const char *) ; unsigned long long (*get_seq_last)(dbi_conn_t_pointer, const char *) ;
unsigned long long (*get_seq_next)(dbi_conn_t_pointer, const char *) ; unsigned long long (*get_seq_next)(dbi_conn_t_pointer, const char *) ;
int (*ping)(dbi_conn_t_pointer);
} 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;
typedef struct dbi_driver_s { typedef struct dbi_driver_s {
void *dlhandle; void *dlhandle;
 End of changes. 4 change blocks. 
3 lines changed or deleted 4 lines changed or added


 dbi.h   dbi.h 
/* /*
* libdbi - database independent abstraction layer for C. * libdbi - database independent abstraction layer for C.
* Copyright (C) 2001-2002, David Parker and Mark Tobenkin. * Copyright (C) 2001-2003, David Parker and Mark Tobenkin.
* http://libdbi.sourceforge.net * http://libdbi.sourceforge.net
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* 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.37 2002/10/25 22:16:51 dap Exp $ * $Id: dbi.h,v 1.46 2003/06/21 21:36:19 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>
#include <time.h> #include <time.h>
/* opaque type definitions */ /* opaque type definitions */
typedef void * dbi_driver; typedef void * dbi_driver;
typedef void * dbi_conn; typedef void * dbi_conn;
typedef void * dbi_result; typedef void * dbi_result;
/* other type definitions */
typedef enum { DBI_ERROR_USER = -1, DBI_ERROR_NONE = 0, DBI_ERROR_DBD, DBI_ ERROR_BADOBJECT, DBI_ERROR_BADTYPE, DBI_ERROR_BADIDX, DBI_ERROR_BADNAME, DB I_ERROR_UNSUPPORTED, DBI_ERROR_NOCONN, DBI_ERROR_NOMEM } dbi_error_flag; typedef enum { DBI_ERROR_USER = -1, DBI_ERROR_NONE = 0, DBI_ERROR_DBD, DBI_ ERROR_BADOBJECT, DBI_ERROR_BADTYPE, DBI_ERROR_BADIDX, DBI_ERROR_BADNAME, DB I_ERROR_UNSUPPORTED, DBI_ERROR_NOCONN, DBI_ERROR_NOMEM } dbi_error_flag;
typedef struct {
unsigned char month;
unsigned char day;
signed short year; // may be negative (B.C.)
} dbi_date;
typedef struct {
// when used as an interval value, at most one of these values may b
e negative.
// when used as a counter, the hour may be greater than 23.
// when used as a time of day, everything is as you would expect.
signed long hour;
signed char minute;
signed char second;
signed short millisecond;
signed long utc_offset; // seconds east of UTC
} dbi_time;
typedef struct {
dbi_date date;
dbi_time time;
} dbi_datetime;
/* function callback definitions */ /* function callback definitions */
typedef void (*dbi_conn_error_handler_func)(dbi_conn, void *); typedef void (*dbi_conn_error_handler_func)(dbi_conn, void *);
/* 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_DATETIME 5
#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 << 0)
#define DBI_INTEGER_SIZE1 2 #define DBI_INTEGER_SIZE1 (1 << 1)
#define DBI_INTEGER_SIZE2 4 #define DBI_INTEGER_SIZE2 (1 << 2)
#define DBI_INTEGER_SIZE3 8 #define DBI_INTEGER_SIZE3 (1 << 3)
#define DBI_INTEGER_SIZE4 16 #define DBI_INTEGER_SIZE4 (1 << 4)
#define DBI_INTEGER_SIZE8 32 #define DBI_INTEGER_SIZE8 (1 << 5)
#define DBI_DECIMAL_UNSIGNED 1
#define DBI_DECIMAL_SIZE4 2 #define DBI_DECIMAL_UNSIGNED (1 << 0)
#define DBI_DECIMAL_SIZE8 4 #define DBI_DECIMAL_SIZE4 (1 << 1)
#define DBI_STRING_FIXEDSIZE 1 /* XXX unused as of now */ #define DBI_DECIMAL_SIZE8 (1 << 2)
#define DBI_DATETIME_DATE 1
#define DBI_DATETIME_TIME 2 #define DBI_STRING_FIXEDSIZE (1 << 0) /* XXX unused as of now */
#define DBI_DATETIME_DATE (1 << 0)
#define DBI_DATETIME_TIME (1 << 1)
int dbi_initialize(const char *driverdir); int dbi_initialize(const char *driverdir);
void dbi_shutdown(); void dbi_shutdown();
const char *dbi_version(); const char *dbi_version();
int dbi_set_verbosity(int verbosity);
dbi_driver dbi_driver_list(dbi_driver Current); /* returns next driver. if current is NULL, return first driver. */ dbi_driver dbi_driver_list(dbi_driver Current); /* returns next driver. if current is NULL, return first driver. */
dbi_driver dbi_driver_open(const char *name); /* goes thru linked list unti l it finds the right one */ dbi_driver dbi_driver_open(const char *name); /* goes thru linked list unti l it finds the right one */
int dbi_driver_is_reserved_word(dbi_driver Driver, const char *word); int dbi_driver_is_reserved_word(dbi_driver Driver, const char *word);
void *dbi_driver_specific_function(dbi_driver Driver, const char *name); void *dbi_driver_specific_function(dbi_driver Driver, const char *name);
int dbi_driver_quote_string(dbi_driver Driver, char **orig); int dbi_driver_quote_string(dbi_driver Driver, char **orig);
int dbi_driver_cap_get(dbi_driver Driver, const char *capname); int dbi_driver_cap_get(dbi_driver Driver, const char *capname);
const char *dbi_driver_get_name(dbi_driver Driver); const char *dbi_driver_get_name(dbi_driver Driver);
const char *dbi_driver_get_filename(dbi_driver Driver); const char *dbi_driver_get_filename(dbi_driver Driver);
skipping to change at line 117 skipping to change at line 143
int dbi_conn_connect(dbi_conn Conn); int dbi_conn_connect(dbi_conn Conn);
int dbi_conn_get_socket(dbi_conn Conn); int dbi_conn_get_socket(dbi_conn Conn);
dbi_result dbi_conn_get_db_list(dbi_conn Conn, const char *pattern); dbi_result dbi_conn_get_db_list(dbi_conn Conn, const char *pattern);
dbi_result dbi_conn_get_table_list(dbi_conn Conn, const char *db, const cha r *pattern); dbi_result dbi_conn_get_table_list(dbi_conn Conn, const char *db, const cha r *pattern);
dbi_result dbi_conn_query(dbi_conn Conn, const char *statement); dbi_result dbi_conn_query(dbi_conn Conn, const char *statement);
dbi_result dbi_conn_queryf(dbi_conn Conn, const char *formatstr, ...); dbi_result dbi_conn_queryf(dbi_conn Conn, const char *formatstr, ...);
dbi_result dbi_conn_query_null(dbi_conn Conn, const unsigned char *statemen t, unsigned long st_length); dbi_result dbi_conn_query_null(dbi_conn Conn, const unsigned char *statemen t, unsigned long st_length);
int dbi_conn_select_db(dbi_conn Conn, const char *db); int dbi_conn_select_db(dbi_conn Conn, const char *db);
unsigned long long dbi_conn_sequence_last(dbi_conn Conn, const char *name); /* name of the sequence or table */ unsigned long long dbi_conn_sequence_last(dbi_conn Conn, const char *name); /* name of the sequence or table */
unsigned long long dbi_conn_sequence_next(dbi_conn Conn, const char *name); unsigned long long dbi_conn_sequence_next(dbi_conn Conn, const char *name);
int dbi_conn_ping(dbi_conn Conn);
dbi_conn dbi_result_get_conn(dbi_result Result); dbi_conn dbi_result_get_conn(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 long long row); int dbi_result_seek_row(dbi_result Result, unsigned long long 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 long long dbi_result_get_currow(dbi_result Result);
unsigned long long dbi_result_get_numrows(dbi_result Result); unsigned long long dbi_result_get_numrows(dbi_result Result);
unsigned long long dbi_result_get_numrows_affected(dbi_result Result); unsigned long long dbi_result_get_numrows_affected(dbi_result Result);
unsigned long long dbi_result_get_field_size(dbi_result Result, const char *fieldname); unsigned long long dbi_result_get_field_size(dbi_result Result, const char *fieldname);
unsigned long long dbi_result_get_field_size_idx(dbi_result Result, unsigne d short idx); unsigned long long dbi_result_get_field_size_idx(dbi_result Result, unsigne d short idx);
unsigned long long dbi_result_get_field_length(dbi_result Result, const cha r *fieldname); /* size-1 */ unsigned long long dbi_result_get_field_length(dbi_result Result, const cha r *fieldname); /* size-1 */
unsigned long long dbi_result_get_field_length_idx(dbi_result Result, unsig ned short idx); unsigned long long dbi_result_get_field_length_idx(dbi_result Result, unsig ned short idx);
unsigned short dbi_result_get_field_idx(dbi_result Result, const char *fiel dname); unsigned short dbi_result_get_field_idx(dbi_result Result, const char *fiel dname);
const char *dbi_result_get_field_name(dbi_result Result, unsigned short idx ); const char *dbi_result_get_field_name(dbi_result Result, unsigned short idx );
unsigned short dbi_result_get_numfields(dbi_result Result); unsigned short 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(dbi_result Result, const char *fie ldname);
skipping to change at line 163 skipping to change at line 191
float dbi_result_get_float(dbi_result Result, const char *fieldname); float dbi_result_get_float(dbi_result Result, const char *fieldname);
double dbi_result_get_double(dbi_result Result, const char *fieldname); double dbi_result_get_double(dbi_result Result, const char *fieldname);
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_set(dbi_result Result, const char *fieldname);
time_t dbi_result_get_datetime(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);
int dbi_result_bind_double(dbi_result Result, const char *fieldname, double *bindto); int dbi_result_bind_double(dbi_result Result, const char *fieldname, double *bindto);
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_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); int dbi_result_bind_datetime(dbi_result Result, const char *fieldname, time _t *bindto);
/* and now for the same exact thing in index form: */ /* and now for the same exact thing in index form: */
signed char dbi_result_get_char_idx(dbi_result Result, unsigned short idx); signed char dbi_result_get_char_idx(dbi_result Result, unsigned short idx);
unsigned char dbi_result_get_uchar_idx(dbi_result Result, unsigned short id x); unsigned char dbi_result_get_uchar_idx(dbi_result Result, unsigned short id x);
short dbi_result_get_short_idx(dbi_result Result, unsigned short idx); short dbi_result_get_short_idx(dbi_result Result, unsigned short idx);
unsigned short dbi_result_get_ushort_idx(dbi_result Result, unsigned short idx); unsigned short dbi_result_get_ushort_idx(dbi_result Result, unsigned short idx);
long dbi_result_get_long_idx(dbi_result Result, unsigned short idx); long dbi_result_get_long_idx(dbi_result Result, unsigned short idx);
unsigned long dbi_result_get_ulong_idx(dbi_result Result, unsigned short id x); unsigned long dbi_result_get_ulong_idx(dbi_result Result, unsigned short id x);
skipping to change at line 211 skipping to change at line 233
float dbi_result_get_float_idx(dbi_result Result, unsigned short idx); float dbi_result_get_float_idx(dbi_result Result, unsigned short idx);
double dbi_result_get_double_idx(dbi_result Result, unsigned short idx); double dbi_result_get_double_idx(dbi_result Result, unsigned short idx);
const char *dbi_result_get_string_idx(dbi_result Result, unsigned short idx ); const char *dbi_result_get_string_idx(dbi_result Result, unsigned short idx );
const unsigned char *dbi_result_get_binary_idx(dbi_result Result, unsigned short idx); const unsigned char *dbi_result_get_binary_idx(dbi_result Result, unsigned short idx);
char *dbi_result_get_string_copy_idx(dbi_result Result, unsigned short idx) ; char *dbi_result_get_string_copy_idx(dbi_result Result, unsigned short idx) ;
unsigned char *dbi_result_get_binary_copy_idx(dbi_result Result, unsigned s hort idx); unsigned char *dbi_result_get_binary_copy_idx(dbi_result Result, unsigned s hort idx);
const char *dbi_result_get_enum_idx(dbi_result Result, unsigned short idx);
const char *dbi_result_get_set_idx(dbi_result Result, unsigned short idx);
time_t dbi_result_get_datetime_idx(dbi_result Result, unsigned short idx); time_t dbi_result_get_datetime_idx(dbi_result Result, unsigned short idx);
/* /*
int dbi_result_bind_char_idx(dbi_result Result, unsigned int idx, char *bin dto); 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_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_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_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_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_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_longlong_idx(dbi_result Result, unsigned int idx, long long *bindto);
skipping to change at line 235 skipping to change at line 254
int dbi_result_bind_float_idx(dbi_result Result, unsigned int idx, float *b indto); 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_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_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_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_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_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); 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. 13 change blocks. 
33 lines changed or deleted 46 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/