Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

dblib.h

00001 /* FreeTDS - Library of routines accessing Sybase and Microsoft databases
00002  * Copyright (C) 1998-1999  Brian Bruns
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this library; if not, write to the
00016  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017  * Boston, MA 02111-1307, USA.
00018  */
00019 
00020 #ifndef _dblib_h_
00021 #define _dblib_h_
00022 
00023 #ifdef __cplusplus
00024 extern "C"
00025 {
00026 #if 0
00027 }
00028 #endif
00029 #endif
00030 
00031 static char rcsid_dblib_h[] = "$Id: dblib.h,v 1.13 2003/04/03 08:59:15 freddy77 Exp $";
00032 static void *no_unused_dblib_h_warn[] = { rcsid_dblib_h, no_unused_dblib_h_warn };
00033 
00034 
00035 #define DBLIB_INFO_MSG_TYPE 0
00036 #define DBLIB_ERROR_MSG_TYPE 1
00037 
00038 /*
00039 ** internal prototypes
00040 */
00041 int dblib_handle_info_message(TDSCONTEXT * ctxptr, TDSSOCKET * tdsptr, TDSMSGINFO * msgptr);
00042 int dblib_handle_err_message(TDSCONTEXT * ctxptr, TDSSOCKET * tdsptr, TDSMSGINFO * msgptr);
00043 int _dblib_client_msg(DBPROCESS * dbproc, int dberr, int severity, const char *dberrstr);
00044 void dblib_setTDS_version(TDSLOGIN * tds_login, DBINT version);
00045 
00046 DBINT _convert_char(int srctype, BYTE * src, int destype, BYTE * dest, DBINT destlen);
00047 DBINT _convert_intn(int srctype, BYTE * src, int destype, BYTE * dest, DBINT destlen);
00048 
00049 RETCODE _bcp_clear_storage(DBPROCESS * dbproc);
00050 RETCODE _bcp_get_term_var(BYTE * dataptr, BYTE * term, int term_len);
00051 RETCODE _bcp_get_prog_data(DBPROCESS * dbproc);
00052 int _bcp_readfmt_colinfo(DBPROCESS * dbproc, char *buf, BCP_HOSTCOLINFO * ci);
00053 RETCODE _bcp_read_hostfile(DBPROCESS * dbproc, FILE * hostfile, FILE * errfile, int *row_error);
00054 
00055 extern MHANDLEFUNC _dblib_msg_handler;
00056 extern EHANDLEFUNC _dblib_err_handler;
00057 
00058 #ifdef __cplusplus
00059 #if 0
00060 {
00061 #endif
00062 }
00063 #endif
00064 
00065 #endif

Generated on Sun Jun 13 18:55:25 2004 for FreeTDS API by doxygen1.3