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

#ifndef _RNUSERS_H_RPCGEN
#define _RNUSERS_H_RPCGEN

#define RPCGEN_VERSION	199506

#include <rpc/rpc.h>

/*
 * The following structures are used by version 2 of the rusersd protocol.
 * They were not developed with rpcgen, so they do not appear as RPCL.
 */

#define 	RUSERSVERS_ORIG 1	/* original version */
#define	RUSERSVERS_IDLE 2
#define	MAXUSERS 100

/*
 * This is the structure used in version 2 of the rusersd RPC service.
 * It corresponds to the utmp structure for BSD sytems.
 */
struct ru_utmp {
	char	ut_line[8];		/* tty name */
	char	ut_name[8];		/* user id */
	char	ut_host[16];		/* host name, if remote */
	rpc_int     ut_time;		/* time on */
};
typedef struct ru_utmp rutmp;

struct utmparr {
	struct utmp **uta_arr;
	int uta_cnt;
};
typedef struct utmparr utmparr;
int xdr_utmparr();

struct utmpidle {
	struct ru_utmp ui_utmp;
	unsigned ui_idle;
};

struct utmpidlearr {
	struct utmpidle **uia_arr;
	int uia_cnt;
};
typedef struct utmpidlearr utmpidlearr;
int xdr_utmpidlearr();

#define RUSERSVERS_1 ((rpc_uint)1)
#define RUSERSVERS_2 ((rpc_uint)2)
#ifndef RUSERSPROG
#define RUSERSPROG ((rpc_uint)100002)
#endif
#ifndef RUSERSPROC_NUM
#define RUSERSPROC_NUM ((rpc_uint)1)
#endif
#ifndef RUSERSPROC_NAMES
#define RUSERSPROC_NAMES ((rpc_uint)2)
#endif
#ifndef RUSERSPROC_ALLNAMES
#define RUSERSPROC_ALLNAMES ((rpc_uint)3)
#endif


#endif /* !_RNUSERS_H_RPCGEN */
