/* Machine generated file -- Do NOT edit */

#ifndef	_RXGEN_RXSTAT_
#define	_RXGEN_RXSTAT_

#ifdef	KERNEL
/* The following 'ifndefs' are not a good solution to the vendor's omission of surrounding all system includes with 'ifndef's since it requires that this file is included after the system includes...*/
#include <afsconfig.h>
#include "../afs/param.h"
#ifdef	UKERNEL
#include "../afs/sysincludes.h"
#include "../rx/xdr.h"
#include "../rx/rx.h"
#include "../rx/rx_globals.h"
#else	/* UKERNEL */
#include "../h/types.h"
#ifndef	SOCK_DGRAM  /* XXXXX */
#include "../h/socket.h"
#endif
#ifndef	DTYPE_SOCKET  /* XXXXX */
#ifdef AFS_DEC_ENV
#include "../h/smp_lock.h"
#endif
#ifndef AFS_LINUX22_ENV
#include "../h/file.h"
#endif
#endif
#ifndef	S_IFMT  /* XXXXX */
#include "../h/stat.h"
#endif
#ifndef	IPPROTO_UDP /* XXXXX */
#include "../netinet/in.h"
#endif
#ifndef	DST_USA  /* XXXXX */
#include "../h/time.h"
#endif
#ifndef AFS_LINUX22_ENV
#include "../rpc/types.h"
#endif /* AFS_LINUX22_ENV */
#ifndef	XDR_GETLONG /* XXXXX */
#ifdef AFS_LINUX22_ENV
#ifndef quad_t
#define quad_t __quad_t
#define u_quad_t __u_quad_t
#endif
#endif
#include "../rx/xdr.h"
#endif /* XDR_GETLONG */
#endif   /* UKERNEL */
#include "../afsint/rxgen_consts.h"
#include "../afs/afs_osi.h"
#include "../rx/rx.h"
#include "../rx/rx_globals.h"
#else	/* KERNEL */
#include <afs/param.h>
#include <afs/stds.h>
#include <sys/types.h>
#include <rx/xdr.h>
#include <rx/rx.h>
#include <rx/rx_globals.h>
#include <afs/rxgen_consts.h>
#endif	/* KERNEL */

#ifdef AFS_NT40_ENV
#ifndef AFS_RXGEN_EXPORT
#define AFS_RXGEN_EXPORT __declspec(dllimport)
#endif /* AFS_RXGEN_EXPORT */
#else /* AFS_NT40_ENV */
#define AFS_RXGEN_EXPORT
#endif /* AFS_NT40_ENV */


typedef struct rpcStats {
	u_int rpcStats_len;
	afs_uint32 *rpcStats_val;
} rpcStats;
bool_t xdr_rpcStats();

#define RXSTATS_STATINDEX 9

#include <rx/rx_multi.h>
#define multi_RXSTATS_RetrieveProcessRPCStats(clientVersion, serverVersion, clock_sec, clock_usec, stat_count, stats) \
	multi_Body(StartRXSTATS_RetrieveProcessRPCStats(multi_call, clientVersion), EndRXSTATS_RetrieveProcessRPCStats(multi_call, serverVersion, clock_sec, clock_usec, stat_count, stats))


#define multi_RXSTATS_RetrievePeerRPCStats(clientVersion, serverVersion, stat_count, clock_sec, clock_usec, stats) \
	multi_Body(StartRXSTATS_RetrievePeerRPCStats(multi_call, clientVersion), EndRXSTATS_RetrievePeerRPCStats(multi_call, serverVersion, stat_count, clock_sec, clock_usec, stats))


/* Opcode-related useful stats for package: RXSTATS_ */
#define RXSTATS_LOWEST_OPCODE   0
#define RXSTATS_HIGHEST_OPCODE	10
#define RXSTATS_NUMBER_OPCODES	11

#define RXSTATS_NO_OF_STAT_FUNCS	11

AFS_RXGEN_EXPORT
extern const char *RXSTATS_function_names[];

#endif	/* _RXGEN_RXSTAT_ */
