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.5 2001/08/15 19:20:47 dap24 Exp $ * $Id: dbd.h,v 1.6 2001/08/23 20:16:45 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>
#include <dbi/dbi-dev.h> #include <dbi/dbi-dev.h>
/* FUNCTIONS EXPORTED BY EACH PLUGIN */ /* FUNCTIONS EXPORTED BY EACH PLUGIN */
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, const char *pattern);
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); 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);
/* _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);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 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.7 2001/08/15 19:20:47 dap24 Exp $ * $Id: dbi-dev.h,v 1.8 2001/08/23 20:16:45 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 108 skipping to change at line 108
} dbi_option_t; } dbi_option_t;
typedef struct dbi_functions_s { typedef struct dbi_functions_s {
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, const char *);
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 *); 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;
 End of changes. 2 change blocks. 
2 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.19 2001/08/15 20:30:46 dap24 Exp $ * $Id: dbi.h,v 1.20 2001/08/23 20:16:45 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>
skipping to change at line 95 skipping to change at line 95
int dbi_driver_get_option_numeric(dbi_driver Driver, const char *key); int dbi_driver_get_option_numeric(dbi_driver Driver, const char *key);
const char *dbi_driver_get_option_list(dbi_driver Driver, const char *curre nt); /* returns key of next option, or the first option key if current is N ULL */ const char *dbi_driver_get_option_list(dbi_driver Driver, const char *curre nt); /* returns key of next option, or the first option key if current is N ULL */
void dbi_driver_clear_option(dbi_driver Driver, const char *key); void dbi_driver_clear_option(dbi_driver Driver, const char *key);
void dbi_driver_clear_options(dbi_driver Driver); void dbi_driver_clear_options(dbi_driver Driver);
void dbi_driver_close(dbi_driver Driver); void dbi_driver_close(dbi_driver Driver);
int dbi_driver_error(dbi_driver Driver, char **errmsg_dest); int dbi_driver_error(dbi_driver Driver, char **errmsg_dest);
void dbi_driver_error_handler(dbi_driver Driver, void *function, void *user _argument); void dbi_driver_error_handler(dbi_driver Driver, void *function, void *user _argument);
int dbi_driver_connect(dbi_driver Driver); int dbi_driver_connect(dbi_driver Driver);
dbi_result dbi_driver_get_db_list(dbi_driver Driver); dbi_result dbi_driver_get_db_list(dbi_driver Driver, const char *pattern);
dbi_result dbi_driver_get_table_list(dbi_driver Driver, const char *db); dbi_result dbi_driver_get_table_list(dbi_driver Driver, const char *db);
dbi_result dbi_driver_query(dbi_driver Driver, const char *formatstr, ...); dbi_result dbi_driver_query(dbi_driver Driver, const char *formatstr, ...);
int dbi_driver_select_db(dbi_driver Driver, const char *db); int dbi_driver_select_db(dbi_driver Driver, const char *db);
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);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 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/