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

#ifndef	_RXGEN_UBIK_INT_
#define	_RXGEN_UBIK_INT_

#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 "../afs/param.h"
#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
#include "../h/file.h"
#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
#include "../rpc/types.h"
#ifndef	XDR_GETLONG /* XXXXX */
#include "../rpc/xdr.h"
#endif
#include "../afsint/rxgen_consts.h"
#include "../afs/osi.h"
#include "../afsint/rx.h"
#else	/* KERNEL */
#include <sys/types.h>
#include <rx/xdr.h>
#include <rx/rx.h>
#include <afs/rxgen_consts.h>
#endif	/* KERNEL */


struct BDesc {
	long host;
	short portal;
	long session;
};
typedef struct BDesc BDesc;
bool_t xdr_BDesc();


struct net_version {
	long epoch;
	long counter;
};
typedef struct net_version net_version;
bool_t xdr_net_version();


struct net_tid {
	long epoch;
	long counter;
};
typedef struct net_tid net_tid;
bool_t xdr_net_tid();


struct ubik_debug {
	long now;
	long lastYesTime;
	long lastYesHost;
	long lastYesState;
	long lastYesClaim;
	long lowestHost;
	long lowestTime;
	long syncHost;
	long syncTime;
	struct net_version syncVersion;
	struct net_tid syncTid;
	long amSyncSite;
	long syncSiteUntil;
	long nServers;
	long lockedPages;
	long writeLockedPages;
	struct net_version localVersion;
	long activeWrite;
	long tidCounter;
	long anyReadLocks;
	long anyWriteLocks;
	long recoveryState;
	long currentTrans;
	long writeTrans;
	long epochTime;
};
typedef struct ubik_debug ubik_debug;
bool_t xdr_ubik_debug();


struct ubik_sdebug {
	long addr;
	long lastVoteTime;
	long lastBeaconSent;
	long lastVote;
	struct net_version remoteVersion;
	long currentDB;
	long beaconSinceDown;
	long up;
};
typedef struct ubik_sdebug ubik_sdebug;
bool_t xdr_ubik_sdebug();

#define BULK_ERROR 1

typedef struct bulkdata {
	u_int bulkdata_len;
	char *bulkdata_val;
} bulkdata;
bool_t xdr_bulkdata();


#include <rx/rx_multi.h>
#define multi_VOTE_Beacon(state, voteStart, Version, tid) \
	multi_Body(StartVOTE_Beacon(multi_call, state, voteStart, Version, tid), EndVOTE_Beacon(multi_call))


/* Opcode-related useful stats for package: VOTE_ */
#define VOTE_LOWEST_OPCODE   10000
#define VOTE_HIGHEST_OPCODE	10003
#define VOTE_NUMBER_OPCODES	4


/* Opcode-related useful stats for package: DISK_ */
#define DISK_LOWEST_OPCODE   20000
#define DISK_HIGHEST_OPCODE	20010
#define DISK_NUMBER_OPCODES	11

#endif	/* _RXGEN_UBIK_INT_ */
