gsqltrn_clnt.c.preserve
上传用户:dgyhgb
上传日期:2007-01-07
资源大小:676k
文件大小:3k
源码类别:
SQL Server
开发平台:
Unix_Linux
- /*
- * Please do not edit this file.
- * It was generated using rpcgen.
- */
- #include "gsqltrn.h"
- /* Default timeout can be changed using clnt_control() */
- static struct timeval TIMEOUT = { 25, 0 };
- result_t *
- init_comp_1(argp, clnt)
- init_params_t *argp;
- CLIENT *clnt;
- {
- static result_t clnt_res;
- memset((char *)&clnt_res, 0, sizeof (clnt_res));
- if (clnt_call(clnt, INIT_COMP,
- (xdrproc_t) xdr_init_params_t, (caddr_t) argp,
- (xdrproc_t) xdr_result_t, (caddr_t) &clnt_res,
- TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- result_t *
- compile_1(argp, clnt)
- stmt_info_t *argp;
- CLIENT *clnt;
- {
- static result_t clnt_res;
- memset((char *)&clnt_res, 0, sizeof (clnt_res));
- if (clnt_call(clnt, COMPILE,
- (xdrproc_t) xdr_stmt_info_t, (caddr_t) argp,
- (xdrproc_t) xdr_result_t, (caddr_t) &clnt_res,
- TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- result_t *
- del_segment_1(argp, clnt)
- seg_del_t *argp;
- CLIENT *clnt;
- {
- static result_t clnt_res;
- memset((char *)&clnt_res, 0, sizeof (clnt_res));
- if (clnt_call(clnt, DEL_SEGMENT,
- (xdrproc_t) xdr_seg_del_t, (caddr_t) argp,
- (xdrproc_t) xdr_result_t, (caddr_t) &clnt_res,
- TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- result_t *
- link_cursor_1(argp, clnt)
- link_cursor_t *argp;
- CLIENT *clnt;
- {
- static result_t clnt_res;
- memset((char *)&clnt_res, 0, sizeof (clnt_res));
- if (clnt_call(clnt, LINK_CURSOR,
- (xdrproc_t) xdr_link_cursor_t, (caddr_t) argp,
- (xdrproc_t) xdr_result_t, (caddr_t) &clnt_res,
- TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- result_t *
- load_module_1(argp, clnt)
- string_t *argp;
- CLIENT *clnt;
- {
- static result_t clnt_res;
- memset((char *)&clnt_res, 0, sizeof (clnt_res));
- if (clnt_call(clnt, LOAD_MODULE,
- (xdrproc_t) xdr_string_t, (caddr_t) argp,
- (xdrproc_t) xdr_result_t, (caddr_t) &clnt_res,
- TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- result_t *
- execute_stmt_1(argp, clnt)
- insn_t *argp;
- CLIENT *clnt;
- {
- static result_t clnt_res;
- memset((char *)&clnt_res, 0, sizeof (clnt_res));
- if (clnt_call(clnt, EXECUTE_STMT,
- (xdrproc_t) xdr_insn_t, (caddr_t) argp,
- (xdrproc_t) xdr_result_t, (caddr_t) &clnt_res,
- TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- result_t *
- db_create_1(argp, clnt)
- void *argp;
- CLIENT *clnt;
- {
- static result_t clnt_res;
- memset((char *)&clnt_res, 0, sizeof (clnt_res));
- if (clnt_call(clnt, DB_CREATE,
- (xdrproc_t) xdr_void, (caddr_t) argp,
- (xdrproc_t) xdr_result_t, (caddr_t) &clnt_res,
- TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- result_t *
- retry_1(argp, clnt)
- void *argp;
- CLIENT *clnt;
- {
- static result_t clnt_res;
- memset((char *)&clnt_res, 0, sizeof (clnt_res));
- if (clnt_call(clnt, RETRY,
- (xdrproc_t) xdr_void, (caddr_t) argp,
- (xdrproc_t) xdr_result_t, (caddr_t) &clnt_res,
- TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- int *
- is_rpc_ready_1(argp, clnt)
- void *argp;
- CLIENT *clnt;
- {
- static int clnt_res;
- memset((char *)&clnt_res, 0, sizeof (clnt_res));
- if (clnt_call(clnt, IS_RPC_READY,
- (xdrproc_t) xdr_void, (caddr_t) argp,
- (xdrproc_t) xdr_int, (caddr_t) &clnt_res,
- TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }