#ifndef _AMQ_H_RPCGEN
#define _AMQ_H_RPCGEN
#define RPCGEN_VERSION 199506
#include <rpc/rpc.h>
#define AMQ_STRLEN 1024
typedef char *amq_string;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_string(XDR *, amq_string *);
#elif defined(__STDC__)
extern bool_t xdr_amq_string(XDR *, amq_string *);
#else
bool_t xdr_amq_string();
#endif
typedef int64_t time_type;
#ifdef __cplusplus
extern "C" bool_t xdr_time_type(XDR *, time_type *);
#elif defined(__STDC__)
extern bool_t xdr_time_type(XDR *, time_type *);
#else
bool_t xdr_time_type();
#endif
struct amq_mount_tree {
amq_string mt_mountinfo;
amq_string mt_directory;
amq_string mt_mountpoint;
amq_string mt_type;
time_type mt_mounttime;
u_short mt_mountuid;
int mt_getattr;
int mt_lookup;
int mt_readdir;
int mt_readlink;
int mt_statfs;
struct amq_mount_tree *mt_next;
struct amq_mount_tree *mt_child;
};
typedef struct amq_mount_tree amq_mount_tree;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_mount_tree(XDR *, amq_mount_tree *);
#elif defined(__STDC__)
extern bool_t xdr_amq_mount_tree(XDR *, amq_mount_tree *);
#else
bool_t xdr_amq_mount_tree();
#endif
typedef amq_mount_tree *amq_mount_tree_p;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_mount_tree_p(XDR *, amq_mount_tree_p *);
#elif defined(__STDC__)
extern bool_t xdr_amq_mount_tree_p(XDR *, amq_mount_tree_p *);
#else
bool_t xdr_amq_mount_tree_p();
#endif
struct amq_mount_info {
amq_string mi_type;
amq_string mi_mountpt;
amq_string mi_mountinfo;
amq_string mi_fserver;
int mi_error;
int mi_refc;
int mi_up;
};
typedef struct amq_mount_info amq_mount_info;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_mount_info(XDR *, amq_mount_info *);
#elif defined(__STDC__)
extern bool_t xdr_amq_mount_info(XDR *, amq_mount_info *);
#else
bool_t xdr_amq_mount_info();
#endif
typedef struct {
u_int amq_mount_info_list_len;
amq_mount_info *amq_mount_info_list_val;
} amq_mount_info_list;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_mount_info_list(XDR *, amq_mount_info_list *);
#elif defined(__STDC__)
extern bool_t xdr_amq_mount_info_list(XDR *, amq_mount_info_list *);
#else
bool_t xdr_amq_mount_info_list();
#endif
typedef struct {
u_int amq_mount_tree_list_len;
amq_mount_tree_p *amq_mount_tree_list_val;
} amq_mount_tree_list;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_mount_tree_list(XDR *, amq_mount_tree_list *);
#elif defined(__STDC__)
extern bool_t xdr_amq_mount_tree_list(XDR *, amq_mount_tree_list *);
#else
bool_t xdr_amq_mount_tree_list();
#endif
struct amq_mount_stats {
int as_drops;
int as_stale;
int as_mok;
int as_merr;
int as_uerr;
};
typedef struct amq_mount_stats amq_mount_stats;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_mount_stats(XDR *, amq_mount_stats *);
#elif defined(__STDC__)
extern bool_t xdr_amq_mount_stats(XDR *, amq_mount_stats *);
#else
bool_t xdr_amq_mount_stats();
#endif
enum amq_opt {
AMOPT_DEBUG = 0,
AMOPT_LOGFILE = 1,
AMOPT_XLOG = 2,
AMOPT_FLUSHMAPC = 3
};
typedef enum amq_opt amq_opt;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_opt(XDR *, amq_opt *);
#elif defined(__STDC__)
extern bool_t xdr_amq_opt(XDR *, amq_opt *);
#else
bool_t xdr_amq_opt();
#endif
struct amq_setopt {
amq_opt as_opt;
amq_string as_str;
};
typedef struct amq_setopt amq_setopt;
#ifdef __cplusplus
extern "C" bool_t xdr_amq_setopt(XDR *, amq_setopt *);
#elif defined(__STDC__)
extern bool_t xdr_amq_setopt(XDR *, amq_setopt *);
#else
bool_t xdr_amq_setopt();
#endif
#define AMQ_PROGRAM ((u_long)300019)
#define AMQ_VERSION ((u_long)57)
#ifdef __cplusplus
#define AMQPROC_NULL ((u_long)0)
extern "C" void * amqproc_null_57(void *, CLIENT *);
extern "C" void * amqproc_null_57_svc(void *, struct svc_req *);
#define AMQPROC_MNTTREE ((u_long)1)
extern "C" amq_mount_tree_p * amqproc_mnttree_57(amq_string *, CLIENT *);
extern "C" amq_mount_tree_p * amqproc_mnttree_57_svc(amq_string *, struct svc_req *);
#define AMQPROC_UMNT ((u_long)2)
extern "C" void * amqproc_umnt_57(amq_string *, CLIENT *);
extern "C" void * amqproc_umnt_57_svc(amq_string *, struct svc_req *);
#define AMQPROC_STATS ((u_long)3)
extern "C" amq_mount_stats * amqproc_stats_57(void *, CLIENT *);
extern "C" amq_mount_stats * amqproc_stats_57_svc(void *, struct svc_req *);
#define AMQPROC_EXPORT ((u_long)4)
extern "C" amq_mount_tree_list * amqproc_export_57(void *, CLIENT *);
extern "C" amq_mount_tree_list * amqproc_export_57_svc(void *, struct svc_req *);
#define AMQPROC_SETOPT ((u_long)5)
extern "C" int * amqproc_setopt_57(amq_setopt *, CLIENT *);
extern "C" int * amqproc_setopt_57_svc(amq_setopt *, struct svc_req *);
#define AMQPROC_GETMNTFS ((u_long)6)
extern "C" amq_mount_info_list * amqproc_getmntfs_57(void *, CLIENT *);
extern "C" amq_mount_info_list * amqproc_getmntfs_57_svc(void *, struct svc_req *);
#define AMQPROC_GETVERS ((u_long)7)
extern "C" amq_string * amqproc_getvers_57(void *, CLIENT *);
extern "C" amq_string * amqproc_getvers_57_svc(void *, struct svc_req *);
#elif defined(__STDC__)
#define AMQPROC_NULL ((u_long)0)
extern void * amqproc_null_57(void *, CLIENT *);
extern void * amqproc_null_57_svc(void *, struct svc_req *);
#define AMQPROC_MNTTREE ((u_long)1)
extern amq_mount_tree_p * amqproc_mnttree_57(amq_string *, CLIENT *);
extern amq_mount_tree_p * amqproc_mnttree_57_svc(amq_string *, struct svc_req *);
#define AMQPROC_UMNT ((u_long)2)
extern void * amqproc_umnt_57(amq_string *, CLIENT *);
extern void * amqproc_umnt_57_svc(amq_string *, struct svc_req *);
#define AMQPROC_STATS ((u_long)3)
extern amq_mount_stats * amqproc_stats_57(void *, CLIENT *);
extern amq_mount_stats * amqproc_stats_57_svc(void *, struct svc_req *);
#define AMQPROC_EXPORT ((u_long)4)
extern amq_mount_tree_list * amqproc_export_57(void *, CLIENT *);
extern amq_mount_tree_list * amqproc_export_57_svc(void *, struct svc_req *);
#define AMQPROC_SETOPT ((u_long)5)
extern int * amqproc_setopt_57(amq_setopt *, CLIENT *);
extern int * amqproc_setopt_57_svc(amq_setopt *, struct svc_req *);
#define AMQPROC_GETMNTFS ((u_long)6)
extern amq_mount_info_list * amqproc_getmntfs_57(void *, CLIENT *);
extern amq_mount_info_list * amqproc_getmntfs_57_svc(void *, struct svc_req *);
#define AMQPROC_GETVERS ((u_long)7)
extern amq_string * amqproc_getvers_57(void *, CLIENT *);
extern amq_string * amqproc_getvers_57_svc(void *, struct svc_req *);
#else
#define AMQPROC_NULL ((u_long)0)
extern void * amqproc_null_57();
extern void * amqproc_null_57_svc();
#define AMQPROC_MNTTREE ((u_long)1)
extern amq_mount_tree_p * amqproc_mnttree_57();
extern amq_mount_tree_p * amqproc_mnttree_57_svc();
#define AMQPROC_UMNT ((u_long)2)
extern void * amqproc_umnt_57();
extern void * amqproc_umnt_57_svc();
#define AMQPROC_STATS ((u_long)3)
extern amq_mount_stats * amqproc_stats_57();
extern amq_mount_stats * amqproc_stats_57_svc();
#define AMQPROC_EXPORT ((u_long)4)
extern amq_mount_tree_list * amqproc_export_57();
extern amq_mount_tree_list * amqproc_export_57_svc();
#define AMQPROC_SETOPT ((u_long)5)
extern int * amqproc_setopt_57();
extern int * amqproc_setopt_57_svc();
#define AMQPROC_GETMNTFS ((u_long)6)
extern amq_mount_info_list * amqproc_getmntfs_57();
extern amq_mount_info_list * amqproc_getmntfs_57_svc();
#define AMQPROC_GETVERS ((u_long)7)
extern amq_string * amqproc_getvers_57();
extern amq_string * amqproc_getvers_57_svc();
#endif
#endif