dblib.h
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: dblib.h,v $
- * PRODUCTION Revision 1000.1 2004/04/21 14:47:13 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.1
- * PRODUCTION
- * ===========================================================================
- */
- /* FreeTDS - Library of routines accessing Sybase and Microsoft databases
- * Copyright (C) 1998-1999 Brian Bruns
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
- #ifndef _dblib_h_
- #define _dblib_h_
- #ifdef __cplusplus
- extern "C" {
- #endif
- static char rcsid_dblib_h [ ] =
- "$Id: dblib.h,v 1000.1 2004/04/21 14:47:13 gouriano Exp $";
- static void *no_unused_dblib_h_warn[]={rcsid_dblib_h, no_unused_dblib_h_warn};
- #define DBLIB_INFO_MSG_TYPE 0
- #define DBLIB_ERROR_MSG_TYPE 1
- /*
- ** internal prototypes
- */
- int dblib_handle_info_message(TDSCONTEXT *ctxptr, TDSSOCKET *tdsptr, TDSMSGINFO *msgptr);
- int dblib_handle_err_message(TDSCONTEXT *ctxptr, TDSSOCKET *tdsptr, TDSMSGINFO *msgptr);
- DBINT _convert_char(int srctype,BYTE *src,int destype,BYTE *dest,DBINT destlen);
- DBINT _convert_intn(int srctype,BYTE *src,int destype,BYTE *dest,DBINT destlen);
- #ifdef __cplusplus
- }
- #endif
- #endif