27 #if defined(__GNUC__) && __GNUC__ >= 4
28 #pragma GCC visibility push(hidden)
39 static const char rcsid_ctlib_h[] =
"$Id: ctlib.h,v 1.25 2007/06/25 09:48:20 freddy77 Exp $";
40 static const void *
const no_unused_ctlib_h_warn[] = { rcsid_ctlib_h, no_unused_ctlib_h_warn };
48 short cs_expose_formats;
78 CS_INT date_convert_fmt;
79 CS_INT cs_errhandletype;
80 CS_INT cs_diag_msglimit;
85 CS_INT cs_diag_msglimit_client;
86 CS_INT cs_diag_msglimit_server;
87 CS_INT cs_diag_msglimit_total;
94 CS_CSLIBMSG_FUNC _cslibmsg_cb;
95 CS_CLIENTMSG_FUNC _clientmsg_cb;
96 CS_SERVERMSG_FUNC _servermsg_cb;
110 TDS_SMALLINT *indicator;
123 CS_CLIENTMSG_FUNC _clientmsg_cb;
124 CS_SERVERMSG_FUNC _servermsg_cb;
150 CS_INT datalen_value;
151 CS_SMALLINT indicator_value;
184 #define CS_DYNAMIC_CMD 160
185 #define CS_CUR_CMD 161
189 #define _CS_RES_NONE -1
190 #define _CS_RES_INIT 0
191 #define _CS_RES_RESULTSET_EMPTY 1
192 #define _CS_RES_RESULTSET_ROWS 2
193 #define _CS_RES_STATUS 3
194 #define _CS_RES_CMD_DONE 4
195 #define _CS_RES_CMD_SUCCEED 5
196 #define _CS_RES_END_RESULTS 6
197 #define _CS_RES_DESCRIBE_RESULT 7
201 #define _CS_COMMAND_IDLE 0
202 #define _CS_COMMAND_BUILDING 1
203 #define _CS_COMMAND_READY 2
204 #define _CS_COMMAND_SENT 3
207 #define _CS_CANCEL_NOCANCEL 0
208 #define _CS_CANCEL_PENDING 1
212 CS_INT command_state;
213 CS_INT results_state;
222 int curr_result_type;
225 int get_data_bytes_returned;
227 CS_INT send_data_started;
230 CS_INT client_cursor_id;
246 CS_CHAR *insert_stmt;
248 CS_INT identity_insert_on;
256 #define _CS_ERRHAND_INLINE 1
257 #define _CS_ERRHAND_CB 2
269 #define _CS_CURS_TYPE_UNACTIONED 0
270 #define _CS_CURS_TYPE_REQUESTED 1
271 #define _CS_CURS_TYPE_SENT 2
278 int _ct_get_server_type(
int datatype);
280 int _ct_get_client_type(
int datatype,
int usertype,
int size);
281 void _ctclient_msg(
CS_CONNECTION * con,
const char *funcname,
int layer,
int origin,
int severity,
int number,
282 const char *fmt, ...);
283 CS_INT _ct_diag_clearmsg(
CS_CONTEXT * context, CS_INT type);
295 #if defined(__GNUC__) && __GNUC__ >= 4
296 #pragma GCC visibility pop
Definition: cstypes.h:188
Definition: cstypes.h:174
Hold information for a server connection.
Definition: tds.h:1276
Hold information for any results.
Definition: tds.h:1026
Main include file for libtds.
Holds informations about a cursor.
Definition: tds.h:1163