/*
 * Please do not edit this file.
 * It was generated using rpcgen.
 */

#ifndef _RPC_H_RPCGEN
#define _RPC_H_RPCGEN

#include <rpc/rpc.h>

#include "general.h"

enum rpc_data {
	RPC_LONG = 1,
	RPC_DOUBLE = 2,
	RPC_STRING = 3,
	RPC_VOID = 4,
	RPC_ULONG = 5,
};
typedef enum rpc_data rpc_data;
#ifdef __cplusplus 
extern "C" bool_t xdr_rpc_data(XDR *, rpc_data*);
#elif __STDC__ 
extern  bool_t xdr_rpc_data(XDR *, rpc_data*);
#else /* Old Style C */ 
bool_t xdr_rpc_data();
#endif /* Old Style C */ 


struct rpc_string {
	bool_t defined;
	char *stringval;
};
typedef struct rpc_string rpc_string;
#ifdef __cplusplus 
extern "C" bool_t xdr_rpc_string(XDR *, rpc_string*);
#elif __STDC__ 
extern  bool_t xdr_rpc_string(XDR *, rpc_string*);
#else /* Old Style C */ 
bool_t xdr_rpc_string();
#endif /* Old Style C */ 


struct rpc_value {
	rpc_data type;
	union {
		int longval;
		double doubleval;
		rpc_string stringval;
		u_int ulongval;
	} rpc_value_u;
};
typedef struct rpc_value rpc_value;
#ifdef __cplusplus 
extern "C" bool_t xdr_rpc_value(XDR *, rpc_value*);
#elif __STDC__ 
extern  bool_t xdr_rpc_value(XDR *, rpc_value*);
#else /* Old Style C */ 
bool_t xdr_rpc_value();
#endif /* Old Style C */ 


struct rpc_error {
	char *error;
	u_int line;
};
typedef struct rpc_error rpc_error;
#ifdef __cplusplus 
extern "C" bool_t xdr_rpc_error(XDR *, rpc_error*);
#elif __STDC__ 
extern  bool_t xdr_rpc_error(XDR *, rpc_error*);
#else /* Old Style C */ 
bool_t xdr_rpc_error();
#endif /* Old Style C */ 


struct rpc_accounting_element {
	u_int count_normal;
	u_int count_akt;
	u_int count_time_sec;
	u_int count_time_usec;
};
typedef struct rpc_accounting_element rpc_accounting_element;
#ifdef __cplusplus 
extern "C" bool_t xdr_rpc_accounting_element(XDR *, rpc_accounting_element*);
#elif __STDC__ 
extern  bool_t xdr_rpc_accounting_element(XDR *, rpc_accounting_element*);
#else /* Old Style C */ 
bool_t xdr_rpc_accounting_element();
#endif /* Old Style C */ 


struct rpc_accounting {
	rpc_accounting_element accounting[ACCOUNTING_ANZ];
};
typedef struct rpc_accounting rpc_accounting;
#ifdef __cplusplus 
extern "C" bool_t xdr_rpc_accounting(XDR *, rpc_accounting*);
#elif __STDC__ 
extern  bool_t xdr_rpc_accounting(XDR *, rpc_accounting*);
#else /* Old Style C */ 
bool_t xdr_rpc_accounting();
#endif /* Old Style C */ 


struct rpc_flowctrl {
	u_int ctrl;
	rpc_value returnval;
	rpc_error *error;
	rpc_accounting *accounting;
};
typedef struct rpc_flowctrl rpc_flowctrl;
#ifdef __cplusplus 
extern "C" bool_t xdr_rpc_flowctrl(XDR *, rpc_flowctrl*);
#elif __STDC__ 
extern  bool_t xdr_rpc_flowctrl(XDR *, rpc_flowctrl*);
#else /* Old Style C */ 
bool_t xdr_rpc_flowctrl();
#endif /* Old Style C */ 


struct rpc_function_args {
	struct {
		u_int args_len;
		rpc_value *args_val;
	} args;
};
typedef struct rpc_function_args rpc_function_args;
#ifdef __cplusplus 
extern "C" bool_t xdr_rpc_function_args(XDR *, rpc_function_args*);
#elif __STDC__ 
extern  bool_t xdr_rpc_function_args(XDR *, rpc_function_args*);
#else /* Old Style C */ 
bool_t xdr_rpc_function_args();
#endif /* Old Style C */ 


struct rpc_callargs {
	char *function;
	char *password;
	rpc_function_args args;
};
typedef struct rpc_callargs rpc_callargs;
#ifdef __cplusplus 
extern "C" bool_t xdr_rpc_callargs(XDR *, rpc_callargs*);
#elif __STDC__ 
extern  bool_t xdr_rpc_callargs(XDR *, rpc_callargs*);
#else /* Old Style C */ 
bool_t xdr_rpc_callargs();
#endif /* Old Style C */ 


#define BOILRPC ((u_long)0x20000000)
#define BOILRPC_VERSION ((u_long)1)

#ifdef __cplusplus
#define BOILRPC_CALL ((u_long)1)
extern "C" rpc_flowctrl * boilrpc_call_1_clnt(rpc_callargs *, CLIENT *);
extern "C" rpc_flowctrl * boilrpc_call_1_svc(rpc_callargs *, struct svc_req *);

#elif __STDC__
#define BOILRPC_CALL ((u_long)1)
extern  rpc_flowctrl * boilrpc_call_1_clnt(rpc_callargs *, CLIENT *);
extern  rpc_flowctrl * boilrpc_call_1_svc(rpc_callargs *, struct svc_req *);

#else /* Old Style C */ 
#define BOILRPC_CALL ((u_long)1)
extern  rpc_flowctrl * boilrpc_call_1();
extern  rpc_flowctrl * boilrpc_call_1_svc();
#endif /* Old Style C */ 

#endif /* !_RPC_H_RPCGEN */
