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