dispatch.h.preserve
上传用户:dgyhgb
上传日期:2007-01-07
资源大小:676k
文件大小:4k
- /*
- * Please do not edit this file.
- * It was generated using rpcgen.
- */
- #ifndef _DISPATCH_H_RPCGEN
- #define _DISPATCH_H_RPCGEN
- #include <rpc/rpc.h>
- #include "setup_os.h"
- extern long adm_rpc_port;
- void fix_adm_port __P((char* opt));
- #ifdef RPCMAIN_PROTO
- int adm_rpc_start __P((int,char**));
- #define ADM_RPC_START adm_rpc_start(argc,argv)
- #else
- int adm_rpc_start __P((void));
- #define ADM_RPC_START adm_rpc_start()
- #endif
- enum rpc_svc_t {
- BOOT_SVC = 0,
- DYNAMIC_SVC = 0 + 1,
- COMPILE_SVC = DYNAMIC_SVC,
- INTERPR_SVC = DYNAMIC_SVC,
- };
- typedef enum rpc_svc_t rpc_svc_t;
- #ifdef __cplusplus
- extern "C" bool_t xdr_rpc_svc_t(XDR *, rpc_svc_t*);
- #elif __STDC__
- extern bool_t xdr_rpc_svc_t(XDR *, rpc_svc_t*);
- #else /* Old Style C */
- bool_t xdr_rpc_svc_t();
- #endif /* Old Style C */
- typedef struct {
- u_int opq_len;
- char *opq_val;
- } opq;
- #ifdef __cplusplus
- extern "C" bool_t xdr_opq(XDR *, opq*);
- #elif __STDC__
- extern bool_t xdr_opq(XDR *, opq*);
- #else /* Old Style C */
- bool_t xdr_opq();
- #endif /* Old Style C */
- struct res {
- opq proc_id;
- int rpc_id;
- };
- typedef struct res res;
- #ifdef __cplusplus
- extern "C" bool_t xdr_res(XDR *, res*);
- #elif __STDC__
- extern bool_t xdr_res(XDR *, res*);
- #else /* Old Style C */
- bool_t xdr_res();
- #endif /* Old Style C */
- struct init_arg {
- char *user_name;
- int wait_time;
- int total_time;
- int type;
- int need_gdb;
- char *x_server;
- };
- typedef struct init_arg init_arg;
- #ifdef __cplusplus
- extern "C" bool_t xdr_init_arg(XDR *, init_arg*);
- #elif __STDC__
- extern bool_t xdr_init_arg(XDR *, init_arg*);
- #else /* Old Style C */
- bool_t xdr_init_arg();
- #endif /* Old Style C */
- #define DEFAULT_TRN (SQL_DISP + 1)
- #define SQL_DISP ((u_long)adm_rpc_port)
- #define SQL_DISP_ONE ((u_long)1)
- #ifdef __cplusplus
- #define CREATE_TRANSACTION ((u_long)1)
- extern "C" res * create_transaction_1(init_arg *, CLIENT *);
- extern "C" res * create_transaction_1_svc(init_arg *, struct svc_req *);
- #define IS_READY ((u_long)2)
- extern "C" int * is_ready_1(opq *, CLIENT *);
- extern "C" int * is_ready_1_svc(opq *, struct svc_req *);
- #define KILL_ALL ((u_long)3)
- extern "C" int * kill_all_1(int *, CLIENT *);
- extern "C" int * kill_all_1_svc(int *, struct svc_req *);
- #define TRN_KILL ((u_long)4)
- extern "C" int * trn_kill_1(opq *, CLIENT *);
- extern "C" int * trn_kill_1_svc(opq *, struct svc_req *);
- #define DISP_FINIT ((u_long)5)
- extern "C" int * disp_finit_1(int *, CLIENT *);
- extern "C" int * disp_finit_1_svc(int *, struct svc_req *);
- #define COPY_LJ ((u_long)6)
- extern "C" int * copy_lj_1(opq *, CLIENT *);
- extern "C" int * copy_lj_1_svc(opq *, struct svc_req *);
- #define CHANGE_PARAMS ((u_long)7)
- extern "C" int * change_params_1(int *, CLIENT *);
- extern "C" int * change_params_1_svc(int *, struct svc_req *);
- #elif __STDC__
- #define CREATE_TRANSACTION ((u_long)1)
- extern res * create_transaction_1(init_arg *, CLIENT *);
- extern res * create_transaction_1_svc(init_arg *, struct svc_req *);
- #define IS_READY ((u_long)2)
- extern int * is_ready_1(opq *, CLIENT *);
- extern int * is_ready_1_svc(opq *, struct svc_req *);
- #define KILL_ALL ((u_long)3)
- extern int * kill_all_1(int *, CLIENT *);
- extern int * kill_all_1_svc(int *, struct svc_req *);
- #define TRN_KILL ((u_long)4)
- extern int * trn_kill_1(opq *, CLIENT *);
- extern int * trn_kill_1_svc(opq *, struct svc_req *);
- #define DISP_FINIT ((u_long)5)
- extern int * disp_finit_1(int *, CLIENT *);
- extern int * disp_finit_1_svc(int *, struct svc_req *);
- #define COPY_LJ ((u_long)6)
- extern int * copy_lj_1(opq *, CLIENT *);
- extern int * copy_lj_1_svc(opq *, struct svc_req *);
- #define CHANGE_PARAMS ((u_long)7)
- extern int * change_params_1(int *, CLIENT *);
- extern int * change_params_1_svc(int *, struct svc_req *);
- #else /* Old Style C */
- #define CREATE_TRANSACTION ((u_long)1)
- extern res * create_transaction_1();
- extern res * create_transaction_1_svc();
- #define IS_READY ((u_long)2)
- extern int * is_ready_1();
- extern int * is_ready_1_svc();
- #define KILL_ALL ((u_long)3)
- extern int * kill_all_1();
- extern int * kill_all_1_svc();
- #define TRN_KILL ((u_long)4)
- extern int * trn_kill_1();
- extern int * trn_kill_1_svc();
- #define DISP_FINIT ((u_long)5)
- extern int * disp_finit_1();
- extern int * disp_finit_1_svc();
- #define COPY_LJ ((u_long)6)
- extern int * copy_lj_1();
- extern int * copy_lj_1_svc();
- #define CHANGE_PARAMS ((u_long)7)
- extern int * change_params_1();
- extern int * change_params_1_svc();
- #endif /* Old Style C */
- #endif /* !_DISPATCH_H_RPCGEN */