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

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 
)

◆ cslibmsg_cb()

CS_RETCODE cslibmsg_cb ( CS_CONTEXT connection,
CS_CLIENTMSG errmsg 
)

◆ read_login_info()

CS_RETCODE read_login_info ( void  )

◆ res_type_str()

const char* res_type_str ( CS_RETCODE  ret)

◆ run_command()

CS_RETCODE run_command ( CS_COMMAND cmd,
const char *  sql 
)

◆ servermsg_cb()

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

◆ 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.

References cmd, conn, continue_logging_in(), CS_SUCCEED, ctx, and read_login_info().

Referenced by main().

◆ 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.

References cmd, conn, continue_logging_in(), CS_SUCCEED, ctx, and establish_login().

Referenced by main().

◆ 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.

References cmd, conn, CS_CANCEL_ALL, cs_ctx_drop(), CS_SUCCEED, CS_UNUSED, ct_cancel(), ct_close(), ct_cmd_drop(), ct_con_drop(), ct_exit(), ctx, and NULL.

Referenced by cleanup(), and main().

Variable Documentation

◆ clientmsg_cb_invoked

int clientmsg_cb_invoked
extern

Definition at line 43 of file common.c.

Referenced by clientmsg_cb(), and main().

◆ common_pwd

COMMON_PWD common_pwd
extern

Definition at line 34 of file common.c.

Referenced by establish_login(), main(), and read_login_info().

◆ cslibmsg_cb_invoked

int cslibmsg_cb_invoked
extern

Definition at line 42 of file common.c.

Referenced by cslibmsg_cb(), and main().

◆ DATABASE

char DATABASE[512]
extern

Definition at line 32 of file common.c.

◆ PASSWORD

char PASSWORD[512]
extern

Definition at line 31 of file common.c.

◆ 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.

Referenced by main(), and servermsg_cb().

◆ USER

char USER[512]
extern

Definition at line 29 of file common.c.

Modified on Fri Jun 14 16:50:13 2024 by modify_doxy.py rev. 669887