RPC_CONNECT: Use the rpc_connect_program_async() flow during nfs_mount()
[deb_libnfs.git] / rquota / libnfs-raw-rquota.h
1 /*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6 #ifndef _RQUOTA_H_RPCGEN
7 #define _RQUOTA_H_RPCGEN
8
9 #include <nfsc/libnfs-zdr.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 #define RQUOTAPATHLEN 1024
16
17 enum rquotastat {
18 RQUOTA_OK = 1,
19 RQUOTA_NOQUOTA = 2,
20 RQUOTA_EPERM = 3,
21 };
22 typedef enum rquotastat rquotastat;
23
24 typedef char *exportpath;
25
26 struct GETQUOTA1args {
27 exportpath export;
28 int uid;
29 };
30 typedef struct GETQUOTA1args GETQUOTA1args;
31
32 enum quotatype {
33 RQUOTA_TYPE_UID = 0,
34 RQUOTA_TYPE_GID = 1,
35 };
36 typedef enum quotatype quotatype;
37
38 struct GETQUOTA2args {
39 exportpath export;
40 quotatype type;
41 int uid;
42 };
43 typedef struct GETQUOTA2args GETQUOTA2args;
44
45 struct GETQUOTA1res_ok {
46 int bsize;
47 int active;
48 int bhardlimit;
49 int bsoftlimit;
50 int curblocks;
51 int fhardlimit;
52 int fsoftlimit;
53 int curfiles;
54 int btimeleft;
55 int ftimeleft;
56 };
57 typedef struct GETQUOTA1res_ok GETQUOTA1res_ok;
58
59 struct GETQUOTA1res {
60 rquotastat status;
61 union {
62 GETQUOTA1res_ok quota;
63 } GETQUOTA1res_u;
64 };
65 typedef struct GETQUOTA1res GETQUOTA1res;
66
67 #define RQUOTA_PROGRAM 100011
68 #define RQUOTA_V1 1
69
70 #if defined(__STDC__) || defined(__cplusplus)
71 #define RQUOTA1_NULL 0
72 extern void * rquota1_null_1(void *, CLIENT *);
73 extern void * rquota1_null_1_svc(void *, struct svc_req *);
74 #define RQUOTA1_GETQUOTA 1
75 extern GETQUOTA1res * rquota1_getquota_1(GETQUOTA1args *, CLIENT *);
76 extern GETQUOTA1res * rquota1_getquota_1_svc(GETQUOTA1args *, struct svc_req *);
77 #define RQUOTA1_GETACTIVEQUOTA 2
78 extern GETQUOTA1res * rquota1_getactivequota_1(GETQUOTA1args *, CLIENT *);
79 extern GETQUOTA1res * rquota1_getactivequota_1_svc(GETQUOTA1args *, struct svc_req *);
80 extern int rquota_program_1_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
81
82 #else /* K&R C */
83 #define RQUOTA1_NULL 0
84 extern void * rquota1_null_1();
85 extern void * rquota1_null_1_svc();
86 #define RQUOTA1_GETQUOTA 1
87 extern GETQUOTA1res * rquota1_getquota_1();
88 extern GETQUOTA1res * rquota1_getquota_1_svc();
89 #define RQUOTA1_GETACTIVEQUOTA 2
90 extern GETQUOTA1res * rquota1_getactivequota_1();
91 extern GETQUOTA1res * rquota1_getactivequota_1_svc();
92 extern int rquota_program_1_freeresult ();
93 #endif /* K&R C */
94 #define RQUOTA_V2 2
95
96 #if defined(__STDC__) || defined(__cplusplus)
97 #define RQUOTA2_NULL 0
98 extern void * rquota2_null_2(void *, CLIENT *);
99 extern void * rquota2_null_2_svc(void *, struct svc_req *);
100 #define RQUOTA2_GETQUOTA 1
101 extern GETQUOTA1res * rquota2_getquota_2(GETQUOTA2args *, CLIENT *);
102 extern GETQUOTA1res * rquota2_getquota_2_svc(GETQUOTA2args *, struct svc_req *);
103 #define RQUOTA2_GETACTIVEQUOTA 2
104 extern GETQUOTA1res * rquota2_getactivequota_2(GETQUOTA2args *, CLIENT *);
105 extern GETQUOTA1res * rquota2_getactivequota_2_svc(GETQUOTA2args *, struct svc_req *);
106 extern int rquota_program_2_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
107
108 #else /* K&R C */
109 #define RQUOTA2_NULL 0
110 extern void * rquota2_null_2();
111 extern void * rquota2_null_2_svc();
112 #define RQUOTA2_GETQUOTA 1
113 extern GETQUOTA1res * rquota2_getquota_2();
114 extern GETQUOTA1res * rquota2_getquota_2_svc();
115 #define RQUOTA2_GETACTIVEQUOTA 2
116 extern GETQUOTA1res * rquota2_getactivequota_2();
117 extern GETQUOTA1res * rquota2_getactivequota_2_svc();
118 extern int rquota_program_2_freeresult ();
119 #endif /* K&R C */
120
121 /* the zdr functions */
122
123 #if defined(__STDC__) || defined(__cplusplus)
124 extern bool_t zdr_rquotastat (ZDR *, rquotastat*);
125 extern bool_t zdr_exportpath (ZDR *, exportpath*);
126 extern bool_t zdr_GETQUOTA1args (ZDR *, GETQUOTA1args*);
127 extern bool_t zdr_quotatype (ZDR *, quotatype*);
128 extern bool_t zdr_GETQUOTA2args (ZDR *, GETQUOTA2args*);
129 extern bool_t zdr_GETQUOTA1res_ok (ZDR *, GETQUOTA1res_ok*);
130 extern bool_t zdr_GETQUOTA1res (ZDR *, GETQUOTA1res*);
131
132 #else /* K&R C */
133 extern bool_t zdr_rquotastat ();
134 extern bool_t zdr_exportpath ();
135 extern bool_t zdr_GETQUOTA1args ();
136 extern bool_t zdr_quotatype ();
137 extern bool_t zdr_GETQUOTA2args ();
138 extern bool_t zdr_GETQUOTA1res_ok ();
139 extern bool_t zdr_GETQUOTA1res ();
140
141 #endif /* K&R C */
142
143 #ifdef __cplusplus
144 }
145 #endif
146
147 #endif /* !_RQUOTA_H_RPCGEN */