NCBI C++ ToolKit
Classes | Functions | Variables
common.h File Reference
+ 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.

Classes

struct  COMMON_PWD
 

Functions

CS_RETCODE read_login_info (void)
 
CS_RETCODE try_ctlogin (CS_CONTEXT **ctx, CS_CONNECTION **conn, CS_COMMAND **cmd, int verbose)
 
CS_RETCODE try_ctlogin_with_options (int argc, char **argv, CS_CONTEXT **ctx, CS_CONNECTION **conn, CS_COMMAND **cmd, int verbose)
 
CS_RETCODE try_ctlogout (CS_CONTEXT *ctx, CS_CONNECTION *conn, CS_COMMAND *cmd, int verbose)
 
CS_RETCODE run_command (CS_COMMAND *cmd, const char *sql)
 
CS_RETCODE cslibmsg_cb (CS_CONTEXT *connection, CS_CLIENTMSG *errmsg)
 
CS_RETCODE clientmsg_cb (CS_CONTEXT *context, CS_CONNECTION *connection, CS_CLIENTMSG *errmsg)
 
CS_RETCODE servermsg_cb (CS_CONTEXT *context, CS_CONNECTION *connection, CS_SERVERMSG *srvmsg)
 
const char * res_type_str (CS_RETCODE ret)
 

Variables

static char rcsid_common_h [] = "$Id: common.h 99086 2023-02-10 15:26:35Z ucko $"
 
static void * no_unused_common_h_warn [] = { rcsid_common_h, no_unused_common_h_warn }
 
char SERVER [512]
 
char DATABASE [512]
 
char USER [512]
 
char PASSWORD [512]
 
COMMON_PWD common_pwd
 
int cslibmsg_cb_invoked
 
int clientmsg_cb_invoked
 
int servermsg_cb_invoked
 

Function Documentation

◆ clientmsg_cb()

CS_RETCODE clientmsg_cb ( CS_CONTEXT context,
CS_CONNECTION connection,
CS_CLIENTMSG errmsg 
)

Definition at line 397 of file common.c.

◆ cslibmsg_cb()

CS_RETCODE cslibmsg_cb ( CS_CONTEXT connection,
CS_CLIENTMSG errmsg 
)

Definition at line 380 of file common.c.

◆ read_login_info()

CS_RETCODE read_login_info ( void  )

Definition at line 71 of file common.c.

◆ res_type_str()

const char* res_type_str ( CS_RETCODE  ret)

Definition at line 432 of file common.c.

◆ run_command()

CS_RETCODE run_command ( CS_COMMAND cmd,
const char *  sql 
)

Definition at line 330 of file common.c.

◆ servermsg_cb()

CS_RETCODE servermsg_cb ( CS_CONTEXT context,
CS_CONNECTION connection,
CS_SERVERMSG srvmsg 
)

Definition at line 412 of file common.c.

◆ try_ctlogin()

CS_RETCODE try_ctlogin ( CS_CONTEXT **  ctx,
CS_CONNECTION **  conn,
CS_COMMAND **  cmd,
int  verbose 
)

Definition at line 194 of file common.c.

◆ try_ctlogin_with_options()

CS_RETCODE try_ctlogin_with_options ( int  argc,
char **  argv,
CS_CONTEXT **  ctx,
CS_CONNECTION **  conn,
CS_COMMAND **  cmd,
int  verbose 
)

Definition at line 179 of file common.c.

◆ try_ctlogout()

CS_RETCODE try_ctlogout ( CS_CONTEXT ctx,
CS_CONNECTION conn,
CS_COMMAND cmd,
int  verbose 
)

Definition at line 308 of file common.c.

Variable Documentation

◆ clientmsg_cb_invoked

int clientmsg_cb_invoked
extern

Definition at line 43 of file common.c.

◆ common_pwd

COMMON_PWD common_pwd
extern

Definition at line 34 of file common.c.

◆ cslibmsg_cb_invoked

int cslibmsg_cb_invoked
extern

Definition at line 42 of file common.c.

◆ DATABASE

char DATABASE[512]
extern

Definition at line 32 of file common.c.

◆ no_unused_common_h_warn

void* no_unused_common_h_warn[] = { rcsid_common_h, no_unused_common_h_warn }
static

Definition at line 6 of file common.h.

◆ PASSWORD

char PASSWORD[512]
extern

Definition at line 31 of file common.c.

◆ rcsid_common_h

char rcsid_common_h[] = "$Id: common.h 99086 2023-02-10 15:26:35Z ucko $"
static

Definition at line 5 of file common.h.

◆ SERVER

char SERVER[512]
extern

Definition at line 30 of file common.c.

◆ servermsg_cb_invoked

int servermsg_cb_invoked
extern

Definition at line 44 of file common.c.

◆ USER

char USER[512]
extern

Definition at line 29 of file common.c.

Modified on Tue Apr 23 07:39:39 2024 by modify_doxy.py rev. 669887