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.28 2003/06/21 21:36:19 dap24 Exp $ * $Id: dbi-dev.h,v 1.29 2004/01/03 17:21:25 mhoenicka 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 118 skipping to change at line 118
typedef struct dbi_functions_s { typedef struct dbi_functions_s {
void (*register_driver)(const dbi_info_t **, const char ***, const c har ***); void (*register_driver)(const dbi_info_t **, const char ***, const c har ***);
int (*initialize)(dbi_driver_t_pointer); int (*initialize)(dbi_driver_t_pointer);
int (*connect)(dbi_conn_t_pointer); int (*connect)(dbi_conn_t_pointer);
int (*disconnect)(dbi_conn_t_pointer); int (*disconnect)(dbi_conn_t_pointer);
int (*fetch_row)(dbi_result_t *, unsigned long long); int (*fetch_row)(dbi_result_t *, unsigned long long);
int (*free_query)(dbi_result_t *); int (*free_query)(dbi_result_t *);
int (*goto_row)(dbi_result_t *, unsigned long long); int (*goto_row)(dbi_result_t *, unsigned long long);
int (*get_socket)(dbi_conn_t_pointer); int (*get_socket)(dbi_conn_t_pointer);
const char *(*get_encoding)(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); int (*ping)(dbi_conn_t_pointer);
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 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.46 2003/06/21 21:36:19 dap24 Exp $ * $Id: dbi.h,v 1.50 2004/01/03 17:22:52 mhoenicka 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>
skipping to change at line 101 skipping to change at line 101
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); 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_copy(dbi_driver Driver, const char *orig, char **newstr);
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);
const char *dbi_driver_get_description(dbi_driver Driver); const char *dbi_driver_get_description(dbi_driver Driver);
const char *dbi_driver_get_maintainer(dbi_driver Driver); const char *dbi_driver_get_maintainer(dbi_driver Driver);
const char *dbi_driver_get_url(dbi_driver Driver); const char *dbi_driver_get_url(dbi_driver Driver);
const char *dbi_driver_get_version(dbi_driver Driver); const char *dbi_driver_get_version(dbi_driver Driver);
const char *dbi_driver_get_date_compiled(dbi_driver Driver); const char *dbi_driver_get_date_compiled(dbi_driver Driver);
skipping to change at line 135 skipping to change at line 136
int dbi_conn_disjoin_results(dbi_conn Conn); int dbi_conn_disjoin_results(dbi_conn Conn);
void dbi_conn_close(dbi_conn Conn); void dbi_conn_close(dbi_conn Conn);
int dbi_conn_error(dbi_conn Conn, const char **errmsg_dest); int dbi_conn_error(dbi_conn Conn, const char **errmsg_dest);
void dbi_conn_error_handler(dbi_conn Conn, dbi_conn_error_handler_func func tion, void *user_argument); void dbi_conn_error_handler(dbi_conn Conn, dbi_conn_error_handler_func func tion, void *user_argument);
dbi_error_flag dbi_conn_error_flag(dbi_conn Conn); dbi_error_flag dbi_conn_error_flag(dbi_conn Conn);
int dbi_conn_set_error(dbi_conn Conn, int errnum, const char *formatstr, .. .); int dbi_conn_set_error(dbi_conn Conn, int errnum, const char *formatstr, .. .);
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);
const char *dbi_conn_get_encoding(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); 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_has_prev_row(dbi_result Result);
int dbi_result_prev_row(dbi_result Result); int dbi_result_prev_row(dbi_result Result);
int dbi_result_has_next_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_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 );
 End of changes. 5 change blocks. 
1 lines changed or deleted 5 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/