1/* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6#ifndef _AMQ_H_RPCGEN 7#define _AMQ_H_RPCGEN 8 9#define RPCGEN_VERSION 199506 10 11#include <rpc/rpc.h> 12 13#define AMQ_STRLEN 1024 14 15typedef char *amq_string; 16#ifdef __cplusplus 17extern "C" bool_t xdr_amq_string(XDR *, amq_string *); 18#elif defined(__STDC__) 19extern bool_t xdr_amq_string(XDR *, amq_string *); 20#else /* Old Style C */ 21bool_t xdr_amq_string(); 22#endif /* Old Style C */ 23 24 25typedef int64_t time_type; 26#ifdef __cplusplus 27extern "C" bool_t xdr_time_type(XDR *, time_type *); 28#elif defined(__STDC__) 29extern bool_t xdr_time_type(XDR *, time_type *); 30#else /* Old Style C */ 31bool_t xdr_time_type(); 32#endif /* Old Style C */ 33 34 35struct amq_mount_tree { 36 amq_string mt_mountinfo; 37 amq_string mt_directory; 38 amq_string mt_mountpoint; 39 amq_string mt_type; 40 time_type mt_mounttime; 41 u_short mt_mountuid; 42 int mt_getattr; 43 int mt_lookup; 44 int mt_readdir; 45 int mt_readlink; 46 int mt_statfs; 47 struct amq_mount_tree *mt_next; 48 struct amq_mount_tree *mt_child; 49}; 50typedef struct amq_mount_tree amq_mount_tree; 51#ifdef __cplusplus 52extern "C" bool_t xdr_amq_mount_tree(XDR *, amq_mount_tree *); 53#elif defined(__STDC__) 54extern bool_t xdr_amq_mount_tree(XDR *, amq_mount_tree *); 55#else /* Old Style C */ 56bool_t xdr_amq_mount_tree(); 57#endif /* Old Style C */ 58 59 60typedef amq_mount_tree *amq_mount_tree_p; 61#ifdef __cplusplus 62extern "C" bool_t xdr_amq_mount_tree_p(XDR *, amq_mount_tree_p *); 63#elif defined(__STDC__) 64extern bool_t xdr_amq_mount_tree_p(XDR *, amq_mount_tree_p *); 65#else /* Old Style C */ 66bool_t xdr_amq_mount_tree_p(); 67#endif /* Old Style C */ 68 69 70struct amq_mount_info { 71 amq_string mi_type; 72 amq_string mi_mountpt; 73 amq_string mi_mountinfo; 74 amq_string mi_fserver; 75 int mi_error; 76 int mi_refc; 77 int mi_up; 78}; 79typedef struct amq_mount_info amq_mount_info; 80#ifdef __cplusplus 81extern "C" bool_t xdr_amq_mount_info(XDR *, amq_mount_info *); 82#elif defined(__STDC__) 83extern bool_t xdr_amq_mount_info(XDR *, amq_mount_info *); 84#else /* Old Style C */ 85bool_t xdr_amq_mount_info(); 86#endif /* Old Style C */ 87 88 89typedef struct { 90 u_int amq_mount_info_list_len; 91 amq_mount_info *amq_mount_info_list_val; 92} amq_mount_info_list; 93#ifdef __cplusplus 94extern "C" bool_t xdr_amq_mount_info_list(XDR *, amq_mount_info_list *); 95#elif defined(__STDC__) 96extern bool_t xdr_amq_mount_info_list(XDR *, amq_mount_info_list *); 97#else /* Old Style C */ 98bool_t xdr_amq_mount_info_list(); 99#endif /* Old Style C */ 100 101 102typedef struct { 103 u_int amq_mount_tree_list_len; 104 amq_mount_tree_p *amq_mount_tree_list_val; 105} amq_mount_tree_list; 106#ifdef __cplusplus 107extern "C" bool_t xdr_amq_mount_tree_list(XDR *, amq_mount_tree_list *); 108#elif defined(__STDC__) 109extern bool_t xdr_amq_mount_tree_list(XDR *, amq_mount_tree_list *); 110#else /* Old Style C */ 111bool_t xdr_amq_mount_tree_list(); 112#endif /* Old Style C */ 113 114 115struct amq_mount_stats { 116 int as_drops; 117 int as_stale; 118 int as_mok; 119 int as_merr; 120 int as_uerr; 121}; 122typedef struct amq_mount_stats amq_mount_stats; 123#ifdef __cplusplus 124extern "C" bool_t xdr_amq_mount_stats(XDR *, amq_mount_stats *); 125#elif defined(__STDC__) 126extern bool_t xdr_amq_mount_stats(XDR *, amq_mount_stats *); 127#else /* Old Style C */ 128bool_t xdr_amq_mount_stats(); 129#endif /* Old Style C */ 130 131 132enum amq_opt { 133 AMOPT_DEBUG = 0, 134 AMOPT_LOGFILE = 1, 135 AMOPT_XLOG = 2, 136 AMOPT_FLUSHMAPC = 3 137}; 138typedef enum amq_opt amq_opt; 139#ifdef __cplusplus 140extern "C" bool_t xdr_amq_opt(XDR *, amq_opt *); 141#elif defined(__STDC__) 142extern bool_t xdr_amq_opt(XDR *, amq_opt *); 143#else /* Old Style C */ 144bool_t xdr_amq_opt(); 145#endif /* Old Style C */ 146 147 148struct amq_setopt { 149 amq_opt as_opt; 150 amq_string as_str; 151}; 152typedef struct amq_setopt amq_setopt; 153#ifdef __cplusplus 154extern "C" bool_t xdr_amq_setopt(XDR *, amq_setopt *); 155#elif defined(__STDC__) 156extern bool_t xdr_amq_setopt(XDR *, amq_setopt *); 157#else /* Old Style C */ 158bool_t xdr_amq_setopt(); 159#endif /* Old Style C */ 160 161 162#define AMQ_PROGRAM ((u_long)300019) 163#define AMQ_VERSION ((u_long)57) 164 165#ifdef __cplusplus 166#define AMQPROC_NULL ((u_long)0) 167extern "C" void * amqproc_null_57(void *, CLIENT *); 168extern "C" void * amqproc_null_57_svc(void *, struct svc_req *); 169#define AMQPROC_MNTTREE ((u_long)1) 170extern "C" amq_mount_tree_p * amqproc_mnttree_57(amq_string *, CLIENT *); 171extern "C" amq_mount_tree_p * amqproc_mnttree_57_svc(amq_string *, struct svc_req *); 172#define AMQPROC_UMNT ((u_long)2) 173extern "C" void * amqproc_umnt_57(amq_string *, CLIENT *); 174extern "C" void * amqproc_umnt_57_svc(amq_string *, struct svc_req *); 175#define AMQPROC_STATS ((u_long)3) 176extern "C" amq_mount_stats * amqproc_stats_57(void *, CLIENT *); 177extern "C" amq_mount_stats * amqproc_stats_57_svc(void *, struct svc_req *); 178#define AMQPROC_EXPORT ((u_long)4) 179extern "C" amq_mount_tree_list * amqproc_export_57(void *, CLIENT *); 180extern "C" amq_mount_tree_list * amqproc_export_57_svc(void *, struct svc_req *); 181#define AMQPROC_SETOPT ((u_long)5) 182extern "C" int * amqproc_setopt_57(amq_setopt *, CLIENT *); 183extern "C" int * amqproc_setopt_57_svc(amq_setopt *, struct svc_req *); 184#define AMQPROC_GETMNTFS ((u_long)6) 185extern "C" amq_mount_info_list * amqproc_getmntfs_57(void *, CLIENT *); 186extern "C" amq_mount_info_list * amqproc_getmntfs_57_svc(void *, struct svc_req *); 187#define AMQPROC_GETVERS ((u_long)7) 188extern "C" amq_string * amqproc_getvers_57(void *, CLIENT *); 189extern "C" amq_string * amqproc_getvers_57_svc(void *, struct svc_req *); 190 191#elif defined(__STDC__) 192#define AMQPROC_NULL ((u_long)0) 193extern void * amqproc_null_57(void *, CLIENT *); 194extern void * amqproc_null_57_svc(void *, struct svc_req *); 195#define AMQPROC_MNTTREE ((u_long)1) 196extern amq_mount_tree_p * amqproc_mnttree_57(amq_string *, CLIENT *); 197extern amq_mount_tree_p * amqproc_mnttree_57_svc(amq_string *, struct svc_req *); 198#define AMQPROC_UMNT ((u_long)2) 199extern void * amqproc_umnt_57(amq_string *, CLIENT *); 200extern void * amqproc_umnt_57_svc(amq_string *, struct svc_req *); 201#define AMQPROC_STATS ((u_long)3) 202extern amq_mount_stats * amqproc_stats_57(void *, CLIENT *); 203extern amq_mount_stats * amqproc_stats_57_svc(void *, struct svc_req *); 204#define AMQPROC_EXPORT ((u_long)4) 205extern amq_mount_tree_list * amqproc_export_57(void *, CLIENT *); 206extern amq_mount_tree_list * amqproc_export_57_svc(void *, struct svc_req *); 207#define AMQPROC_SETOPT ((u_long)5) 208extern int * amqproc_setopt_57(amq_setopt *, CLIENT *); 209extern int * amqproc_setopt_57_svc(amq_setopt *, struct svc_req *); 210#define AMQPROC_GETMNTFS ((u_long)6) 211extern amq_mount_info_list * amqproc_getmntfs_57(void *, CLIENT *); 212extern amq_mount_info_list * amqproc_getmntfs_57_svc(void *, struct svc_req *); 213#define AMQPROC_GETVERS ((u_long)7) 214extern amq_string * amqproc_getvers_57(void *, CLIENT *); 215extern amq_string * amqproc_getvers_57_svc(void *, struct svc_req *); 216 217#else /* Old Style C */ 218#define AMQPROC_NULL ((u_long)0) 219extern void * amqproc_null_57(); 220extern void * amqproc_null_57_svc(); 221#define AMQPROC_MNTTREE ((u_long)1) 222extern amq_mount_tree_p * amqproc_mnttree_57(); 223extern amq_mount_tree_p * amqproc_mnttree_57_svc(); 224#define AMQPROC_UMNT ((u_long)2) 225extern void * amqproc_umnt_57(); 226extern void * amqproc_umnt_57_svc(); 227#define AMQPROC_STATS ((u_long)3) 228extern amq_mount_stats * amqproc_stats_57(); 229extern amq_mount_stats * amqproc_stats_57_svc(); 230#define AMQPROC_EXPORT ((u_long)4) 231extern amq_mount_tree_list * amqproc_export_57(); 232extern amq_mount_tree_list * amqproc_export_57_svc(); 233#define AMQPROC_SETOPT ((u_long)5) 234extern int * amqproc_setopt_57(); 235extern int * amqproc_setopt_57_svc(); 236#define AMQPROC_GETMNTFS ((u_long)6) 237extern amq_mount_info_list * amqproc_getmntfs_57(); 238extern amq_mount_info_list * amqproc_getmntfs_57_svc(); 239#define AMQPROC_GETVERS ((u_long)7) 240extern amq_string * amqproc_getvers_57(); 241extern amq_string * amqproc_getvers_57_svc(); 242#endif /* Old Style C */ 243 244#endif /* !_AMQ_H_RPCGEN */ 245