2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #include "libnfs-zdr.h"
7 #include "libnfs-raw-rquota.h"
10 zdr_rquotastat (ZDR
*zdrs
, rquotastat
*objp
)
12 register int32_t *buf
;
15 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
21 zdr_exportpath (ZDR
*zdrs
, exportpath
*objp
)
23 register int32_t *buf
;
26 if (!zdr_string (zdrs
, objp
, RQUOTAPATHLEN
))
32 zdr_GETQUOTA1args (ZDR
*zdrs
, GETQUOTA1args
*objp
)
34 register int32_t *buf
;
37 if (!zdr_exportpath (zdrs
, &objp
->export
))
39 if (!zdr_int (zdrs
, &objp
->uid
))
45 zdr_quotatype (ZDR
*zdrs
, quotatype
*objp
)
47 register int32_t *buf
;
50 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
56 zdr_GETQUOTA2args (ZDR
*zdrs
, GETQUOTA2args
*objp
)
58 register int32_t *buf
;
61 if (!zdr_exportpath (zdrs
, &objp
->export
))
63 if (!zdr_quotatype (zdrs
, &objp
->type
))
65 if (!zdr_int (zdrs
, &objp
->uid
))
71 zdr_GETQUOTA1res_ok (ZDR
*zdrs
, GETQUOTA1res_ok
*objp
)
73 register int32_t *buf
;
77 if (zdrs
->x_op
== ZDR_ENCODE
) {
78 buf
= ZDR_INLINE (zdrs
, 10 * BYTES_PER_ZDR_UNIT
);
80 if (!zdr_int (zdrs
, &objp
->bsize
))
82 if (!zdr_int (zdrs
, &objp
->active
))
84 if (!zdr_int (zdrs
, &objp
->bhardlimit
))
86 if (!zdr_int (zdrs
, &objp
->bsoftlimit
))
88 if (!zdr_int (zdrs
, &objp
->curblocks
))
90 if (!zdr_int (zdrs
, &objp
->fhardlimit
))
92 if (!zdr_int (zdrs
, &objp
->fsoftlimit
))
94 if (!zdr_int (zdrs
, &objp
->curfiles
))
96 if (!zdr_int (zdrs
, &objp
->btimeleft
))
98 if (!zdr_int (zdrs
, &objp
->ftimeleft
))
101 IZDR_PUT_LONG(buf
, objp
->bsize
);
102 IZDR_PUT_LONG(buf
, objp
->active
);
103 IZDR_PUT_LONG(buf
, objp
->bhardlimit
);
104 IZDR_PUT_LONG(buf
, objp
->bsoftlimit
);
105 IZDR_PUT_LONG(buf
, objp
->curblocks
);
106 IZDR_PUT_LONG(buf
, objp
->fhardlimit
);
107 IZDR_PUT_LONG(buf
, objp
->fsoftlimit
);
108 IZDR_PUT_LONG(buf
, objp
->curfiles
);
109 IZDR_PUT_LONG(buf
, objp
->btimeleft
);
110 IZDR_PUT_LONG(buf
, objp
->ftimeleft
);
113 } else if (zdrs
->x_op
== ZDR_DECODE
) {
114 buf
= ZDR_INLINE (zdrs
, 10 * BYTES_PER_ZDR_UNIT
);
116 if (!zdr_int (zdrs
, &objp
->bsize
))
118 if (!zdr_int (zdrs
, &objp
->active
))
120 if (!zdr_int (zdrs
, &objp
->bhardlimit
))
122 if (!zdr_int (zdrs
, &objp
->bsoftlimit
))
124 if (!zdr_int (zdrs
, &objp
->curblocks
))
126 if (!zdr_int (zdrs
, &objp
->fhardlimit
))
128 if (!zdr_int (zdrs
, &objp
->fsoftlimit
))
130 if (!zdr_int (zdrs
, &objp
->curfiles
))
132 if (!zdr_int (zdrs
, &objp
->btimeleft
))
134 if (!zdr_int (zdrs
, &objp
->ftimeleft
))
137 objp
->bsize
= IZDR_GET_LONG(buf
);
138 objp
->active
= IZDR_GET_LONG(buf
);
139 objp
->bhardlimit
= IZDR_GET_LONG(buf
);
140 objp
->bsoftlimit
= IZDR_GET_LONG(buf
);
141 objp
->curblocks
= IZDR_GET_LONG(buf
);
142 objp
->fhardlimit
= IZDR_GET_LONG(buf
);
143 objp
->fsoftlimit
= IZDR_GET_LONG(buf
);
144 objp
->curfiles
= IZDR_GET_LONG(buf
);
145 objp
->btimeleft
= IZDR_GET_LONG(buf
);
146 objp
->ftimeleft
= IZDR_GET_LONG(buf
);
151 if (!zdr_int (zdrs
, &objp
->bsize
))
153 if (!zdr_int (zdrs
, &objp
->active
))
155 if (!zdr_int (zdrs
, &objp
->bhardlimit
))
157 if (!zdr_int (zdrs
, &objp
->bsoftlimit
))
159 if (!zdr_int (zdrs
, &objp
->curblocks
))
161 if (!zdr_int (zdrs
, &objp
->fhardlimit
))
163 if (!zdr_int (zdrs
, &objp
->fsoftlimit
))
165 if (!zdr_int (zdrs
, &objp
->curfiles
))
167 if (!zdr_int (zdrs
, &objp
->btimeleft
))
169 if (!zdr_int (zdrs
, &objp
->ftimeleft
))
175 zdr_GETQUOTA1res (ZDR
*zdrs
, GETQUOTA1res
*objp
)
177 register int32_t *buf
;
180 if (!zdr_rquotastat (zdrs
, &objp
->status
))
182 switch (objp
->status
) {
184 if (!zdr_GETQUOTA1res_ok (zdrs
, &objp
->GETQUOTA1res_u
.quota
))