NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions
ctlib.h File Reference
#include <freetds/tds.h>
#include <freetds/convert.h>
#include <freetds/string.h>
#include <freetds/pushvis.h>
#include <freetds/popvis.h>
+ Include dependency graph for ctlib.h:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  _cs_config
 
struct  cs_diag_msg_client
 
struct  cs_diag_msg_svr
 
struct  cs_diag_msg
 
struct  _cs_context
 
struct  _ct_colinfo
 
struct  _cs_connection
 
struct  _cs_param
 
struct  _csremote_proc
 
struct  _cs_dynamic
 
struct  _cs_command
 
struct  _cs_blkdesc
 
struct  _cs_locale
 

Macros

#define CS_DYNAMIC_CMD   160
 
#define CS_CUR_CMD   161
 
#define _CS_RES_NONE   -1
 
#define _CS_RES_INIT   0
 
#define _CS_RES_RESULTSET_EMPTY   1
 
#define _CS_RES_RESULTSET_ROWS   2
 
#define _CS_RES_STATUS   3
 
#define _CS_RES_CMD_DONE   4
 
#define _CS_RES_CMD_SUCCEED   5
 
#define _CS_RES_END_RESULTS   6
 
#define _CS_RES_DESCRIBE_RESULT   7
 
#define _CS_COMMAND_IDLE   0
 
#define _CS_COMMAND_BUILDING   1
 
#define _CS_COMMAND_READY   2
 
#define _CS_COMMAND_SENT   3
 
#define _CS_CANCEL_NOCANCEL   0
 
#define _CS_CANCEL_PENDING   1
 
#define _CS_ERRHAND_INLINE   1
 
#define _CS_ERRHAND_CB   2
 
#define _CS_CURS_TYPE_UNACTIONED   TDS_CURSOR_STATE_UNACTIONED
 
#define _CS_CURS_TYPE_REQUESTED   TDS_CURSOR_STATE_REQUESTED
 
#define _CS_CURS_TYPE_SENT   TDS_CURSOR_STATE_SENT
 

Typedefs

typedef struct _cs_dynamic CS_DYNAMIC
 
typedef struct _cs_param CS_PARAM
 
typedef struct _csremote_proc CS_REMOTE_PROC
 
typedef struct _ct_colinfo CT_COLINFO
 
typedef CS_PARAM CSREMOTE_PROC_PARAM
 
typedef struct _csremote_proc CSREMOTE_PROC
 
typedef CS_PARAM CS_DYNAMIC_PARAM
 

Functions

TDSRET _ct_handle_server_message (const TDSCONTEXT *ctxptr, TDSSOCKET *tdsptr, TDSMESSAGE *msgptr)
 
int _ct_handle_client_message (const TDSCONTEXT *ctxptr, TDSSOCKET *tdsptr, TDSMESSAGE *msgptr)
 
TDS_SERVER_TYPE _ct_get_server_type (TDSSOCKET *tds, int datatype)
 
int _ct_bind_data (CS_CONTEXT *ctx, TDSRESULTINFO *resinfo, TDSRESULTINFO *bindinfo, CS_INT offset)
 
int _ct_get_client_type (CS_CONTEXT *ctx, TDSCOLUMN *col)
 
void _ctclient_msg (CS_CONNECTION *con, const char *funcname, int layer, int origin, int severity, int number, const char *fmt,...)
 
CS_INT _ct_diag_clearmsg (CS_CONTEXT *context, CS_INT type)
 
void _cs_locale_free (CS_LOCALE *locale)
 
CS_LOCALE_cs_locale_copy (CS_LOCALE *orig)
 
int _cs_locale_copy_inplace (CS_LOCALE *new_locale, CS_LOCALE *orig)
 
int _cs_convert_not_client (CS_CONTEXT *ctx, TDSCOLUMN *curcol, CONV_RESULT *convert_buffer, unsigned char **p_src)
 Try to convert to a type we can handle. More...
 
void _csclient_msg (CS_CONTEXT *ctx, const char *funcname, int layer, int origin, int severity, int number, const char *fmt,...)
 
CS_RETCODE _cs_convert_ex (CS_CONTEXT *ctx, CS_DATAFMT *srcfmt, CS_VOID *srcdata, CS_DATAFMT *destfmt, CS_VOID *destdata, CS_INT *resultlen, TDS_SERVER_TYPE desttype, CS_VOID **handle)
 

Macro Definition Documentation

◆ _CS_CANCEL_NOCANCEL

#define _CS_CANCEL_NOCANCEL   0

Definition at line 214 of file ctlib.h.

◆ _CS_CANCEL_PENDING

#define _CS_CANCEL_PENDING   1

Definition at line 215 of file ctlib.h.

◆ _CS_COMMAND_BUILDING

#define _CS_COMMAND_BUILDING   1

Definition at line 209 of file ctlib.h.

◆ _CS_COMMAND_IDLE

#define _CS_COMMAND_IDLE   0

Definition at line 208 of file ctlib.h.

◆ _CS_COMMAND_READY

#define _CS_COMMAND_READY   2

Definition at line 210 of file ctlib.h.

◆ _CS_COMMAND_SENT

#define _CS_COMMAND_SENT   3

Definition at line 211 of file ctlib.h.

◆ _CS_CURS_TYPE_REQUESTED

#define _CS_CURS_TYPE_REQUESTED   TDS_CURSOR_STATE_REQUESTED

Definition at line 264 of file ctlib.h.

◆ _CS_CURS_TYPE_SENT

#define _CS_CURS_TYPE_SENT   TDS_CURSOR_STATE_SENT

Definition at line 265 of file ctlib.h.

◆ _CS_CURS_TYPE_UNACTIONED

#define _CS_CURS_TYPE_UNACTIONED   TDS_CURSOR_STATE_UNACTIONED

Definition at line 263 of file ctlib.h.

◆ _CS_ERRHAND_CB

#define _CS_ERRHAND_CB   2

Definition at line 251 of file ctlib.h.

◆ _CS_ERRHAND_INLINE

#define _CS_ERRHAND_INLINE   1

Definition at line 250 of file ctlib.h.

◆ _CS_RES_CMD_DONE

#define _CS_RES_CMD_DONE   4

Definition at line 201 of file ctlib.h.

◆ _CS_RES_CMD_SUCCEED

#define _CS_RES_CMD_SUCCEED   5

Definition at line 202 of file ctlib.h.

◆ _CS_RES_DESCRIBE_RESULT

#define _CS_RES_DESCRIBE_RESULT   7

Definition at line 204 of file ctlib.h.

◆ _CS_RES_END_RESULTS

#define _CS_RES_END_RESULTS   6

Definition at line 203 of file ctlib.h.

◆ _CS_RES_INIT

#define _CS_RES_INIT   0

Definition at line 197 of file ctlib.h.

◆ _CS_RES_NONE

#define _CS_RES_NONE   -1

Definition at line 196 of file ctlib.h.

◆ _CS_RES_RESULTSET_EMPTY

#define _CS_RES_RESULTSET_EMPTY   1

Definition at line 198 of file ctlib.h.

◆ _CS_RES_RESULTSET_ROWS

#define _CS_RES_RESULTSET_ROWS   2

Definition at line 199 of file ctlib.h.

◆ _CS_RES_STATUS

#define _CS_RES_STATUS   3

Definition at line 200 of file ctlib.h.

◆ CS_CUR_CMD

#define CS_CUR_CMD   161

Definition at line 192 of file ctlib.h.

◆ CS_DYNAMIC_CMD

#define CS_DYNAMIC_CMD   160

Definition at line 191 of file ctlib.h.

Typedef Documentation

◆ CS_DYNAMIC

typedef struct _cs_dynamic CS_DYNAMIC

Definition at line 1 of file ctlib.h.

◆ CS_DYNAMIC_PARAM

Definition at line 179 of file ctlib.h.

◆ CS_PARAM

typedef struct _cs_param CS_PARAM

Definition at line 1 of file ctlib.h.

◆ CS_REMOTE_PROC

Definition at line 1 of file ctlib.h.

◆ CSREMOTE_PROC

typedef struct _csremote_proc CSREMOTE_PROC

◆ CSREMOTE_PROC_PARAM

Definition at line 165 of file ctlib.h.

◆ CT_COLINFO

typedef struct _ct_colinfo CT_COLINFO

Function Documentation

◆ _cs_convert_ex()

CS_RETCODE _cs_convert_ex ( CS_CONTEXT ctx,
CS_DATAFMT srcfmt,
CS_VOID srcdata,
CS_DATAFMT destfmt,
CS_VOID destdata,
CS_INT resultlen,
TDS_SERVER_TYPE  desttype,
CS_VOID **  handle 
)

◆ _cs_convert_not_client()

int _cs_convert_not_client ( CS_CONTEXT ctx,
TDSCOLUMN curcol,
CONV_RESULT convert_buffer,
unsigned char **  p_src 
)

◆ _cs_locale_copy()

CS_LOCALE* _cs_locale_copy ( CS_LOCALE orig)

Definition at line 300 of file cs.c.

Referenced by ct_con_props().

◆ _cs_locale_copy_inplace()

int _cs_locale_copy_inplace ( CS_LOCALE new_locale,
CS_LOCALE orig 
)

Definition at line 262 of file cs.c.

Referenced by ct_con_props().

◆ _cs_locale_free()

void _cs_locale_free ( CS_LOCALE locale)

Definition at line 249 of file cs.c.

Referenced by ct_con_drop(), and ct_con_props().

◆ _csclient_msg()

void _csclient_msg ( CS_CONTEXT ctx,
const char *  funcname,
int  layer,
int  origin,
int  severity,
int  number,
const char *  fmt,
  ... 
)

◆ _ct_bind_data()

int _ct_bind_data ( CS_CONTEXT ctx,
TDSRESULTINFO resinfo,
TDSRESULTINFO bindinfo,
CS_INT  offset 
)

Definition at line 1794 of file ct.c.

Referenced by _blk_rowxfer_out(), and test_type().

◆ _ct_diag_clearmsg()

CS_INT _ct_diag_clearmsg ( CS_CONTEXT context,
CS_INT  type 
)

Definition at line 4805 of file ct.c.

Referenced by cs_ctx_drop().

◆ _ct_get_client_type()

int _ct_get_client_type ( CS_CONTEXT ctx,
TDSCOLUMN col 
)

◆ _ct_get_server_type()

TDS_SERVER_TYPE _ct_get_server_type ( TDSSOCKET tds,
int  datatype 
)

Definition at line 2128 of file ct.c.

Referenced by _blk_get_col_data(), _cs_convert(), _cs_convert_ex(), and cs_will_convert().

◆ _ct_handle_client_message()

int _ct_handle_client_message ( const TDSCONTEXT ctxptr,
TDSSOCKET tdsptr,
TDSMESSAGE msgptr 
)

Definition at line 100 of file ctutil.c.

Referenced by ct_init().

◆ _ct_handle_server_message()

TDSRET _ct_handle_server_message ( const TDSCONTEXT ctxptr,
TDSSOCKET tdsptr,
TDSMESSAGE msgptr 
)

Definition at line 158 of file ctutil.c.

Referenced by ct_init().

◆ _ctclient_msg()

void _ctclient_msg ( CS_CONNECTION con,
const char *  funcname,
int  layer,
int  origin,
int  severity,
int  number,
const char *  fmt,
  ... 
)
Modified on Fri Sep 20 14:58:27 2024 by modify_doxy.py rev. 669887