| 1 | /* |
| 2 | * Please do not edit this file. |
| 3 | * It was generated using rpcgen. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _MOUNT_H_RPCGEN |
| 7 | #define _MOUNT_H_RPCGEN |
| 8 | |
| 9 | #define RPCGEN_VERSION 199506 |
| 10 | |
| 11 | #include <rpc/rpc.h> |
| 12 | |
| 13 | #define MNTPATHLEN 1024 |
| 14 | #define MNTNAMLEN 255 |
| 15 | #define FHSIZE 32 |
| 16 | #define FHSIZE3 64 |
| 17 | |
| 18 | typedef char fhandle[FHSIZE]; |
| 19 | |
| 20 | typedef struct { |
| 21 | unsigned int fhandle3_len; |
| 22 | char *fhandle3_val; |
| 23 | } fhandle3; |
| 24 | |
| 25 | struct fhstatus { |
| 26 | u_int fhs_status; |
| 27 | union { |
| 28 | fhandle fhs_fhandle; |
| 29 | } fhstatus_u; |
| 30 | }; |
| 31 | typedef struct fhstatus fhstatus; |
| 32 | |
| 33 | enum mountstat3 { |
| 34 | MNT3_OK = 0, |
| 35 | MNT3ERR_PERM = 1, |
| 36 | MNT3ERR_NOENT = 2, |
| 37 | MNT3ERR_IO = 5, |
| 38 | MNT3ERR_ACCES = 13, |
| 39 | MNT3ERR_NOTDIR = 20, |
| 40 | MNT3ERR_INVAL = 22, |
| 41 | MNT3ERR_NAMETOOLONG = 63, |
| 42 | MNT3ERR_NOTSUPP = 10004, |
| 43 | MNT3ERR_SERVERFAULT = 10006 |
| 44 | }; |
| 45 | typedef enum mountstat3 mountstat3; |
| 46 | |
| 47 | struct mountres3_ok { |
| 48 | fhandle3 fhandle; |
| 49 | struct { |
| 50 | unsigned int auth_flavors_len; |
| 51 | int *auth_flavors_val; |
| 52 | } auth_flavors; |
| 53 | }; |
| 54 | typedef struct mountres3_ok mountres3_ok; |
| 55 | |
| 56 | struct mountres3 { |
| 57 | mountstat3 fhs_status; |
| 58 | union { |
| 59 | mountres3_ok mountinfo; |
| 60 | } mountres3_u; |
| 61 | }; |
| 62 | typedef struct mountres3 mountres3; |
| 63 | |
| 64 | typedef char *dirpath; |
| 65 | |
| 66 | typedef char *name; |
| 67 | |
| 68 | typedef struct mountbody *mountlist; |
| 69 | |
| 70 | struct mountbody { |
| 71 | name ml_hostname; |
| 72 | dirpath ml_directory; |
| 73 | mountlist ml_next; |
| 74 | }; |
| 75 | typedef struct mountbody mountbody; |
| 76 | |
| 77 | typedef struct groupnode *groups; |
| 78 | |
| 79 | struct groupnode { |
| 80 | name gr_name; |
| 81 | groups gr_next; |
| 82 | }; |
| 83 | typedef struct groupnode groupnode; |
| 84 | |
| 85 | typedef struct exportnode *exports; |
| 86 | |
| 87 | struct exportnode { |
| 88 | dirpath ex_dir; |
| 89 | groups ex_groups; |
| 90 | exports ex_next; |
| 91 | }; |
| 92 | typedef struct exportnode exportnode; |
| 93 | |
| 94 | __BEGIN_DECLS |
| 95 | bool_t xdr_fhandle(XDR *, fhandle); |
| 96 | bool_t xdr_fhandle3(XDR *, fhandle3 *); |
| 97 | bool_t xdr_fhstatus(XDR *, fhstatus *); |
| 98 | bool_t xdr_mountstat3(XDR *, mountstat3 *); |
| 99 | bool_t xdr_mountres3_ok(XDR *, mountres3_ok *); |
| 100 | bool_t xdr_mountres3(XDR *, mountres3 *); |
| 101 | bool_t xdr_dirpath(XDR *, dirpath *); |
| 102 | bool_t xdr_name(XDR *, name *); |
| 103 | bool_t xdr_mountlist(XDR *, mountlist *); |
| 104 | bool_t xdr_mountbody(XDR *, mountbody *); |
| 105 | bool_t xdr_groups(XDR *, groups *); |
| 106 | bool_t xdr_groupnode(XDR *, groupnode *); |
| 107 | bool_t xdr_exports(XDR *, exports *); |
| 108 | bool_t xdr_exportnode(XDR *, exportnode *); |
| 109 | __END_DECLS |
| 110 | |
| 111 | #define MOUNTPROG 100005 |
| 112 | #define MOUNTVERS 1 |
| 113 | #define MOUNTPROC_NULL 0 |
| 114 | #define MOUNTPROC_MNT 1 |
| 115 | #define MOUNTPROC_DUMP 2 |
| 116 | #define MOUNTPROC_UMNT 3 |
| 117 | #define MOUNTPROC_UMNTALL 4 |
| 118 | #define MOUNTPROC_EXPORT 5 |
| 119 | #define MOUNTPROC_EXPORTALL 6 |
| 120 | #define MOUNTVERS3 3 |
| 121 | |
| 122 | __BEGIN_DECLS |
| 123 | void *mountproc_null_1(void *, CLIENT *); |
| 124 | void *mountproc_null_1_svc(void *, struct svc_req *); |
| 125 | fhstatus *mountproc_mnt_1(dirpath *, CLIENT *); |
| 126 | fhstatus *mountproc_mnt_1_svc(dirpath *, struct svc_req *); |
| 127 | mountlist *mountproc_dump_1(void *, CLIENT *); |
| 128 | mountlist *mountproc_dump_1_svc(void *, struct svc_req *); |
| 129 | void *mountproc_umnt_1(dirpath *, CLIENT *); |
| 130 | void *mountproc_umnt_1_svc(dirpath *, struct svc_req *); |
| 131 | void *mountproc_umntall_1(void *, CLIENT *); |
| 132 | void *mountproc_umntall_1_svc(void *, struct svc_req *); |
| 133 | exports *mountproc_export_1(void *, CLIENT *); |
| 134 | exports *mountproc_export_1_svc(void *, struct svc_req *); |
| 135 | exports *mountproc_exportall_1(void *, CLIENT *); |
| 136 | exports *mountproc_exportall_1_svc(void *, struct svc_req *); |
| 137 | void *mountproc_null_3(void *, CLIENT *); |
| 138 | void *mountproc_null_3_svc(void *, struct svc_req *); |
| 139 | mountres3 *mountproc_mnt_3(dirpath *, CLIENT *); |
| 140 | mountres3 *mountproc_mnt_3_svc(dirpath *, struct svc_req *); |
| 141 | mountlist *mountproc_dump_3(void *, CLIENT *); |
| 142 | mountlist *mountproc_dump_3_svc(void *, struct svc_req *); |
| 143 | void *mountproc_umnt_3(dirpath *, CLIENT *); |
| 144 | void *mountproc_umnt_3_svc(dirpath *, struct svc_req *); |
| 145 | void *mountproc_umntall_3(void *, CLIENT *); |
| 146 | void *mountproc_umntall_3_svc(void *, struct svc_req *); |
| 147 | exports *mountproc_export_3(void *, CLIENT *); |
| 148 | exports *mountproc_export_3_svc(void *, struct svc_req *); |
| 149 | __END_DECLS |
| 150 | |
| 151 | #endif /* !_MOUNT_H_RPCGEN */ |
| 152 | |