dispatch_clnt.c.preserve
上传用户:dgyhgb
上传日期:2007-01-07
资源大小:676k
文件大小:2k
源码类别:
SQL Server
开发平台:
Unix_Linux
- /*
- * Please do not edit this file.
- * It was generated using rpcgen.
- */
- #include <memory.h> /* for memset */
- #include "dispatch.h"
- /* Default timeout can be changed using clnt_control() */
- static struct timeval TIMEOUT = { 25, 0 };
- res *
- create_transaction_1(init_arg *argp, CLIENT *clnt)
- {
- static res clnt_res;
- memset((char *)&clnt_res, 0, sizeof(clnt_res));
- if (clnt_call(clnt, CREATE_TRANSACTION, xdr_init_arg, argp, xdr_res, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- int *
- is_ready_1(opq *argp, CLIENT *clnt)
- {
- static int clnt_res;
- memset((char *)&clnt_res, 0, sizeof(clnt_res));
- if (clnt_call(clnt, IS_READY, xdr_opq, argp, xdr_int, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- int *
- kill_all_1(int *argp, CLIENT *clnt)
- {
- static int clnt_res;
- memset((char *)&clnt_res, 0, sizeof(clnt_res));
- if (clnt_call(clnt, KILL_ALL, xdr_int, argp, xdr_int, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- int *
- trn_kill_1(opq *argp, CLIENT *clnt)
- {
- static int clnt_res;
- memset((char *)&clnt_res, 0, sizeof(clnt_res));
- if (clnt_call(clnt, TRN_KILL, xdr_opq, argp, xdr_int, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- int *
- disp_finit_1(int *argp, CLIENT *clnt)
- {
- static int clnt_res;
- memset((char *)&clnt_res, 0, sizeof(clnt_res));
- if (clnt_call(clnt, DISP_FINIT, xdr_int, argp, xdr_int, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- int *
- copy_lj_1(opq *argp, CLIENT *clnt)
- {
- static int clnt_res;
- memset((char *)&clnt_res, 0, sizeof(clnt_res));
- if (clnt_call(clnt, COPY_LJ, xdr_opq, argp, xdr_int, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }
- int *
- change_params_1(int *argp, CLIENT *clnt)
- {
- static int clnt_res;
- memset((char *)&clnt_res, 0, sizeof(clnt_res));
- if (clnt_call(clnt, CHANGE_PARAMS, xdr_int, argp, xdr_int, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
- return (NULL);
- }
- return (&clnt_res);
- }