Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
145 | f9daq | 1 | /* |
2 | * Please do not edit this file. |
||
3 | * It was generated using rpcgen. |
||
4 | */ |
||
5 | |||
6 | #include "vxi11.h" |
||
7 | |||
8 | bool_t |
||
9 | xdr_Device_Link (XDR *xdrs, Device_Link *objp) |
||
10 | { |
||
11 | register int32_t *buf; |
||
12 | |||
13 | if (!xdr_long (xdrs, objp)) |
||
14 | return FALSE; |
||
15 | return TRUE; |
||
16 | } |
||
17 | |||
18 | bool_t |
||
19 | xdr_Device_AddrFamily (XDR *xdrs, Device_AddrFamily *objp) |
||
20 | { |
||
21 | register int32_t *buf; |
||
22 | |||
23 | if (!xdr_enum (xdrs, (enum_t *) objp)) |
||
24 | return FALSE; |
||
25 | return TRUE; |
||
26 | } |
||
27 | |||
28 | bool_t |
||
29 | xdr_Device_Flags (XDR *xdrs, Device_Flags *objp) |
||
30 | { |
||
31 | register int32_t *buf; |
||
32 | |||
33 | if (!xdr_long (xdrs, objp)) |
||
34 | return FALSE; |
||
35 | return TRUE; |
||
36 | } |
||
37 | |||
38 | bool_t |
||
39 | xdr_Device_ErrorCode (XDR *xdrs, Device_ErrorCode *objp) |
||
40 | { |
||
41 | register int32_t *buf; |
||
42 | |||
43 | if (!xdr_long (xdrs, objp)) |
||
44 | return FALSE; |
||
45 | return TRUE; |
||
46 | } |
||
47 | |||
48 | bool_t |
||
49 | xdr_Device_Error (XDR *xdrs, Device_Error *objp) |
||
50 | { |
||
51 | register int32_t *buf; |
||
52 | |||
53 | if (!xdr_Device_ErrorCode (xdrs, &objp->error)) |
||
54 | return FALSE; |
||
55 | return TRUE; |
||
56 | } |
||
57 | |||
58 | bool_t |
||
59 | xdr_Create_LinkParms (XDR *xdrs, Create_LinkParms *objp) |
||
60 | { |
||
61 | register int32_t *buf; |
||
62 | |||
63 | |||
64 | if (xdrs->x_op == XDR_ENCODE) { |
||
65 | buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT); |
||
66 | if (buf == NULL) { |
||
67 | if (!xdr_long (xdrs, &objp->clientId)) |
||
68 | return FALSE; |
||
69 | if (!xdr_bool (xdrs, &objp->lockDevice)) |
||
70 | return FALSE; |
||
71 | if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
||
72 | return FALSE; |
||
73 | |||
74 | } else { |
||
75 | IXDR_PUT_LONG(buf, objp->clientId); |
||
76 | IXDR_PUT_BOOL(buf, objp->lockDevice); |
||
77 | IXDR_PUT_U_LONG(buf, objp->lock_timeout); |
||
78 | } |
||
79 | if (!xdr_string (xdrs, &objp->device, ~0)) |
||
80 | return FALSE; |
||
81 | return TRUE; |
||
82 | } else if (xdrs->x_op == XDR_DECODE) { |
||
83 | buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT); |
||
84 | if (buf == NULL) { |
||
85 | if (!xdr_long (xdrs, &objp->clientId)) |
||
86 | return FALSE; |
||
87 | if (!xdr_bool (xdrs, &objp->lockDevice)) |
||
88 | return FALSE; |
||
89 | if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
||
90 | return FALSE; |
||
91 | |||
92 | } else { |
||
93 | objp->clientId = IXDR_GET_LONG(buf); |
||
94 | objp->lockDevice = IXDR_GET_BOOL(buf); |
||
95 | objp->lock_timeout = IXDR_GET_U_LONG(buf); |
||
96 | } |
||
97 | if (!xdr_string (xdrs, &objp->device, ~0)) |
||
98 | return FALSE; |
||
99 | return TRUE; |
||
100 | } |
||
101 | |||
102 | if (!xdr_long (xdrs, &objp->clientId)) |
||
103 | return FALSE; |
||
104 | if (!xdr_bool (xdrs, &objp->lockDevice)) |
||
105 | return FALSE; |
||
106 | if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
||
107 | return FALSE; |
||
108 | if (!xdr_string (xdrs, &objp->device, ~0)) |
||
109 | return FALSE; |
||
110 | return TRUE; |
||
111 | } |
||
112 | |||
113 | bool_t |
||
114 | xdr_Create_LinkResp (XDR *xdrs, Create_LinkResp *objp) |
||
115 | { |
||
116 | register int32_t *buf; |
||
117 | |||
118 | if (!xdr_Device_ErrorCode (xdrs, &objp->error)) |
||
119 | return FALSE; |
||
120 | if (!xdr_Device_Link (xdrs, &objp->lid)) |
||
121 | return FALSE; |
||
122 | if (!xdr_u_short (xdrs, &objp->abortPort)) |
||
123 | return FALSE; |
||
124 | if (!xdr_u_long (xdrs, &objp->maxRecvSize)) |
||
125 | return FALSE; |
||
126 | return TRUE; |
||
127 | } |
||
128 | |||
129 | bool_t |
||
130 | xdr_Device_WriteParms (XDR *xdrs, Device_WriteParms *objp) |
||
131 | { |
||
132 | register int32_t *buf; |
||
133 | |||
134 | if (!xdr_Device_Link (xdrs, &objp->lid)) |
||
135 | return FALSE; |
||
136 | if (!xdr_u_long (xdrs, &objp->io_timeout)) |
||
137 | return FALSE; |
||
138 | if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
||
139 | return FALSE; |
||
140 | if (!xdr_Device_Flags (xdrs, &objp->flags)) |
||
141 | return FALSE; |
||
142 | if (!xdr_bytes (xdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, ~0)) |
||
143 | return FALSE; |
||
144 | return TRUE; |
||
145 | } |
||
146 | |||
147 | bool_t |
||
148 | xdr_Device_WriteResp (XDR *xdrs, Device_WriteResp *objp) |
||
149 | { |
||
150 | register int32_t *buf; |
||
151 | |||
152 | if (!xdr_Device_ErrorCode (xdrs, &objp->error)) |
||
153 | return FALSE; |
||
154 | if (!xdr_u_long (xdrs, &objp->size)) |
||
155 | return FALSE; |
||
156 | return TRUE; |
||
157 | } |
||
158 | |||
159 | bool_t |
||
160 | xdr_Device_ReadParms (XDR *xdrs, Device_ReadParms *objp) |
||
161 | { |
||
162 | register int32_t *buf; |
||
163 | |||
164 | |||
165 | if (xdrs->x_op == XDR_ENCODE) { |
||
166 | if (!xdr_Device_Link (xdrs, &objp->lid)) |
||
167 | return FALSE; |
||
168 | buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT); |
||
169 | if (buf == NULL) { |
||
170 | if (!xdr_u_long (xdrs, &objp->requestSize)) |
||
171 | return FALSE; |
||
172 | if (!xdr_u_long (xdrs, &objp->io_timeout)) |
||
173 | return FALSE; |
||
174 | if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
||
175 | return FALSE; |
||
176 | |||
177 | } else { |
||
178 | IXDR_PUT_U_LONG(buf, objp->requestSize); |
||
179 | IXDR_PUT_U_LONG(buf, objp->io_timeout); |
||
180 | IXDR_PUT_U_LONG(buf, objp->lock_timeout); |
||
181 | } |
||
182 | if (!xdr_Device_Flags (xdrs, &objp->flags)) |
||
183 | return FALSE; |
||
184 | if (!xdr_char (xdrs, &objp->termChar)) |
||
185 | return FALSE; |
||
186 | return TRUE; |
||
187 | } else if (xdrs->x_op == XDR_DECODE) { |
||
188 | if (!xdr_Device_Link (xdrs, &objp->lid)) |
||
189 | return FALSE; |
||
190 | buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT); |
||
191 | if (buf == NULL) { |
||
192 | if (!xdr_u_long (xdrs, &objp->requestSize)) |
||
193 | return FALSE; |
||
194 | if (!xdr_u_long (xdrs, &objp->io_timeout)) |
||
195 | return FALSE; |
||
196 | if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
||
197 | return FALSE; |
||
198 | |||
199 | } else { |
||
200 | objp->requestSize = IXDR_GET_U_LONG(buf); |
||
201 | objp->io_timeout = IXDR_GET_U_LONG(buf); |
||
202 | objp->lock_timeout = IXDR_GET_U_LONG(buf); |
||
203 | } |
||
204 | if (!xdr_Device_Flags (xdrs, &objp->flags)) |
||
205 | return FALSE; |
||
206 | if (!xdr_char (xdrs, &objp->termChar)) |
||
207 | return FALSE; |
||
208 | return TRUE; |
||
209 | } |
||
210 | |||
211 | if (!xdr_Device_Link (xdrs, &objp->lid)) |
||
212 | return FALSE; |
||
213 | if (!xdr_u_long (xdrs, &objp->requestSize)) |
||
214 | return FALSE; |
||
215 | if (!xdr_u_long (xdrs, &objp->io_timeout)) |
||
216 | return FALSE; |
||
217 | if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
||
218 | return FALSE; |
||
219 | if (!xdr_Device_Flags (xdrs, &objp->flags)) |
||
220 | return FALSE; |
||
221 | if (!xdr_char (xdrs, &objp->termChar)) |
||
222 | return FALSE; |
||
223 | return TRUE; |
||
224 | } |
||
225 | |||
226 | bool_t |
||
227 | xdr_Device_ReadResp (XDR *xdrs, Device_ReadResp *objp) |
||
228 | { |
||
229 | register int32_t *buf; |
||
230 | |||
231 | if (!xdr_Device_ErrorCode (xdrs, &objp->error)) |
||
232 | return FALSE; |
||
233 | if (!xdr_long (xdrs, &objp->reason)) |
||
234 | return FALSE; |
||
235 | if (!xdr_bytes (xdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, ~0)) |
||
236 | return FALSE; |
||
237 | return TRUE; |
||
238 | } |
||
239 | |||
240 | bool_t |
||
241 | xdr_Device_ReadStbResp (XDR *xdrs, Device_ReadStbResp *objp) |
||
242 | { |
||
243 | register int32_t *buf; |
||
244 | |||
245 | if (!xdr_Device_ErrorCode (xdrs, &objp->error)) |
||
246 | return FALSE; |
||
247 | if (!xdr_u_char (xdrs, &objp->stb)) |
||
248 | return FALSE; |
||
249 | return TRUE; |
||
250 | } |
||
251 | |||
252 | bool_t |
||
253 | xdr_Device_GenericParms (XDR *xdrs, Device_GenericParms *objp) |
||
254 | { |
||
255 | register int32_t *buf; |
||
256 | |||
257 | if (!xdr_Device_Link (xdrs, &objp->lid)) |
||
258 | return FALSE; |
||
259 | if (!xdr_Device_Flags (xdrs, &objp->flags)) |
||
260 | return FALSE; |
||
261 | if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
||
262 | return FALSE; |
||
263 | if (!xdr_u_long (xdrs, &objp->io_timeout)) |
||
264 | return FALSE; |
||
265 | return TRUE; |
||
266 | } |
||
267 | |||
268 | bool_t |
||
269 | xdr_Device_RemoteFunc (XDR *xdrs, Device_RemoteFunc *objp) |
||
270 | { |
||
271 | register int32_t *buf; |
||
272 | |||
273 | |||
274 | if (xdrs->x_op == XDR_ENCODE) { |
||
275 | buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT); |
||
276 | if (buf == NULL) { |
||
277 | if (!xdr_u_long (xdrs, &objp->hostAddr)) |
||
278 | return FALSE; |
||
279 | if (!xdr_u_long (xdrs, &objp->hostPort)) |
||
280 | return FALSE; |
||
281 | if (!xdr_u_long (xdrs, &objp->progNum)) |
||
282 | return FALSE; |
||
283 | if (!xdr_u_long (xdrs, &objp->progVers)) |
||
284 | return FALSE; |
||
285 | |||
286 | } else { |
||
287 | IXDR_PUT_U_LONG(buf, objp->hostAddr); |
||
288 | IXDR_PUT_U_LONG(buf, objp->hostPort); |
||
289 | IXDR_PUT_U_LONG(buf, objp->progNum); |
||
290 | IXDR_PUT_U_LONG(buf, objp->progVers); |
||
291 | } |
||
292 | if (!xdr_Device_AddrFamily (xdrs, &objp->progFamily)) |
||
293 | return FALSE; |
||
294 | return TRUE; |
||
295 | } else if (xdrs->x_op == XDR_DECODE) { |
||
296 | buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT); |
||
297 | if (buf == NULL) { |
||
298 | if (!xdr_u_long (xdrs, &objp->hostAddr)) |
||
299 | return FALSE; |
||
300 | if (!xdr_u_long (xdrs, &objp->hostPort)) |
||
301 | return FALSE; |
||
302 | if (!xdr_u_long (xdrs, &objp->progNum)) |
||
303 | return FALSE; |
||
304 | if (!xdr_u_long (xdrs, &objp->progVers)) |
||
305 | return FALSE; |
||
306 | |||
307 | } else { |
||
308 | objp->hostAddr = IXDR_GET_U_LONG(buf); |
||
309 | objp->hostPort = IXDR_GET_U_LONG(buf); |
||
310 | objp->progNum = IXDR_GET_U_LONG(buf); |
||
311 | objp->progVers = IXDR_GET_U_LONG(buf); |
||
312 | } |
||
313 | if (!xdr_Device_AddrFamily (xdrs, &objp->progFamily)) |
||
314 | return FALSE; |
||
315 | return TRUE; |
||
316 | } |
||
317 | |||
318 | if (!xdr_u_long (xdrs, &objp->hostAddr)) |
||
319 | return FALSE; |
||
320 | if (!xdr_u_long (xdrs, &objp->hostPort)) |
||
321 | return FALSE; |
||
322 | if (!xdr_u_long (xdrs, &objp->progNum)) |
||
323 | return FALSE; |
||
324 | if (!xdr_u_long (xdrs, &objp->progVers)) |
||
325 | return FALSE; |
||
326 | if (!xdr_Device_AddrFamily (xdrs, &objp->progFamily)) |
||
327 | return FALSE; |
||
328 | return TRUE; |
||
329 | } |
||
330 | |||
331 | bool_t |
||
332 | xdr_Device_EnableSrqParms (XDR *xdrs, Device_EnableSrqParms *objp) |
||
333 | { |
||
334 | register int32_t *buf; |
||
335 | |||
336 | if (!xdr_Device_Link (xdrs, &objp->lid)) |
||
337 | return FALSE; |
||
338 | if (!xdr_bool (xdrs, &objp->enable)) |
||
339 | return FALSE; |
||
340 | if (!xdr_bytes (xdrs, (char **)&objp->handle.handle_val, (u_int *) &objp->handle.handle_len, 40)) |
||
341 | return FALSE; |
||
342 | return TRUE; |
||
343 | } |
||
344 | |||
345 | bool_t |
||
346 | xdr_Device_LockParms (XDR *xdrs, Device_LockParms *objp) |
||
347 | { |
||
348 | register int32_t *buf; |
||
349 | |||
350 | if (!xdr_Device_Link (xdrs, &objp->lid)) |
||
351 | return FALSE; |
||
352 | if (!xdr_Device_Flags (xdrs, &objp->flags)) |
||
353 | return FALSE; |
||
354 | if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
||
355 | return FALSE; |
||
356 | return TRUE; |
||
357 | } |
||
358 | |||
359 | bool_t |
||
360 | xdr_Device_DocmdParms (XDR *xdrs, Device_DocmdParms *objp) |
||
361 | { |
||
362 | register int32_t *buf; |
||
363 | |||
364 | |||
365 | if (xdrs->x_op == XDR_ENCODE) { |
||
366 | if (!xdr_Device_Link (xdrs, &objp->lid)) |
||
367 | return FALSE; |
||
368 | if (!xdr_Device_Flags (xdrs, &objp->flags)) |
||
369 | return FALSE; |
||
370 | buf = XDR_INLINE (xdrs, 5 * BYTES_PER_XDR_UNIT); |
||
371 | if (buf == NULL) { |
||
372 | if (!xdr_u_long (xdrs, &objp->io_timeout)) |
||
373 | return FALSE; |
||
374 | if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
||
375 | return FALSE; |
||
376 | if (!xdr_long (xdrs, &objp->cmd)) |
||
377 | return FALSE; |
||
378 | if (!xdr_bool (xdrs, &objp->network_order)) |
||
379 | return FALSE; |
||
380 | if (!xdr_long (xdrs, &objp->datasize)) |
||
381 | return FALSE; |
||
382 | |||
383 | } else { |
||
384 | IXDR_PUT_U_LONG(buf, objp->io_timeout); |
||
385 | IXDR_PUT_U_LONG(buf, objp->lock_timeout); |
||
386 | IXDR_PUT_LONG(buf, objp->cmd); |
||
387 | IXDR_PUT_BOOL(buf, objp->network_order); |
||
388 | IXDR_PUT_LONG(buf, objp->datasize); |
||
389 | } |
||
390 | if (!xdr_bytes (xdrs, (char **)&objp->data_in.data_in_val, (u_int *) &objp->data_in.data_in_len, ~0)) |
||
391 | return FALSE; |
||
392 | return TRUE; |
||
393 | } else if (xdrs->x_op == XDR_DECODE) { |
||
394 | if (!xdr_Device_Link (xdrs, &objp->lid)) |
||
395 | return FALSE; |
||
396 | if (!xdr_Device_Flags (xdrs, &objp->flags)) |
||
397 | return FALSE; |
||
398 | buf = XDR_INLINE (xdrs, 5 * BYTES_PER_XDR_UNIT); |
||
399 | if (buf == NULL) { |
||
400 | if (!xdr_u_long (xdrs, &objp->io_timeout)) |
||
401 | return FALSE; |
||
402 | if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
||
403 | return FALSE; |
||
404 | if (!xdr_long (xdrs, &objp->cmd)) |
||
405 | return FALSE; |
||
406 | if (!xdr_bool (xdrs, &objp->network_order)) |
||
407 | return FALSE; |
||
408 | if (!xdr_long (xdrs, &objp->datasize)) |
||
409 | return FALSE; |
||
410 | |||
411 | } else { |
||
412 | objp->io_timeout = IXDR_GET_U_LONG(buf); |
||
413 | objp->lock_timeout = IXDR_GET_U_LONG(buf); |
||
414 | objp->cmd = IXDR_GET_LONG(buf); |
||
415 | objp->network_order = IXDR_GET_BOOL(buf); |
||
416 | objp->datasize = IXDR_GET_LONG(buf); |
||
417 | } |
||
418 | if (!xdr_bytes (xdrs, (char **)&objp->data_in.data_in_val, (u_int *) &objp->data_in.data_in_len, ~0)) |
||
419 | return FALSE; |
||
420 | return TRUE; |
||
421 | } |
||
422 | |||
423 | if (!xdr_Device_Link (xdrs, &objp->lid)) |
||
424 | return FALSE; |
||
425 | if (!xdr_Device_Flags (xdrs, &objp->flags)) |
||
426 | return FALSE; |
||
427 | if (!xdr_u_long (xdrs, &objp->io_timeout)) |
||
428 | return FALSE; |
||
429 | if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
||
430 | return FALSE; |
||
431 | if (!xdr_long (xdrs, &objp->cmd)) |
||
432 | return FALSE; |
||
433 | if (!xdr_bool (xdrs, &objp->network_order)) |
||
434 | return FALSE; |
||
435 | if (!xdr_long (xdrs, &objp->datasize)) |
||
436 | return FALSE; |
||
437 | if (!xdr_bytes (xdrs, (char **)&objp->data_in.data_in_val, (u_int *) &objp->data_in.data_in_len, ~0)) |
||
438 | return FALSE; |
||
439 | return TRUE; |
||
440 | } |
||
441 | |||
442 | bool_t |
||
443 | xdr_Device_DocmdResp (XDR *xdrs, Device_DocmdResp *objp) |
||
444 | { |
||
445 | register int32_t *buf; |
||
446 | |||
447 | if (!xdr_Device_ErrorCode (xdrs, &objp->error)) |
||
448 | return FALSE; |
||
449 | if (!xdr_bytes (xdrs, (char **)&objp->data_out.data_out_val, (u_int *) &objp->data_out.data_out_len, ~0)) |
||
450 | return FALSE; |
||
451 | return TRUE; |
||
452 | } |
||
453 | |||
454 | bool_t |
||
455 | xdr_Device_SrqParms (XDR *xdrs, Device_SrqParms *objp) |
||
456 | { |
||
457 | register int32_t *buf; |
||
458 | |||
459 | if (!xdr_bytes (xdrs, (char **)&objp->handle.handle_val, (u_int *) &objp->handle.handle_len, ~0)) |
||
460 | return FALSE; |
||
461 | return TRUE; |
||
462 | } |