[BACK]Return to vault.x CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / othersrc / nastore / volman / srvr / rc / vault

File: [cvs.NetBSD.org] / othersrc / nastore / volman / srvr / rc / vault / vault.x (download)

Revision 1.1.1.1 (vendor branch), Mon Feb 28 02:18:33 2000 UTC (24 years, 1 month ago) by wrstuden
Branch: NAS, MAIN
CVS Tags: nastore3-beta-20000227, HEAD
Changes since 1.1: +0 -0 lines

Import of snapshot of nastore3 code. Includes kernel code for dmfs, dmfs
user utilities, ms66 import and export, vvm, and volman. Also includes
makefile magic to automatically generate .tgz source files from the source.
Solaris support a bit of a question as zoularis is not working at the
moment.

%
%/* 
% *  rpcgen source: vault.x - .c & .h files containing this
% *	message should never be checked in.
% */
%
/*
**	This is the XDR file for the vault RPC's used to communicate
**	with the optional barcode gun server.
*/

const	LOCSIZE		=	53;
const	SECSIZE		=	8;
const	MESSAGESIZE	=	80;
const	HISTORY		=	3;

#if defined(RPC_HDR)
%#ifndef VSNLEN
%#include "vm_pkt.h"	/* for vsn_t */
%#endif
#endif

/* if double commas appear in loctype, install NFS patch 11.0.130 */

enum	loctype	{
	unknown,
	vault,
	display
};

struct	vaultloc_t {
	char	Section[SECSIZE];
	int	Row;
	int	Slot;
};

union	location_t	switch(loctype tag) {
case	unknown:
	void;
case	vault:
	vaultloc_t	vault;
case	display:
	char		General[LOCSIZE];
};

struct	spacetime_t {
	long		when;
	location_t	where;
};

%#define	section	location_t_u.vault.Section
%#define	row	location_t_u.vault.Row
%#define	slot	location_t_u.vault.Slot
%#define	general	location_t_u.General
	
struct vsnloc_t {
	vsn_t		vsn;
	spacetime_t	location;
};

struct vsnhistory_t {
	vsn_t		vsn;
	spacetime_t	history[HISTORY];
};

struct vsnreq_t {
	vsn_t		vsn;
	char		message[MESSAGESIZE];
};
	
program	VAULTPROG {
	version	VAULTVERS {
		int		VAULT_UPDATE(vsnloc_t) = 1;
		int		VAULT_DELETE(vsn_t) = 2;
		spacetime_t	VAULT_QUERY(vsn_t) = 3;
		int		VAULT_REQUEST(vsnreq_t) = 4;
		int		VAULT_CANCEL(vsn_t) = 5;
	} = 1;
} = 0x20000999;