NCBI C++ ToolKit
Macros | Functions | Variables
common.h File Reference
#include <config.h>
#include <stdarg.h>
#include <stdio.h>
#include <freetds/tds.h>
#include <freetds/data.h>
+ Include dependency graph for common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define FREETDS_SRCDIR   FREETDS_TOPDIR "/src/tds/unittests"
 

Functions

int try_tds_login (TDSLOGIN **login, TDSSOCKET **tds, const char *appname, int verbose)
 
int try_tds_logout (TDSLOGIN *login, TDSSOCKET *tds, int verbose)
 
int run_query (TDSSOCKET *tds, const char *query)
 
int get_unichar (const char **psrc)
 
char * to_utf8 (const char *src, char *dest)
 

Variables

char PASSWORD [512]
 
char USER [512]
 
char SERVER [512]
 
char DATABASE [512]
 
char CHARSET [512]
 
TDSCONTEXTtest_context
 
int utf8_max_len
 

Macro Definition Documentation

◆ FREETDS_SRCDIR

#define FREETDS_SRCDIR   FREETDS_TOPDIR "/src/tds/unittests"

Definition at line 22 of file common.h.

Function Documentation

◆ get_unichar()

int get_unichar ( const char **  psrc)

Definition at line 30 of file utf8.c.

References assert, n, and toupper().

Referenced by to_utf8().

◆ run_query()

int run_query ( TDSSOCKET tds,
const char *  query 
)

◆ to_utf8()

char* to_utf8 ( const char *  src,
char *  dest 
)

Definition at line 56 of file utf8.c.

References get_unichar(), len, n, and utf8_max_len.

Referenced by main(), and test().

◆ try_tds_login()

int try_tds_login ( TDSLOGIN **  login,
TDSSOCKET **  tds,
const char *  appname,
int  verbose 
)

◆ try_tds_logout()

int try_tds_logout ( TDSLOGIN login,
TDSSOCKET tds,
int  verbose 
)

Definition at line 128 of file common.c.

References login, NULL, tds, tds_close_socket, tds_free_context, tds_free_login, tds_free_socket, TDS_SUCCESS, and test_context.

Referenced by main().

Variable Documentation

◆ CHARSET

char CHARSET[512]
extern

Definition at line 11 of file common.c.

Referenced by main(), and try_tds_login().

◆ DATABASE

char DATABASE[512]
extern

Definition at line 32 of file common.c.

Referenced by continue_logging_in(), establish_login(), init(), main(), read_login_info(), and test().

◆ PASSWORD

char PASSWORD[512]
extern

◆ SERVER

char SERVER[512]
extern

◆ test_context

TDSCONTEXT* test_context
extern

Definition at line 52 of file common.c.

Referenced by main(), test0(), try_tds_login(), and try_tds_logout().

◆ USER

char USER[512]
extern

Definition at line 29 of file common.c.

Referenced by continue_logging_in(), establish_login(), read_login_info(), and try_tds_login().

◆ utf8_max_len

int utf8_max_len
extern

Definition at line 27 of file utf8.c.

Referenced by main(), and to_utf8().

Modified on Fri Jan 05 07:24:59 2024 by modify_doxy.py rev. 669887