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 15 typedef char *amq_string; 16 #ifdef __cplusplus 17 extern "C" bool_t xdr_amq_string(XDR *, amq_string *); 18 #elif defined(__STDC__) 19 extern bool_t xdr_amq_string(XDR *, amq_string *); 20 #else /* Old Style C */ 21 bool_t xdr_amq_string(); 22 #endif /* Old Style C */ 23 24 25 typedef int64_t time_type; 26 #ifdef __cplusplus 27 extern "C" bool_t xdr_time_type(XDR *, time_type *); 28 #elif defined(__STDC__) 29 extern bool_t xdr_time_type(XDR *, time_type *); 30 #else /* Old Style C */ 31 bool_t xdr_time_type(); 32 #endif /* Old Style C */ 33 34 35 struct 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 }; 50 typedef struct amq_mount_tree amq_mount_tree; 51 #ifdef __cplusplus 52 extern "C" bool_t xdr_amq_mount_tree(XDR *, amq_mount_tree *); 53 #elif defined(__STDC__) 54 extern bool_t xdr_amq_mount_tree(XDR *, amq_mount_tree *); 55 #else /* Old Style C */ 56 bool_t xdr_amq_mount_tree(); 57 #endif /* Old Style C */ 58 59 60 typedef amq_mount_tree *amq_mount_tree_p; 61 #ifdef __cplusplus 62 extern "C" bool_t xdr_amq_mount_tree_p(XDR *, amq_mount_tree_p *); 63 #elif defined(__STDC__) 64 extern bool_t xdr_amq_mount_tree_p(XDR *, amq_mount_tree_p *); 65 #else /* Old Style C */ 66 bool_t xdr_amq_mount_tree_p(); 67 #endif /* Old Style C */ 68 69 70 struct 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 }; 79 typedef struct amq_mount_info amq_mount_info; 80 #ifdef __cplusplus 81 extern "C" bool_t xdr_amq_mount_info(XDR *, amq_mount_info *); 82 #elif defined(__STDC__) 83 extern bool_t xdr_amq_mount_info(XDR *, amq_mount_info *); 84 #else /* Old Style C */ 85 bool_t xdr_amq_mount_info(); 86 #endif /* Old Style C */ 87 88 89 typedef 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 94 extern "C" bool_t xdr_amq_mount_info_list(XDR *, amq_mount_info_list *); 95 #elif defined(__STDC__) 96 extern bool_t xdr_amq_mount_info_list(XDR *, amq_mount_info_list *); 97 #else /* Old Style C */ 98 bool_t xdr_amq_mount_info_list(); 99 #endif /* Old Style C */ 100 101 102 typedef 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 107 extern "C" bool_t xdr_amq_mount_tree_list(XDR *, amq_mount_tree_list *); 108 #elif defined(__STDC__) 109 extern bool_t xdr_amq_mount_tree_list(XDR *, amq_mount_tree_list *); 110 #else /* Old Style C */ 111 bool_t xdr_amq_mount_tree_list(); 112 #endif /* Old Style C */ 113 114 115 struct amq_mount_stats { 116 int as_drops; 117 int as_stale; 118 int as_mok; 119 int as_merr; 120 int as_uerr; 121 }; 122 typedef struct amq_mount_stats amq_mount_stats; 123 #ifdef __cplusplus 124 extern "C" bool_t xdr_amq_mount_stats(XDR *, amq_mount_stats *); 125 #elif defined(__STDC__) 126 extern bool_t xdr_amq_mount_stats(XDR *, amq_mount_stats *); 127 #else /* Old Style C */ 128 bool_t xdr_amq_mount_stats(); 129 #endif /* Old Style C */ 130 131 132 enum amq_opt { 133 AMOPT_DEBUG = 0, 134 AMOPT_LOGFILE = 1, 135 AMOPT_XLOG = 2, 136 AMOPT_FLUSHMAPC = 3 137 }; 138 typedef enum amq_opt amq_opt; 139 #ifdef __cplusplus 140 extern "C" bool_t xdr_amq_opt(XDR *, amq_opt *); 141 #elif defined(__STDC__) 142 extern bool_t xdr_amq_opt(XDR *, amq_opt *); 143 #else /* Old Style C */ 144 bool_t xdr_amq_opt(); 145 #endif /* Old Style C */ 146 147 148 struct amq_setopt { 149 amq_opt as_opt; 150 amq_string as_str; 151 }; 152 typedef struct amq_setopt amq_setopt; 153 #ifdef __cplusplus 154 extern "C" bool_t xdr_amq_setopt(XDR *, amq_setopt *); 155 #elif defined(__STDC__) 156 extern bool_t xdr_amq_setopt(XDR *, amq_setopt *); 157 #else /* Old Style C */ 158 bool_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) 167 extern "C" void * amqproc_null_57(void *, CLIENT *); 168 extern "C" void * amqproc_null_57_svc(void *, struct svc_req *); 169 #define AMQPROC_MNTTREE ((u_long)1) 170 extern "C" amq_mount_tree_p * amqproc_mnttree_57(amq_string *, CLIENT *); 171 extern "C" amq_mount_tree_p * amqproc_mnttree_57_svc(amq_string *, struct svc_req *); 172 #define AMQPROC_UMNT ((u_long)2) 173 extern "C" void * amqproc_umnt_57(amq_string *, CLIENT *); 174 extern "C" void * amqproc_umnt_57_svc(amq_string *, struct svc_req *); 175 #define AMQPROC_STATS ((u_long)3) 176 extern "C" amq_mount_stats * amqproc_stats_57(void *, CLIENT *); 177 extern "C" amq_mount_stats * amqproc_stats_57_svc(void *, struct svc_req *); 178 #define AMQPROC_EXPORT ((u_long)4) 179 extern "C" amq_mount_tree_list * amqproc_export_57(void *, CLIENT *); 180 extern "C" amq_mount_tree_list * amqproc_export_57_svc(void *, struct svc_req *); 181 #define AMQPROC_SETOPT ((u_long)5) 182 extern "C" int * amqproc_setopt_57(amq_setopt *, CLIENT *); 183 extern "C" int * amqproc_setopt_57_svc(amq_setopt *, struct svc_req *); 184 #define AMQPROC_GETMNTFS ((u_long)6) 185 extern "C" amq_mount_info_list * amqproc_getmntfs_57(void *, CLIENT *); 186 extern "C" amq_mount_info_list * amqproc_getmntfs_57_svc(void *, struct svc_req *); 187 #define AMQPROC_GETVERS ((u_long)7) 188 extern "C" amq_string * amqproc_getvers_57(void *, CLIENT *); 189 extern "C" amq_string * amqproc_getvers_57_svc(void *, struct svc_req *); 190 191 #elif defined(__STDC__) 192 #define AMQPROC_NULL ((u_long)0) 193 extern void * amqproc_null_57(void *, CLIENT *); 194 extern void * amqproc_null_57_svc(void *, struct svc_req *); 195 #define AMQPROC_MNTTREE ((u_long)1) 196 extern amq_mount_tree_p * amqproc_mnttree_57(amq_string *, CLIENT *); 197 extern amq_mount_tree_p * amqproc_mnttree_57_svc(amq_string *, struct svc_req *); 198 #define AMQPROC_UMNT ((u_long)2) 199 extern void * amqproc_umnt_57(amq_string *, CLIENT *); 200 extern void * amqproc_umnt_57_svc(amq_string *, struct svc_req *); 201 #define AMQPROC_STATS ((u_long)3) 202 extern amq_mount_stats * amqproc_stats_57(void *, CLIENT *); 203 extern amq_mount_stats * amqproc_stats_57_svc(void *, struct svc_req *); 204 #define AMQPROC_EXPORT ((u_long)4) 205 extern amq_mount_tree_list * amqproc_export_57(void *, CLIENT *); 206 extern amq_mount_tree_list * amqproc_export_57_svc(void *, struct svc_req *); 207 #define AMQPROC_SETOPT ((u_long)5) 208 extern int * amqproc_setopt_57(amq_setopt *, CLIENT *); 209 extern int * amqproc_setopt_57_svc(amq_setopt *, struct svc_req *); 210 #define AMQPROC_GETMNTFS ((u_long)6) 211 extern amq_mount_info_list * amqproc_getmntfs_57(void *, CLIENT *); 212 extern amq_mount_info_list * amqproc_getmntfs_57_svc(void *, struct svc_req *); 213 #define AMQPROC_GETVERS ((u_long)7) 214 extern amq_string * amqproc_getvers_57(void *, CLIENT *); 215 extern amq_string * amqproc_getvers_57_svc(void *, struct svc_req *); 216 217 #else /* Old Style C */ 218 #define AMQPROC_NULL ((u_long)0) 219 extern void * amqproc_null_57(); 220 extern void * amqproc_null_57_svc(); 221 #define AMQPROC_MNTTREE ((u_long)1) 222 extern amq_mount_tree_p * amqproc_mnttree_57(); 223 extern amq_mount_tree_p * amqproc_mnttree_57_svc(); 224 #define AMQPROC_UMNT ((u_long)2) 225 extern void * amqproc_umnt_57(); 226 extern void * amqproc_umnt_57_svc(); 227 #define AMQPROC_STATS ((u_long)3) 228 extern amq_mount_stats * amqproc_stats_57(); 229 extern amq_mount_stats * amqproc_stats_57_svc(); 230 #define AMQPROC_EXPORT ((u_long)4) 231 extern amq_mount_tree_list * amqproc_export_57(); 232 extern amq_mount_tree_list * amqproc_export_57_svc(); 233 #define AMQPROC_SETOPT ((u_long)5) 234 extern int * amqproc_setopt_57(); 235 extern int * amqproc_setopt_57_svc(); 236 #define AMQPROC_GETMNTFS ((u_long)6) 237 extern amq_mount_info_list * amqproc_getmntfs_57(); 238 extern amq_mount_info_list * amqproc_getmntfs_57_svc(); 239 #define AMQPROC_GETVERS ((u_long)7) 240 extern amq_string * amqproc_getvers_57(); 241 extern amq_string * amqproc_getvers_57_svc(); 242 #endif /* Old Style C */ 243 244 #endif /* !_AMQ_H_RPCGEN */ 245