00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _ctlib_h_
00021 #define _ctlib_h_
00022
00023
00024
00025 #ifdef __cplusplus
00026 extern "C"
00027 {
00028 #if 0
00029 }
00030 #endif
00031 #endif
00032
00033 static char rcsid_ctlib_h[] = "$Id: ctlib.h,v 1.7 2003/12/19 23:25:59 freddy77 Exp $";
00034 static void *no_unused_ctlib_h_warn[] = { rcsid_ctlib_h, no_unused_ctlib_h_warn };
00035
00036 #include <tds.h>
00037
00038
00039
00040 struct _cs_context
00041 {
00042 CS_INT date_convert_fmt;
00043 CS_INT cs_errhandletype;
00044 CS_INT cs_diag_msglimit;
00045
00046
00047
00048
00049 CS_INT cs_diag_msglimit_client;
00050 CS_INT cs_diag_msglimit_server;
00051 CS_INT cs_diag_msglimit_total;
00052 struct cs_diag_msg_client *clientstore;
00053 struct cs_diag_msg_svr *svrstore;
00054
00055
00056
00057 struct cs_diag_msg *msgstore;
00058 CS_CSLIBMSG_FUNC _cslibmsg_cb;
00059 CS_CLIENTMSG_FUNC _clientmsg_cb;
00060 CS_SERVERMSG_FUNC _servermsg_cb;
00061
00062 void *userdata;
00063 int userdata_len;
00064
00065 TDSCONTEXT *tds_ctx;
00066 CS_CONFIG config;
00067 };
00068
00069 struct _cs_blkdesc
00070 {
00071 int dummy;
00072 };
00073
00074
00075
00076
00077 typedef struct ctcolinfo
00078 {
00079 TDS_SMALLINT *indicator;
00080 }
00081 CT_COLINFO;
00082
00083
00084
00085
00086 int ctlib_handle_server_message(TDSCONTEXT * ctxptr, TDSSOCKET * tdsptr, TDSMSGINFO * msgptr);
00087 int ctlib_handle_client_message(TDSCONTEXT * ctxptr, TDSSOCKET * tdsptr, TDSMSGINFO * msgptr);
00088 int _ct_get_server_type(int datatype);
00089
00090 #ifdef __cplusplus
00091 #if 0
00092 {
00093 #endif
00094 }
00095 #endif
00096
00097 #endif