]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/rquotad/rquota.h
09048f3cbf98cf97a524c73530b076af4c343936
[nfs-utils.git] / utils / rquotad / 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 <rpc/rpc.h>
10
11 #ifndef IXDR_GET_INT32
12 #define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))
13 #endif
14 #ifndef IXDR_PUT_INT32
15 #define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))
16 #endif
17 #ifndef IXDR_GET_U_INT32
18 #define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))
19 #endif
20 #ifndef IXDR_PUT_U_INT32
21 #define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))
22 #endif
23 #define RQ_PATHLEN 1024
24
25 struct getquota_args {
26         char *gqa_pathp;
27         int gqa_uid;
28 };
29 typedef struct getquota_args getquota_args;
30 #ifdef __cplusplus 
31 extern "C" bool_t xdr_getquota_args(XDR *, getquota_args*);
32 #elif __STDC__ 
33 extern  bool_t xdr_getquota_args(XDR *, getquota_args*);
34 #else /* Old Style C */ 
35 bool_t xdr_getquota_args();
36 #endif /* Old Style C */ 
37
38
39 struct ext_getquota_args {
40         char *gqa_pathp;
41         int gqa_type;
42         int gqa_id;
43 };
44 typedef struct ext_getquota_args ext_getquota_args;
45 #ifdef __cplusplus 
46 extern "C" bool_t xdr_ext_getquota_args(XDR *, ext_getquota_args*);
47 #elif __STDC__ 
48 extern  bool_t xdr_ext_getquota_args(XDR *, ext_getquota_args*);
49 #else /* Old Style C */ 
50 bool_t xdr_ext_getquota_args();
51 #endif /* Old Style C */ 
52
53
54 struct rquota {
55         int rq_bsize;
56         bool_t rq_active;
57         u_int rq_bhardlimit;
58         u_int rq_bsoftlimit;
59         u_int rq_curblocks;
60         u_int rq_fhardlimit;
61         u_int rq_fsoftlimit;
62         u_int rq_curfiles;
63         u_int rq_btimeleft;
64         u_int rq_ftimeleft;
65 };
66 typedef struct rquota rquota;
67 #ifdef __cplusplus 
68 extern "C" bool_t xdr_rquota(XDR *, rquota*);
69 #elif __STDC__ 
70 extern  bool_t xdr_rquota(XDR *, rquota*);
71 #else /* Old Style C */ 
72 bool_t xdr_rquota();
73 #endif /* Old Style C */ 
74
75
76 enum gqr_status {
77         Q_OK = 1,
78         Q_NOQUOTA = 2,
79         Q_EPERM = 3,
80 };
81 typedef enum gqr_status gqr_status;
82 #ifdef __cplusplus 
83 extern "C" bool_t xdr_gqr_status(XDR *, gqr_status*);
84 #elif __STDC__ 
85 extern  bool_t xdr_gqr_status(XDR *, gqr_status*);
86 #else /* Old Style C */ 
87 bool_t xdr_gqr_status();
88 #endif /* Old Style C */ 
89
90
91 struct getquota_rslt {
92         gqr_status status;
93         union {
94                 rquota gqr_rquota;
95         } getquota_rslt_u;
96 };
97 typedef struct getquota_rslt getquota_rslt;
98 #ifdef __cplusplus 
99 extern "C" bool_t xdr_getquota_rslt(XDR *, getquota_rslt*);
100 #elif __STDC__ 
101 extern  bool_t xdr_getquota_rslt(XDR *, getquota_rslt*);
102 #else /* Old Style C */ 
103 bool_t xdr_getquota_rslt();
104 #endif /* Old Style C */ 
105
106
107 #define RQUOTAPROG ((u_int32_t)100011)
108 #define RQUOTAVERS ((u_int32_t)1)
109
110 #ifdef __cplusplus
111 #define RQUOTAPROC_GETQUOTA ((u_int32_t)1)
112 extern "C" getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *);
113 extern "C" getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *);
114 #define RQUOTAPROC_GETACTIVEQUOTA ((u_int32_t)2)
115 extern "C" getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *);
116 extern "C" getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *);
117
118 #elif __STDC__
119 #define RQUOTAPROC_GETQUOTA ((u_int32_t)1)
120 extern  getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *);
121 extern  getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *);
122 #define RQUOTAPROC_GETACTIVEQUOTA ((u_int32_t)2)
123 extern  getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *);
124 extern  getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *);
125
126 #else /* Old Style C */ 
127 #define RQUOTAPROC_GETQUOTA ((u_int32_t)1)
128 extern  getquota_rslt * rquotaproc_getquota_1();
129 extern  getquota_rslt * rquotaproc_getquota_1_svc();
130 #define RQUOTAPROC_GETACTIVEQUOTA ((u_int32_t)2)
131 extern  getquota_rslt * rquotaproc_getactivequota_1();
132 extern  getquota_rslt * rquotaproc_getactivequota_1_svc();
133 #endif /* Old Style C */ 
134 #define EXT_RQUOTAVERS ((u_int32_t)2)
135
136 #ifdef __cplusplus
137 extern "C" getquota_rslt * rquotaproc_getquota_2(ext_getquota_args *, CLIENT *);
138 extern "C" getquota_rslt * rquotaproc_getquota_2_svc(ext_getquota_args *, struct svc_req *);
139 extern "C" getquota_rslt * rquotaproc_getactivequota_2(ext_getquota_args *, CLIENT *);
140 extern "C" getquota_rslt * rquotaproc_getactivequota_2_svc(ext_getquota_args *, struct svc_req *);
141
142 #elif __STDC__
143 extern  getquota_rslt * rquotaproc_getquota_2(ext_getquota_args *, CLIENT *);
144 extern  getquota_rslt * rquotaproc_getquota_2_svc(ext_getquota_args *, struct svc_req *);
145 extern  getquota_rslt * rquotaproc_getactivequota_2(ext_getquota_args *, CLIENT *);
146 extern  getquota_rslt * rquotaproc_getactivequota_2_svc(ext_getquota_args *, struct svc_req *);
147
148 #else /* Old Style C */ 
149 extern  getquota_rslt * rquotaproc_getquota_2();
150 extern  getquota_rslt * rquotaproc_getquota_2_svc();
151 extern  getquota_rslt * rquotaproc_getactivequota_2();
152 extern  getquota_rslt * rquotaproc_getactivequota_2_svc();
153 #endif /* Old Style C */ 
154
155 #endif /* !_RQUOTA_H_RPCGEN */