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