2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #include "libnfs-zdr.h"
7 #include "libnfs-raw-portmap.h"
10 zdr_pmap2_mapping (ZDR
*zdrs
, pmap2_mapping
*objp
)
12 register int32_t *buf
;
16 if (zdrs
->x_op
== ZDR_ENCODE
) {
17 buf
= ZDR_INLINE (zdrs
, 4 * BYTES_PER_ZDR_UNIT
);
19 if (!zdr_u_int (zdrs
, &objp
->prog
))
21 if (!zdr_u_int (zdrs
, &objp
->vers
))
23 if (!zdr_u_int (zdrs
, &objp
->prot
))
25 if (!zdr_u_int (zdrs
, &objp
->port
))
28 IZDR_PUT_U_LONG(buf
, objp
->prog
);
29 IZDR_PUT_U_LONG(buf
, objp
->vers
);
30 IZDR_PUT_U_LONG(buf
, objp
->prot
);
31 IZDR_PUT_U_LONG(buf
, objp
->port
);
34 } else if (zdrs
->x_op
== ZDR_DECODE
) {
35 buf
= ZDR_INLINE (zdrs
, 4 * BYTES_PER_ZDR_UNIT
);
37 if (!zdr_u_int (zdrs
, &objp
->prog
))
39 if (!zdr_u_int (zdrs
, &objp
->vers
))
41 if (!zdr_u_int (zdrs
, &objp
->prot
))
43 if (!zdr_u_int (zdrs
, &objp
->port
))
46 objp
->prog
= IZDR_GET_U_LONG(buf
);
47 objp
->vers
= IZDR_GET_U_LONG(buf
);
48 objp
->prot
= IZDR_GET_U_LONG(buf
);
49 objp
->port
= IZDR_GET_U_LONG(buf
);
54 if (!zdr_u_int (zdrs
, &objp
->prog
))
56 if (!zdr_u_int (zdrs
, &objp
->vers
))
58 if (!zdr_u_int (zdrs
, &objp
->prot
))
60 if (!zdr_u_int (zdrs
, &objp
->port
))
66 zdr_pmap2_call_args (ZDR
*zdrs
, pmap2_call_args
*objp
)
68 register int32_t *buf
;
72 if (zdrs
->x_op
== ZDR_ENCODE
) {
73 buf
= ZDR_INLINE (zdrs
, 3 * BYTES_PER_ZDR_UNIT
);
75 if (!zdr_u_int (zdrs
, &objp
->prog
))
77 if (!zdr_u_int (zdrs
, &objp
->vers
))
79 if (!zdr_u_int (zdrs
, &objp
->proc
))
83 IZDR_PUT_U_LONG(buf
, objp
->prog
);
84 IZDR_PUT_U_LONG(buf
, objp
->vers
);
85 IZDR_PUT_U_LONG(buf
, objp
->proc
);
87 if (!zdr_bytes (zdrs
, (char **)&objp
->args
.args_val
, (u_int
*) &objp
->args
.args_len
, ~0))
90 } else if (zdrs
->x_op
== ZDR_DECODE
) {
91 buf
= ZDR_INLINE (zdrs
, 3 * BYTES_PER_ZDR_UNIT
);
93 if (!zdr_u_int (zdrs
, &objp
->prog
))
95 if (!zdr_u_int (zdrs
, &objp
->vers
))
97 if (!zdr_u_int (zdrs
, &objp
->proc
))
101 objp
->prog
= IZDR_GET_U_LONG(buf
);
102 objp
->vers
= IZDR_GET_U_LONG(buf
);
103 objp
->proc
= IZDR_GET_U_LONG(buf
);
105 if (!zdr_bytes (zdrs
, (char **)&objp
->args
.args_val
, (u_int
*) &objp
->args
.args_len
, ~0))
110 if (!zdr_u_int (zdrs
, &objp
->prog
))
112 if (!zdr_u_int (zdrs
, &objp
->vers
))
114 if (!zdr_u_int (zdrs
, &objp
->proc
))
116 if (!zdr_bytes (zdrs
, (char **)&objp
->args
.args_val
, (u_int
*) &objp
->args
.args_len
, ~0))
122 zdr_pmap2_call_result (ZDR
*zdrs
, pmap2_call_result
*objp
)
124 register int32_t *buf
;
127 if (!zdr_u_int (zdrs
, &objp
->port
))
129 if (!zdr_bytes (zdrs
, (char **)&objp
->res
.res_val
, (u_int
*) &objp
->res
.res_len
, ~0))
135 zdr_pmap2_mapping_list (ZDR
*zdrs
, pmap2_mapping_list
*objp
)
137 register int32_t *buf
;
140 if (!zdr_pmap2_mapping (zdrs
, &objp
->map
))
142 if (!zdr_pointer (zdrs
, (char **)&objp
->next
, sizeof (pmap2_mapping_list
), (zdrproc_t
) zdr_pmap2_mapping_list
))
148 zdr_pmap2_dump_result (ZDR
*zdrs
, pmap2_dump_result
*objp
)
150 register int32_t *buf
;
153 if (!zdr_pointer (zdrs
, (char **)&objp
->list
, sizeof (pmap2_mapping_list
), (zdrproc_t
) zdr_pmap2_mapping_list
))
159 zdr_pmap3_string_result (ZDR
*zdrs
, pmap3_string_result
*objp
)
161 register int32_t *buf
;
164 if (!zdr_string (zdrs
, &objp
->addr
, ~0))
170 zdr_pmap3_mapping (ZDR
*zdrs
, pmap3_mapping
*objp
)
172 register int32_t *buf
;
175 if (!zdr_u_int (zdrs
, &objp
->prog
))
177 if (!zdr_u_int (zdrs
, &objp
->vers
))
179 if (!zdr_string (zdrs
, &objp
->netid
, ~0))
181 if (!zdr_string (zdrs
, &objp
->addr
, ~0))
183 if (!zdr_string (zdrs
, &objp
->owner
, ~0))
189 zdr_pmap3_mapping_list (ZDR
*zdrs
, pmap3_mapping_list
*objp
)
191 register int32_t *buf
;
194 if (!zdr_pmap3_mapping (zdrs
, &objp
->map
))
196 if (!zdr_pointer (zdrs
, (char **)&objp
->next
, sizeof (pmap3_mapping_list
), (zdrproc_t
) zdr_pmap3_mapping_list
))
202 zdr_pmap3_dump_result (ZDR
*zdrs
, pmap3_dump_result
*objp
)
204 register int32_t *buf
;
207 if (!zdr_pointer (zdrs
, (char **)&objp
->list
, sizeof (pmap3_mapping_list
), (zdrproc_t
) zdr_pmap3_mapping_list
))
213 zdr_pmap3_call_args (ZDR
*zdrs
, pmap3_call_args
*objp
)
215 register int32_t *buf
;
219 if (zdrs
->x_op
== ZDR_ENCODE
) {
220 buf
= ZDR_INLINE (zdrs
, 3 * BYTES_PER_ZDR_UNIT
);
222 if (!zdr_u_int (zdrs
, &objp
->prog
))
224 if (!zdr_u_int (zdrs
, &objp
->vers
))
226 if (!zdr_u_int (zdrs
, &objp
->proc
))
230 IZDR_PUT_U_LONG(buf
, objp
->prog
);
231 IZDR_PUT_U_LONG(buf
, objp
->vers
);
232 IZDR_PUT_U_LONG(buf
, objp
->proc
);
234 if (!zdr_bytes (zdrs
, (char **)&objp
->args
.args_val
, (u_int
*) &objp
->args
.args_len
, ~0))
237 } else if (zdrs
->x_op
== ZDR_DECODE
) {
238 buf
= ZDR_INLINE (zdrs
, 3 * BYTES_PER_ZDR_UNIT
);
240 if (!zdr_u_int (zdrs
, &objp
->prog
))
242 if (!zdr_u_int (zdrs
, &objp
->vers
))
244 if (!zdr_u_int (zdrs
, &objp
->proc
))
248 objp
->prog
= IZDR_GET_U_LONG(buf
);
249 objp
->vers
= IZDR_GET_U_LONG(buf
);
250 objp
->proc
= IZDR_GET_U_LONG(buf
);
252 if (!zdr_bytes (zdrs
, (char **)&objp
->args
.args_val
, (u_int
*) &objp
->args
.args_len
, ~0))
257 if (!zdr_u_int (zdrs
, &objp
->prog
))
259 if (!zdr_u_int (zdrs
, &objp
->vers
))
261 if (!zdr_u_int (zdrs
, &objp
->proc
))
263 if (!zdr_bytes (zdrs
, (char **)&objp
->args
.args_val
, (u_int
*) &objp
->args
.args_len
, ~0))
269 zdr_pmap3_call_result (ZDR
*zdrs
, pmap3_call_result
*objp
)
271 register int32_t *buf
;
274 if (!zdr_u_int (zdrs
, &objp
->port
))
276 if (!zdr_bytes (zdrs
, (char **)&objp
->res
.res_val
, (u_int
*) &objp
->res
.res_len
, ~0))
282 zdr_pmap3_netbuf (ZDR
*zdrs
, pmap3_netbuf
*objp
)
284 register int32_t *buf
;
287 if (!zdr_u_int (zdrs
, &objp
->maxlen
))
289 if (!zdr_bytes (zdrs
, (char **)&objp
->buf
.buf_val
, (u_int
*) &objp
->buf
.buf_len
, ~0))