ctlib.h
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: ctlib.h,v $
- * PRODUCTION Revision 1000.0 2003/10/29 20:20:22 gouriano
- * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] 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 _ctlib_h_
- #define _ctlib_h_
- /*
- ** Internal (not part of the exposed API) prototypes and such.
- */
- #ifdef __cplusplus
- extern "C" {
- #endif
- static char rcsid_ctlib_h [ ] =
- "$Id: ctlib.h,v 1000.0 2003/10/29 20:20:22 gouriano Exp $";
- static void *no_unused_ctlib_h_warn[]={rcsid_ctlib_h, no_unused_ctlib_h_warn};
- #include <tds.h>
- #define DBLIB_INFO_MSG_TYPE 0
- #define DBLIB_ERROR_MSG_TYPE 1
- /*
- ** internal typedefs
- */
- typedef struct ctcolinfo
- {
- TDS_SMALLINT *indicator;
- } CT_COLINFO;
- /*
- ** internal prototypes
- */
- int ctlib_handle_info_message(TDSCONTEXT *ctxptr, TDSSOCKET *tdsptr, TDSMSGINFO *msgptr);
- int ctlib_handle_err_message(TDSCONTEXT *ctxptr, TDSSOCKET *tdsptr, TDSMSGINFO *msgptr);
- int _ct_get_server_type(int datatype);
- #ifdef __cplusplus
- }
- #endif
- #endif