2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #include "guestfs_protocol.h"
9 xdr_str (XDR *xdrs, str *objp)
11 register int32_t *buf;
13 if (!xdr_string (xdrs, objp, ~0))
19 xdr_guestfs_lvm_int_pv (XDR *xdrs, guestfs_lvm_int_pv *objp)
21 register int32_t *buf;
24 if (!xdr_string (xdrs, &objp->pv_name, ~0))
26 if (!xdr_opaque (xdrs, objp->pv_uuid, 32))
28 if (!xdr_string (xdrs, &objp->pv_fmt, ~0))
30 if (!xdr_quad_t (xdrs, &objp->pv_size))
32 if (!xdr_quad_t (xdrs, &objp->dev_size))
34 if (!xdr_quad_t (xdrs, &objp->pv_free))
36 if (!xdr_quad_t (xdrs, &objp->pv_used))
38 if (!xdr_string (xdrs, &objp->pv_attr, ~0))
40 if (!xdr_quad_t (xdrs, &objp->pv_pe_count))
42 if (!xdr_quad_t (xdrs, &objp->pv_pe_alloc_count))
44 if (!xdr_string (xdrs, &objp->pv_tags, ~0))
46 if (!xdr_quad_t (xdrs, &objp->pe_start))
48 if (!xdr_quad_t (xdrs, &objp->pv_mda_count))
50 if (!xdr_quad_t (xdrs, &objp->pv_mda_free))
56 xdr_guestfs_lvm_int_pv_list (XDR *xdrs, guestfs_lvm_int_pv_list *objp)
58 register int32_t *buf;
60 if (!xdr_array (xdrs, (char **)&objp->guestfs_lvm_int_pv_list_val, (u_int *) &objp->guestfs_lvm_int_pv_list_len, ~0,
61 sizeof (guestfs_lvm_int_pv), (xdrproc_t) xdr_guestfs_lvm_int_pv))
67 xdr_guestfs_lvm_int_vg (XDR *xdrs, guestfs_lvm_int_vg *objp)
69 register int32_t *buf;
72 if (!xdr_string (xdrs, &objp->vg_name, ~0))
74 if (!xdr_opaque (xdrs, objp->vg_uuid, 32))
76 if (!xdr_string (xdrs, &objp->vg_fmt, ~0))
78 if (!xdr_string (xdrs, &objp->vg_attr, ~0))
80 if (!xdr_quad_t (xdrs, &objp->vg_size))
82 if (!xdr_quad_t (xdrs, &objp->vg_free))
84 if (!xdr_string (xdrs, &objp->vg_sysid, ~0))
86 if (!xdr_quad_t (xdrs, &objp->vg_extent_size))
88 if (!xdr_quad_t (xdrs, &objp->vg_extent_count))
90 if (!xdr_quad_t (xdrs, &objp->vg_free_count))
92 if (!xdr_quad_t (xdrs, &objp->max_lv))
94 if (!xdr_quad_t (xdrs, &objp->max_pv))
96 if (!xdr_quad_t (xdrs, &objp->pv_count))
98 if (!xdr_quad_t (xdrs, &objp->lv_count))
100 if (!xdr_quad_t (xdrs, &objp->snap_count))
102 if (!xdr_quad_t (xdrs, &objp->vg_seqno))
104 if (!xdr_string (xdrs, &objp->vg_tags, ~0))
106 if (!xdr_quad_t (xdrs, &objp->vg_mda_count))
108 if (!xdr_quad_t (xdrs, &objp->vg_mda_free))
114 xdr_guestfs_lvm_int_vg_list (XDR *xdrs, guestfs_lvm_int_vg_list *objp)
116 register int32_t *buf;
118 if (!xdr_array (xdrs, (char **)&objp->guestfs_lvm_int_vg_list_val, (u_int *) &objp->guestfs_lvm_int_vg_list_len, ~0,
119 sizeof (guestfs_lvm_int_vg), (xdrproc_t) xdr_guestfs_lvm_int_vg))
125 xdr_guestfs_lvm_int_lv (XDR *xdrs, guestfs_lvm_int_lv *objp)
127 register int32_t *buf;
130 if (!xdr_string (xdrs, &objp->lv_name, ~0))
132 if (!xdr_opaque (xdrs, objp->lv_uuid, 32))
134 if (!xdr_string (xdrs, &objp->lv_attr, ~0))
136 if (!xdr_quad_t (xdrs, &objp->lv_major))
138 if (!xdr_quad_t (xdrs, &objp->lv_minor))
140 if (!xdr_quad_t (xdrs, &objp->lv_kernel_major))
142 if (!xdr_quad_t (xdrs, &objp->lv_kernel_minor))
144 if (!xdr_quad_t (xdrs, &objp->lv_size))
146 if (!xdr_quad_t (xdrs, &objp->seg_count))
148 if (!xdr_string (xdrs, &objp->origin, ~0))
150 if (!xdr_float (xdrs, &objp->snap_percent))
152 if (!xdr_float (xdrs, &objp->copy_percent))
154 if (!xdr_string (xdrs, &objp->move_pv, ~0))
156 if (!xdr_string (xdrs, &objp->lv_tags, ~0))
158 if (!xdr_string (xdrs, &objp->mirror_log, ~0))
160 if (!xdr_string (xdrs, &objp->modules, ~0))
166 xdr_guestfs_lvm_int_lv_list (XDR *xdrs, guestfs_lvm_int_lv_list *objp)
168 register int32_t *buf;
170 if (!xdr_array (xdrs, (char **)&objp->guestfs_lvm_int_lv_list_val, (u_int *) &objp->guestfs_lvm_int_lv_list_len, ~0,
171 sizeof (guestfs_lvm_int_lv), (xdrproc_t) xdr_guestfs_lvm_int_lv))
177 xdr_guestfs_int_stat (XDR *xdrs, guestfs_int_stat *objp)
179 register int32_t *buf;
181 if (!xdr_quad_t (xdrs, &objp->dev))
183 if (!xdr_quad_t (xdrs, &objp->ino))
185 if (!xdr_quad_t (xdrs, &objp->mode))
187 if (!xdr_quad_t (xdrs, &objp->nlink))
189 if (!xdr_quad_t (xdrs, &objp->uid))
191 if (!xdr_quad_t (xdrs, &objp->gid))
193 if (!xdr_quad_t (xdrs, &objp->rdev))
195 if (!xdr_quad_t (xdrs, &objp->size))
197 if (!xdr_quad_t (xdrs, &objp->blksize))
199 if (!xdr_quad_t (xdrs, &objp->blocks))
201 if (!xdr_quad_t (xdrs, &objp->atime))
203 if (!xdr_quad_t (xdrs, &objp->mtime))
205 if (!xdr_quad_t (xdrs, &objp->ctime))
211 xdr_guestfs_int_statvfs (XDR *xdrs, guestfs_int_statvfs *objp)
213 register int32_t *buf;
215 if (!xdr_quad_t (xdrs, &objp->bsize))
217 if (!xdr_quad_t (xdrs, &objp->frsize))
219 if (!xdr_quad_t (xdrs, &objp->blocks))
221 if (!xdr_quad_t (xdrs, &objp->bfree))
223 if (!xdr_quad_t (xdrs, &objp->bavail))
225 if (!xdr_quad_t (xdrs, &objp->files))
227 if (!xdr_quad_t (xdrs, &objp->ffree))
229 if (!xdr_quad_t (xdrs, &objp->favail))
231 if (!xdr_quad_t (xdrs, &objp->fsid))
233 if (!xdr_quad_t (xdrs, &objp->flag))
235 if (!xdr_quad_t (xdrs, &objp->namemax))
241 xdr_guestfs_int_dirent (XDR *xdrs, guestfs_int_dirent *objp)
243 register int32_t *buf;
245 if (!xdr_quad_t (xdrs, &objp->ino))
247 if (!xdr_char (xdrs, &objp->ftyp))
249 if (!xdr_string (xdrs, &objp->name, ~0))
255 xdr_guestfs_int_dirent_list (XDR *xdrs, guestfs_int_dirent_list *objp)
257 register int32_t *buf;
259 if (!xdr_array (xdrs, (char **)&objp->guestfs_int_dirent_list_val, (u_int *) &objp->guestfs_int_dirent_list_len, ~0,
260 sizeof (guestfs_int_dirent), (xdrproc_t) xdr_guestfs_int_dirent))
266 xdr_guestfs_mount_args (XDR *xdrs, guestfs_mount_args *objp)
268 register int32_t *buf;
270 if (!xdr_string (xdrs, &objp->device, ~0))
272 if (!xdr_string (xdrs, &objp->mountpoint, ~0))
278 xdr_guestfs_touch_args (XDR *xdrs, guestfs_touch_args *objp)
280 register int32_t *buf;
282 if (!xdr_string (xdrs, &objp->path, ~0))
288 xdr_guestfs_cat_args (XDR *xdrs, guestfs_cat_args *objp)
290 register int32_t *buf;
292 if (!xdr_string (xdrs, &objp->path, ~0))
298 xdr_guestfs_cat_ret (XDR *xdrs, guestfs_cat_ret *objp)
300 register int32_t *buf;
302 if (!xdr_string (xdrs, &objp->content, ~0))
308 xdr_guestfs_ll_args (XDR *xdrs, guestfs_ll_args *objp)
310 register int32_t *buf;
312 if (!xdr_string (xdrs, &objp->directory, ~0))
318 xdr_guestfs_ll_ret (XDR *xdrs, guestfs_ll_ret *objp)
320 register int32_t *buf;
322 if (!xdr_string (xdrs, &objp->listing, ~0))
328 xdr_guestfs_ls_args (XDR *xdrs, guestfs_ls_args *objp)
330 register int32_t *buf;
332 if (!xdr_string (xdrs, &objp->directory, ~0))
338 xdr_guestfs_ls_ret (XDR *xdrs, guestfs_ls_ret *objp)
340 register int32_t *buf;
342 if (!xdr_array (xdrs, (char **)&objp->listing.listing_val, (u_int *) &objp->listing.listing_len, ~0,
343 sizeof (str), (xdrproc_t) xdr_str))
349 xdr_guestfs_list_devices_ret (XDR *xdrs, guestfs_list_devices_ret *objp)
351 register int32_t *buf;
353 if (!xdr_array (xdrs, (char **)&objp->devices.devices_val, (u_int *) &objp->devices.devices_len, ~0,
354 sizeof (str), (xdrproc_t) xdr_str))
360 xdr_guestfs_list_partitions_ret (XDR *xdrs, guestfs_list_partitions_ret *objp)
362 register int32_t *buf;
364 if (!xdr_array (xdrs, (char **)&objp->partitions.partitions_val, (u_int *) &objp->partitions.partitions_len, ~0,
365 sizeof (str), (xdrproc_t) xdr_str))
371 xdr_guestfs_pvs_ret (XDR *xdrs, guestfs_pvs_ret *objp)
373 register int32_t *buf;
375 if (!xdr_array (xdrs, (char **)&objp->physvols.physvols_val, (u_int *) &objp->physvols.physvols_len, ~0,
376 sizeof (str), (xdrproc_t) xdr_str))
382 xdr_guestfs_vgs_ret (XDR *xdrs, guestfs_vgs_ret *objp)
384 register int32_t *buf;
386 if (!xdr_array (xdrs, (char **)&objp->volgroups.volgroups_val, (u_int *) &objp->volgroups.volgroups_len, ~0,
387 sizeof (str), (xdrproc_t) xdr_str))
393 xdr_guestfs_lvs_ret (XDR *xdrs, guestfs_lvs_ret *objp)
395 register int32_t *buf;
397 if (!xdr_array (xdrs, (char **)&objp->logvols.logvols_val, (u_int *) &objp->logvols.logvols_len, ~0,
398 sizeof (str), (xdrproc_t) xdr_str))
404 xdr_guestfs_pvs_full_ret (XDR *xdrs, guestfs_pvs_full_ret *objp)
406 register int32_t *buf;
408 if (!xdr_guestfs_lvm_int_pv_list (xdrs, &objp->physvols))
414 xdr_guestfs_vgs_full_ret (XDR *xdrs, guestfs_vgs_full_ret *objp)
416 register int32_t *buf;
418 if (!xdr_guestfs_lvm_int_vg_list (xdrs, &objp->volgroups))
424 xdr_guestfs_lvs_full_ret (XDR *xdrs, guestfs_lvs_full_ret *objp)
426 register int32_t *buf;
428 if (!xdr_guestfs_lvm_int_lv_list (xdrs, &objp->logvols))
434 xdr_guestfs_read_lines_args (XDR *xdrs, guestfs_read_lines_args *objp)
436 register int32_t *buf;
438 if (!xdr_string (xdrs, &objp->path, ~0))
444 xdr_guestfs_read_lines_ret (XDR *xdrs, guestfs_read_lines_ret *objp)
446 register int32_t *buf;
448 if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
449 sizeof (str), (xdrproc_t) xdr_str))
455 xdr_guestfs_aug_init_args (XDR *xdrs, guestfs_aug_init_args *objp)
457 register int32_t *buf;
459 if (!xdr_string (xdrs, &objp->root, ~0))
461 if (!xdr_int (xdrs, &objp->flags))
467 xdr_guestfs_aug_defvar_args (XDR *xdrs, guestfs_aug_defvar_args *objp)
469 register int32_t *buf;
471 if (!xdr_string (xdrs, &objp->name, ~0))
473 if (!xdr_pointer (xdrs, (char **)&objp->expr, sizeof (str), (xdrproc_t) xdr_str))
479 xdr_guestfs_aug_defvar_ret (XDR *xdrs, guestfs_aug_defvar_ret *objp)
481 register int32_t *buf;
483 if (!xdr_int (xdrs, &objp->nrnodes))
489 xdr_guestfs_aug_defnode_args (XDR *xdrs, guestfs_aug_defnode_args *objp)
491 register int32_t *buf;
493 if (!xdr_string (xdrs, &objp->name, ~0))
495 if (!xdr_string (xdrs, &objp->expr, ~0))
497 if (!xdr_string (xdrs, &objp->val, ~0))
503 xdr_guestfs_aug_defnode_ret (XDR *xdrs, guestfs_aug_defnode_ret *objp)
505 register int32_t *buf;
507 if (!xdr_int (xdrs, &objp->nrnodes))
509 if (!xdr_bool (xdrs, &objp->created))
515 xdr_guestfs_aug_get_args (XDR *xdrs, guestfs_aug_get_args *objp)
517 register int32_t *buf;
519 if (!xdr_string (xdrs, &objp->path, ~0))
525 xdr_guestfs_aug_get_ret (XDR *xdrs, guestfs_aug_get_ret *objp)
527 register int32_t *buf;
529 if (!xdr_string (xdrs, &objp->val, ~0))
535 xdr_guestfs_aug_set_args (XDR *xdrs, guestfs_aug_set_args *objp)
537 register int32_t *buf;
539 if (!xdr_string (xdrs, &objp->path, ~0))
541 if (!xdr_string (xdrs, &objp->val, ~0))
547 xdr_guestfs_aug_insert_args (XDR *xdrs, guestfs_aug_insert_args *objp)
549 register int32_t *buf;
551 if (!xdr_string (xdrs, &objp->path, ~0))
553 if (!xdr_string (xdrs, &objp->label, ~0))
555 if (!xdr_bool (xdrs, &objp->before))
561 xdr_guestfs_aug_rm_args (XDR *xdrs, guestfs_aug_rm_args *objp)
563 register int32_t *buf;
565 if (!xdr_string (xdrs, &objp->path, ~0))
571 xdr_guestfs_aug_rm_ret (XDR *xdrs, guestfs_aug_rm_ret *objp)
573 register int32_t *buf;
575 if (!xdr_int (xdrs, &objp->nrnodes))
581 xdr_guestfs_aug_mv_args (XDR *xdrs, guestfs_aug_mv_args *objp)
583 register int32_t *buf;
585 if (!xdr_string (xdrs, &objp->src, ~0))
587 if (!xdr_string (xdrs, &objp->dest, ~0))
593 xdr_guestfs_aug_match_args (XDR *xdrs, guestfs_aug_match_args *objp)
595 register int32_t *buf;
597 if (!xdr_string (xdrs, &objp->path, ~0))
603 xdr_guestfs_aug_match_ret (XDR *xdrs, guestfs_aug_match_ret *objp)
605 register int32_t *buf;
607 if (!xdr_array (xdrs, (char **)&objp->matches.matches_val, (u_int *) &objp->matches.matches_len, ~0,
608 sizeof (str), (xdrproc_t) xdr_str))
614 xdr_guestfs_aug_ls_args (XDR *xdrs, guestfs_aug_ls_args *objp)
616 register int32_t *buf;
618 if (!xdr_string (xdrs, &objp->path, ~0))
624 xdr_guestfs_aug_ls_ret (XDR *xdrs, guestfs_aug_ls_ret *objp)
626 register int32_t *buf;
628 if (!xdr_array (xdrs, (char **)&objp->matches.matches_val, (u_int *) &objp->matches.matches_len, ~0,
629 sizeof (str), (xdrproc_t) xdr_str))
635 xdr_guestfs_rm_args (XDR *xdrs, guestfs_rm_args *objp)
637 register int32_t *buf;
639 if (!xdr_string (xdrs, &objp->path, ~0))
645 xdr_guestfs_rmdir_args (XDR *xdrs, guestfs_rmdir_args *objp)
647 register int32_t *buf;
649 if (!xdr_string (xdrs, &objp->path, ~0))
655 xdr_guestfs_rm_rf_args (XDR *xdrs, guestfs_rm_rf_args *objp)
657 register int32_t *buf;
659 if (!xdr_string (xdrs, &objp->path, ~0))
665 xdr_guestfs_mkdir_args (XDR *xdrs, guestfs_mkdir_args *objp)
667 register int32_t *buf;
669 if (!xdr_string (xdrs, &objp->path, ~0))
675 xdr_guestfs_mkdir_p_args (XDR *xdrs, guestfs_mkdir_p_args *objp)
677 register int32_t *buf;
679 if (!xdr_string (xdrs, &objp->path, ~0))
685 xdr_guestfs_chmod_args (XDR *xdrs, guestfs_chmod_args *objp)
687 register int32_t *buf;
689 if (!xdr_int (xdrs, &objp->mode))
691 if (!xdr_string (xdrs, &objp->path, ~0))
697 xdr_guestfs_chown_args (XDR *xdrs, guestfs_chown_args *objp)
699 register int32_t *buf;
701 if (!xdr_int (xdrs, &objp->owner))
703 if (!xdr_int (xdrs, &objp->group))
705 if (!xdr_string (xdrs, &objp->path, ~0))
711 xdr_guestfs_exists_args (XDR *xdrs, guestfs_exists_args *objp)
713 register int32_t *buf;
715 if (!xdr_string (xdrs, &objp->path, ~0))
721 xdr_guestfs_exists_ret (XDR *xdrs, guestfs_exists_ret *objp)
723 register int32_t *buf;
725 if (!xdr_bool (xdrs, &objp->existsflag))
731 xdr_guestfs_is_file_args (XDR *xdrs, guestfs_is_file_args *objp)
733 register int32_t *buf;
735 if (!xdr_string (xdrs, &objp->path, ~0))
741 xdr_guestfs_is_file_ret (XDR *xdrs, guestfs_is_file_ret *objp)
743 register int32_t *buf;
745 if (!xdr_bool (xdrs, &objp->fileflag))
751 xdr_guestfs_is_dir_args (XDR *xdrs, guestfs_is_dir_args *objp)
753 register int32_t *buf;
755 if (!xdr_string (xdrs, &objp->path, ~0))
761 xdr_guestfs_is_dir_ret (XDR *xdrs, guestfs_is_dir_ret *objp)
763 register int32_t *buf;
765 if (!xdr_bool (xdrs, &objp->dirflag))
771 xdr_guestfs_pvcreate_args (XDR *xdrs, guestfs_pvcreate_args *objp)
773 register int32_t *buf;
775 if (!xdr_string (xdrs, &objp->device, ~0))
781 xdr_guestfs_vgcreate_args (XDR *xdrs, guestfs_vgcreate_args *objp)
783 register int32_t *buf;
785 if (!xdr_string (xdrs, &objp->volgroup, ~0))
787 if (!xdr_array (xdrs, (char **)&objp->physvols.physvols_val, (u_int *) &objp->physvols.physvols_len, ~0,
788 sizeof (str), (xdrproc_t) xdr_str))
794 xdr_guestfs_lvcreate_args (XDR *xdrs, guestfs_lvcreate_args *objp)
796 register int32_t *buf;
798 if (!xdr_string (xdrs, &objp->logvol, ~0))
800 if (!xdr_string (xdrs, &objp->volgroup, ~0))
802 if (!xdr_int (xdrs, &objp->mbytes))
808 xdr_guestfs_mkfs_args (XDR *xdrs, guestfs_mkfs_args *objp)
810 register int32_t *buf;
812 if (!xdr_string (xdrs, &objp->fstype, ~0))
814 if (!xdr_string (xdrs, &objp->device, ~0))
820 xdr_guestfs_sfdisk_args (XDR *xdrs, guestfs_sfdisk_args *objp)
822 register int32_t *buf;
825 if (xdrs->x_op == XDR_ENCODE) {
826 if (!xdr_string (xdrs, &objp->device, ~0))
828 buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
830 if (!xdr_int (xdrs, &objp->cyls))
832 if (!xdr_int (xdrs, &objp->heads))
834 if (!xdr_int (xdrs, &objp->sectors))
838 IXDR_PUT_LONG(buf, objp->cyls);
839 IXDR_PUT_LONG(buf, objp->heads);
840 IXDR_PUT_LONG(buf, objp->sectors);
842 if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
843 sizeof (str), (xdrproc_t) xdr_str))
846 } else if (xdrs->x_op == XDR_DECODE) {
847 if (!xdr_string (xdrs, &objp->device, ~0))
849 buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
851 if (!xdr_int (xdrs, &objp->cyls))
853 if (!xdr_int (xdrs, &objp->heads))
855 if (!xdr_int (xdrs, &objp->sectors))
859 objp->cyls = IXDR_GET_LONG(buf);
860 objp->heads = IXDR_GET_LONG(buf);
861 objp->sectors = IXDR_GET_LONG(buf);
863 if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
864 sizeof (str), (xdrproc_t) xdr_str))
869 if (!xdr_string (xdrs, &objp->device, ~0))
871 if (!xdr_int (xdrs, &objp->cyls))
873 if (!xdr_int (xdrs, &objp->heads))
875 if (!xdr_int (xdrs, &objp->sectors))
877 if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
878 sizeof (str), (xdrproc_t) xdr_str))
884 xdr_guestfs_write_file_args (XDR *xdrs, guestfs_write_file_args *objp)
886 register int32_t *buf;
888 if (!xdr_string (xdrs, &objp->path, ~0))
890 if (!xdr_string (xdrs, &objp->content, ~0))
892 if (!xdr_int (xdrs, &objp->size))
898 xdr_guestfs_umount_args (XDR *xdrs, guestfs_umount_args *objp)
900 register int32_t *buf;
902 if (!xdr_string (xdrs, &objp->pathordevice, ~0))
908 xdr_guestfs_mounts_ret (XDR *xdrs, guestfs_mounts_ret *objp)
910 register int32_t *buf;
912 if (!xdr_array (xdrs, (char **)&objp->devices.devices_val, (u_int *) &objp->devices.devices_len, ~0,
913 sizeof (str), (xdrproc_t) xdr_str))
919 xdr_guestfs_file_args (XDR *xdrs, guestfs_file_args *objp)
921 register int32_t *buf;
923 if (!xdr_string (xdrs, &objp->path, ~0))
929 xdr_guestfs_file_ret (XDR *xdrs, guestfs_file_ret *objp)
931 register int32_t *buf;
933 if (!xdr_string (xdrs, &objp->description, ~0))
939 xdr_guestfs_command_args (XDR *xdrs, guestfs_command_args *objp)
941 register int32_t *buf;
943 if (!xdr_array (xdrs, (char **)&objp->arguments.arguments_val, (u_int *) &objp->arguments.arguments_len, ~0,
944 sizeof (str), (xdrproc_t) xdr_str))
950 xdr_guestfs_command_ret (XDR *xdrs, guestfs_command_ret *objp)
952 register int32_t *buf;
954 if (!xdr_string (xdrs, &objp->output, ~0))
960 xdr_guestfs_command_lines_args (XDR *xdrs, guestfs_command_lines_args *objp)
962 register int32_t *buf;
964 if (!xdr_array (xdrs, (char **)&objp->arguments.arguments_val, (u_int *) &objp->arguments.arguments_len, ~0,
965 sizeof (str), (xdrproc_t) xdr_str))
971 xdr_guestfs_command_lines_ret (XDR *xdrs, guestfs_command_lines_ret *objp)
973 register int32_t *buf;
975 if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
976 sizeof (str), (xdrproc_t) xdr_str))
982 xdr_guestfs_stat_args (XDR *xdrs, guestfs_stat_args *objp)
984 register int32_t *buf;
986 if (!xdr_string (xdrs, &objp->path, ~0))
992 xdr_guestfs_stat_ret (XDR *xdrs, guestfs_stat_ret *objp)
994 register int32_t *buf;
996 if (!xdr_guestfs_int_stat (xdrs, &objp->statbuf))
1002 xdr_guestfs_lstat_args (XDR *xdrs, guestfs_lstat_args *objp)
1004 register int32_t *buf;
1006 if (!xdr_string (xdrs, &objp->path, ~0))
1012 xdr_guestfs_lstat_ret (XDR *xdrs, guestfs_lstat_ret *objp)
1014 register int32_t *buf;
1016 if (!xdr_guestfs_int_stat (xdrs, &objp->statbuf))
1022 xdr_guestfs_statvfs_args (XDR *xdrs, guestfs_statvfs_args *objp)
1024 register int32_t *buf;
1026 if (!xdr_string (xdrs, &objp->path, ~0))
1032 xdr_guestfs_statvfs_ret (XDR *xdrs, guestfs_statvfs_ret *objp)
1034 register int32_t *buf;
1036 if (!xdr_guestfs_int_statvfs (xdrs, &objp->statbuf))
1042 xdr_guestfs_tune2fs_l_args (XDR *xdrs, guestfs_tune2fs_l_args *objp)
1044 register int32_t *buf;
1046 if (!xdr_string (xdrs, &objp->device, ~0))
1052 xdr_guestfs_tune2fs_l_ret (XDR *xdrs, guestfs_tune2fs_l_ret *objp)
1054 register int32_t *buf;
1056 if (!xdr_array (xdrs, (char **)&objp->superblock.superblock_val, (u_int *) &objp->superblock.superblock_len, ~0,
1057 sizeof (str), (xdrproc_t) xdr_str))
1063 xdr_guestfs_blockdev_setro_args (XDR *xdrs, guestfs_blockdev_setro_args *objp)
1065 register int32_t *buf;
1067 if (!xdr_string (xdrs, &objp->device, ~0))
1073 xdr_guestfs_blockdev_setrw_args (XDR *xdrs, guestfs_blockdev_setrw_args *objp)
1075 register int32_t *buf;
1077 if (!xdr_string (xdrs, &objp->device, ~0))
1083 xdr_guestfs_blockdev_getro_args (XDR *xdrs, guestfs_blockdev_getro_args *objp)
1085 register int32_t *buf;
1087 if (!xdr_string (xdrs, &objp->device, ~0))
1093 xdr_guestfs_blockdev_getro_ret (XDR *xdrs, guestfs_blockdev_getro_ret *objp)
1095 register int32_t *buf;
1097 if (!xdr_bool (xdrs, &objp->ro))
1103 xdr_guestfs_blockdev_getss_args (XDR *xdrs, guestfs_blockdev_getss_args *objp)
1105 register int32_t *buf;
1107 if (!xdr_string (xdrs, &objp->device, ~0))
1113 xdr_guestfs_blockdev_getss_ret (XDR *xdrs, guestfs_blockdev_getss_ret *objp)
1115 register int32_t *buf;
1117 if (!xdr_int (xdrs, &objp->sectorsize))
1123 xdr_guestfs_blockdev_getbsz_args (XDR *xdrs, guestfs_blockdev_getbsz_args *objp)
1125 register int32_t *buf;
1127 if (!xdr_string (xdrs, &objp->device, ~0))
1133 xdr_guestfs_blockdev_getbsz_ret (XDR *xdrs, guestfs_blockdev_getbsz_ret *objp)
1135 register int32_t *buf;
1137 if (!xdr_int (xdrs, &objp->blocksize))
1143 xdr_guestfs_blockdev_setbsz_args (XDR *xdrs, guestfs_blockdev_setbsz_args *objp)
1145 register int32_t *buf;
1147 if (!xdr_string (xdrs, &objp->device, ~0))
1149 if (!xdr_int (xdrs, &objp->blocksize))
1155 xdr_guestfs_blockdev_getsz_args (XDR *xdrs, guestfs_blockdev_getsz_args *objp)
1157 register int32_t *buf;
1159 if (!xdr_string (xdrs, &objp->device, ~0))
1165 xdr_guestfs_blockdev_getsz_ret (XDR *xdrs, guestfs_blockdev_getsz_ret *objp)
1167 register int32_t *buf;
1169 if (!xdr_quad_t (xdrs, &objp->sizeinsectors))
1175 xdr_guestfs_blockdev_getsize64_args (XDR *xdrs, guestfs_blockdev_getsize64_args *objp)
1177 register int32_t *buf;
1179 if (!xdr_string (xdrs, &objp->device, ~0))
1185 xdr_guestfs_blockdev_getsize64_ret (XDR *xdrs, guestfs_blockdev_getsize64_ret *objp)
1187 register int32_t *buf;
1189 if (!xdr_quad_t (xdrs, &objp->sizeinbytes))
1195 xdr_guestfs_blockdev_flushbufs_args (XDR *xdrs, guestfs_blockdev_flushbufs_args *objp)
1197 register int32_t *buf;
1199 if (!xdr_string (xdrs, &objp->device, ~0))
1205 xdr_guestfs_blockdev_rereadpt_args (XDR *xdrs, guestfs_blockdev_rereadpt_args *objp)
1207 register int32_t *buf;
1209 if (!xdr_string (xdrs, &objp->device, ~0))
1215 xdr_guestfs_upload_args (XDR *xdrs, guestfs_upload_args *objp)
1217 register int32_t *buf;
1219 if (!xdr_string (xdrs, &objp->remotefilename, ~0))
1225 xdr_guestfs_download_args (XDR *xdrs, guestfs_download_args *objp)
1227 register int32_t *buf;
1229 if (!xdr_string (xdrs, &objp->remotefilename, ~0))
1235 xdr_guestfs_checksum_args (XDR *xdrs, guestfs_checksum_args *objp)
1237 register int32_t *buf;
1239 if (!xdr_string (xdrs, &objp->csumtype, ~0))
1241 if (!xdr_string (xdrs, &objp->path, ~0))
1247 xdr_guestfs_checksum_ret (XDR *xdrs, guestfs_checksum_ret *objp)
1249 register int32_t *buf;
1251 if (!xdr_string (xdrs, &objp->checksum, ~0))
1257 xdr_guestfs_tar_in_args (XDR *xdrs, guestfs_tar_in_args *objp)
1259 register int32_t *buf;
1261 if (!xdr_string (xdrs, &objp->directory, ~0))
1267 xdr_guestfs_tar_out_args (XDR *xdrs, guestfs_tar_out_args *objp)
1269 register int32_t *buf;
1271 if (!xdr_string (xdrs, &objp->directory, ~0))
1277 xdr_guestfs_tgz_in_args (XDR *xdrs, guestfs_tgz_in_args *objp)
1279 register int32_t *buf;
1281 if (!xdr_string (xdrs, &objp->directory, ~0))
1287 xdr_guestfs_tgz_out_args (XDR *xdrs, guestfs_tgz_out_args *objp)
1289 register int32_t *buf;
1291 if (!xdr_string (xdrs, &objp->directory, ~0))
1297 xdr_guestfs_mount_ro_args (XDR *xdrs, guestfs_mount_ro_args *objp)
1299 register int32_t *buf;
1301 if (!xdr_string (xdrs, &objp->device, ~0))
1303 if (!xdr_string (xdrs, &objp->mountpoint, ~0))
1309 xdr_guestfs_mount_options_args (XDR *xdrs, guestfs_mount_options_args *objp)
1311 register int32_t *buf;
1313 if (!xdr_string (xdrs, &objp->options, ~0))
1315 if (!xdr_string (xdrs, &objp->device, ~0))
1317 if (!xdr_string (xdrs, &objp->mountpoint, ~0))
1323 xdr_guestfs_mount_vfs_args (XDR *xdrs, guestfs_mount_vfs_args *objp)
1325 register int32_t *buf;
1327 if (!xdr_string (xdrs, &objp->options, ~0))
1329 if (!xdr_string (xdrs, &objp->vfstype, ~0))
1331 if (!xdr_string (xdrs, &objp->device, ~0))
1333 if (!xdr_string (xdrs, &objp->mountpoint, ~0))
1339 xdr_guestfs_debug_args (XDR *xdrs, guestfs_debug_args *objp)
1341 register int32_t *buf;
1343 if (!xdr_string (xdrs, &objp->subcmd, ~0))
1345 if (!xdr_array (xdrs, (char **)&objp->extraargs.extraargs_val, (u_int *) &objp->extraargs.extraargs_len, ~0,
1346 sizeof (str), (xdrproc_t) xdr_str))
1352 xdr_guestfs_debug_ret (XDR *xdrs, guestfs_debug_ret *objp)
1354 register int32_t *buf;
1356 if (!xdr_string (xdrs, &objp->result, ~0))
1362 xdr_guestfs_lvremove_args (XDR *xdrs, guestfs_lvremove_args *objp)
1364 register int32_t *buf;
1366 if (!xdr_string (xdrs, &objp->device, ~0))
1372 xdr_guestfs_vgremove_args (XDR *xdrs, guestfs_vgremove_args *objp)
1374 register int32_t *buf;
1376 if (!xdr_string (xdrs, &objp->vgname, ~0))
1382 xdr_guestfs_pvremove_args (XDR *xdrs, guestfs_pvremove_args *objp)
1384 register int32_t *buf;
1386 if (!xdr_string (xdrs, &objp->device, ~0))
1392 xdr_guestfs_set_e2label_args (XDR *xdrs, guestfs_set_e2label_args *objp)
1394 register int32_t *buf;
1396 if (!xdr_string (xdrs, &objp->device, ~0))
1398 if (!xdr_string (xdrs, &objp->label, ~0))
1404 xdr_guestfs_get_e2label_args (XDR *xdrs, guestfs_get_e2label_args *objp)
1406 register int32_t *buf;
1408 if (!xdr_string (xdrs, &objp->device, ~0))
1414 xdr_guestfs_get_e2label_ret (XDR *xdrs, guestfs_get_e2label_ret *objp)
1416 register int32_t *buf;
1418 if (!xdr_string (xdrs, &objp->label, ~0))
1424 xdr_guestfs_set_e2uuid_args (XDR *xdrs, guestfs_set_e2uuid_args *objp)
1426 register int32_t *buf;
1428 if (!xdr_string (xdrs, &objp->device, ~0))
1430 if (!xdr_string (xdrs, &objp->uuid, ~0))
1436 xdr_guestfs_get_e2uuid_args (XDR *xdrs, guestfs_get_e2uuid_args *objp)
1438 register int32_t *buf;
1440 if (!xdr_string (xdrs, &objp->device, ~0))
1446 xdr_guestfs_get_e2uuid_ret (XDR *xdrs, guestfs_get_e2uuid_ret *objp)
1448 register int32_t *buf;
1450 if (!xdr_string (xdrs, &objp->uuid, ~0))
1456 xdr_guestfs_fsck_args (XDR *xdrs, guestfs_fsck_args *objp)
1458 register int32_t *buf;
1460 if (!xdr_string (xdrs, &objp->fstype, ~0))
1462 if (!xdr_string (xdrs, &objp->device, ~0))
1468 xdr_guestfs_fsck_ret (XDR *xdrs, guestfs_fsck_ret *objp)
1470 register int32_t *buf;
1472 if (!xdr_int (xdrs, &objp->status))
1478 xdr_guestfs_zero_args (XDR *xdrs, guestfs_zero_args *objp)
1480 register int32_t *buf;
1482 if (!xdr_string (xdrs, &objp->device, ~0))
1488 xdr_guestfs_grub_install_args (XDR *xdrs, guestfs_grub_install_args *objp)
1490 register int32_t *buf;
1492 if (!xdr_string (xdrs, &objp->root, ~0))
1494 if (!xdr_string (xdrs, &objp->device, ~0))
1500 xdr_guestfs_cp_args (XDR *xdrs, guestfs_cp_args *objp)
1502 register int32_t *buf;
1504 if (!xdr_string (xdrs, &objp->src, ~0))
1506 if (!xdr_string (xdrs, &objp->dest, ~0))
1512 xdr_guestfs_cp_a_args (XDR *xdrs, guestfs_cp_a_args *objp)
1514 register int32_t *buf;
1516 if (!xdr_string (xdrs, &objp->src, ~0))
1518 if (!xdr_string (xdrs, &objp->dest, ~0))
1524 xdr_guestfs_mv_args (XDR *xdrs, guestfs_mv_args *objp)
1526 register int32_t *buf;
1528 if (!xdr_string (xdrs, &objp->src, ~0))
1530 if (!xdr_string (xdrs, &objp->dest, ~0))
1536 xdr_guestfs_drop_caches_args (XDR *xdrs, guestfs_drop_caches_args *objp)
1538 register int32_t *buf;
1540 if (!xdr_int (xdrs, &objp->whattodrop))
1546 xdr_guestfs_dmesg_ret (XDR *xdrs, guestfs_dmesg_ret *objp)
1548 register int32_t *buf;
1550 if (!xdr_string (xdrs, &objp->kmsgs, ~0))
1556 xdr_guestfs_equal_args (XDR *xdrs, guestfs_equal_args *objp)
1558 register int32_t *buf;
1560 if (!xdr_string (xdrs, &objp->file1, ~0))
1562 if (!xdr_string (xdrs, &objp->file2, ~0))
1568 xdr_guestfs_equal_ret (XDR *xdrs, guestfs_equal_ret *objp)
1570 register int32_t *buf;
1572 if (!xdr_bool (xdrs, &objp->equality))
1578 xdr_guestfs_strings_args (XDR *xdrs, guestfs_strings_args *objp)
1580 register int32_t *buf;
1582 if (!xdr_string (xdrs, &objp->path, ~0))
1588 xdr_guestfs_strings_ret (XDR *xdrs, guestfs_strings_ret *objp)
1590 register int32_t *buf;
1592 if (!xdr_array (xdrs, (char **)&objp->stringsout.stringsout_val, (u_int *) &objp->stringsout.stringsout_len, ~0,
1593 sizeof (str), (xdrproc_t) xdr_str))
1599 xdr_guestfs_strings_e_args (XDR *xdrs, guestfs_strings_e_args *objp)
1601 register int32_t *buf;
1603 if (!xdr_string (xdrs, &objp->encoding, ~0))
1605 if (!xdr_string (xdrs, &objp->path, ~0))
1611 xdr_guestfs_strings_e_ret (XDR *xdrs, guestfs_strings_e_ret *objp)
1613 register int32_t *buf;
1615 if (!xdr_array (xdrs, (char **)&objp->stringsout.stringsout_val, (u_int *) &objp->stringsout.stringsout_len, ~0,
1616 sizeof (str), (xdrproc_t) xdr_str))
1622 xdr_guestfs_hexdump_args (XDR *xdrs, guestfs_hexdump_args *objp)
1624 register int32_t *buf;
1626 if (!xdr_string (xdrs, &objp->path, ~0))
1632 xdr_guestfs_hexdump_ret (XDR *xdrs, guestfs_hexdump_ret *objp)
1634 register int32_t *buf;
1636 if (!xdr_string (xdrs, &objp->dump, ~0))
1642 xdr_guestfs_zerofree_args (XDR *xdrs, guestfs_zerofree_args *objp)
1644 register int32_t *buf;
1646 if (!xdr_string (xdrs, &objp->device, ~0))
1652 xdr_guestfs_pvresize_args (XDR *xdrs, guestfs_pvresize_args *objp)
1654 register int32_t *buf;
1656 if (!xdr_string (xdrs, &objp->device, ~0))
1662 xdr_guestfs_sfdisk_N_args (XDR *xdrs, guestfs_sfdisk_N_args *objp)
1664 register int32_t *buf;
1667 if (xdrs->x_op == XDR_ENCODE) {
1668 if (!xdr_string (xdrs, &objp->device, ~0))
1670 buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT);
1672 if (!xdr_int (xdrs, &objp->partnum))
1674 if (!xdr_int (xdrs, &objp->cyls))
1676 if (!xdr_int (xdrs, &objp->heads))
1678 if (!xdr_int (xdrs, &objp->sectors))
1682 IXDR_PUT_LONG(buf, objp->partnum);
1683 IXDR_PUT_LONG(buf, objp->cyls);
1684 IXDR_PUT_LONG(buf, objp->heads);
1685 IXDR_PUT_LONG(buf, objp->sectors);
1687 if (!xdr_string (xdrs, &objp->line, ~0))
1690 } else if (xdrs->x_op == XDR_DECODE) {
1691 if (!xdr_string (xdrs, &objp->device, ~0))
1693 buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT);
1695 if (!xdr_int (xdrs, &objp->partnum))
1697 if (!xdr_int (xdrs, &objp->cyls))
1699 if (!xdr_int (xdrs, &objp->heads))
1701 if (!xdr_int (xdrs, &objp->sectors))
1705 objp->partnum = IXDR_GET_LONG(buf);
1706 objp->cyls = IXDR_GET_LONG(buf);
1707 objp->heads = IXDR_GET_LONG(buf);
1708 objp->sectors = IXDR_GET_LONG(buf);
1710 if (!xdr_string (xdrs, &objp->line, ~0))
1715 if (!xdr_string (xdrs, &objp->device, ~0))
1717 if (!xdr_int (xdrs, &objp->partnum))
1719 if (!xdr_int (xdrs, &objp->cyls))
1721 if (!xdr_int (xdrs, &objp->heads))
1723 if (!xdr_int (xdrs, &objp->sectors))
1725 if (!xdr_string (xdrs, &objp->line, ~0))
1731 xdr_guestfs_sfdisk_l_args (XDR *xdrs, guestfs_sfdisk_l_args *objp)
1733 register int32_t *buf;
1735 if (!xdr_string (xdrs, &objp->device, ~0))
1741 xdr_guestfs_sfdisk_l_ret (XDR *xdrs, guestfs_sfdisk_l_ret *objp)
1743 register int32_t *buf;
1745 if (!xdr_string (xdrs, &objp->partitions, ~0))
1751 xdr_guestfs_sfdisk_kernel_geometry_args (XDR *xdrs, guestfs_sfdisk_kernel_geometry_args *objp)
1753 register int32_t *buf;
1755 if (!xdr_string (xdrs, &objp->device, ~0))
1761 xdr_guestfs_sfdisk_kernel_geometry_ret (XDR *xdrs, guestfs_sfdisk_kernel_geometry_ret *objp)
1763 register int32_t *buf;
1765 if (!xdr_string (xdrs, &objp->partitions, ~0))
1771 xdr_guestfs_sfdisk_disk_geometry_args (XDR *xdrs, guestfs_sfdisk_disk_geometry_args *objp)
1773 register int32_t *buf;
1775 if (!xdr_string (xdrs, &objp->device, ~0))
1781 xdr_guestfs_sfdisk_disk_geometry_ret (XDR *xdrs, guestfs_sfdisk_disk_geometry_ret *objp)
1783 register int32_t *buf;
1785 if (!xdr_string (xdrs, &objp->partitions, ~0))
1791 xdr_guestfs_vg_activate_all_args (XDR *xdrs, guestfs_vg_activate_all_args *objp)
1793 register int32_t *buf;
1795 if (!xdr_bool (xdrs, &objp->activate))
1801 xdr_guestfs_vg_activate_args (XDR *xdrs, guestfs_vg_activate_args *objp)
1803 register int32_t *buf;
1805 if (!xdr_bool (xdrs, &objp->activate))
1807 if (!xdr_array (xdrs, (char **)&objp->volgroups.volgroups_val, (u_int *) &objp->volgroups.volgroups_len, ~0,
1808 sizeof (str), (xdrproc_t) xdr_str))
1814 xdr_guestfs_lvresize_args (XDR *xdrs, guestfs_lvresize_args *objp)
1816 register int32_t *buf;
1818 if (!xdr_string (xdrs, &objp->device, ~0))
1820 if (!xdr_int (xdrs, &objp->mbytes))
1826 xdr_guestfs_resize2fs_args (XDR *xdrs, guestfs_resize2fs_args *objp)
1828 register int32_t *buf;
1830 if (!xdr_string (xdrs, &objp->device, ~0))
1836 xdr_guestfs_find_args (XDR *xdrs, guestfs_find_args *objp)
1838 register int32_t *buf;
1840 if (!xdr_string (xdrs, &objp->directory, ~0))
1846 xdr_guestfs_find_ret (XDR *xdrs, guestfs_find_ret *objp)
1848 register int32_t *buf;
1850 if (!xdr_array (xdrs, (char **)&objp->names.names_val, (u_int *) &objp->names.names_len, ~0,
1851 sizeof (str), (xdrproc_t) xdr_str))
1857 xdr_guestfs_e2fsck_f_args (XDR *xdrs, guestfs_e2fsck_f_args *objp)
1859 register int32_t *buf;
1861 if (!xdr_string (xdrs, &objp->device, ~0))
1867 xdr_guestfs_sleep_args (XDR *xdrs, guestfs_sleep_args *objp)
1869 register int32_t *buf;
1871 if (!xdr_int (xdrs, &objp->secs))
1877 xdr_guestfs_ntfs_3g_probe_args (XDR *xdrs, guestfs_ntfs_3g_probe_args *objp)
1879 register int32_t *buf;
1881 if (!xdr_bool (xdrs, &objp->rw))
1883 if (!xdr_string (xdrs, &objp->device, ~0))
1889 xdr_guestfs_ntfs_3g_probe_ret (XDR *xdrs, guestfs_ntfs_3g_probe_ret *objp)
1891 register int32_t *buf;
1893 if (!xdr_int (xdrs, &objp->status))
1899 xdr_guestfs_sh_args (XDR *xdrs, guestfs_sh_args *objp)
1901 register int32_t *buf;
1903 if (!xdr_string (xdrs, &objp->command, ~0))
1909 xdr_guestfs_sh_ret (XDR *xdrs, guestfs_sh_ret *objp)
1911 register int32_t *buf;
1913 if (!xdr_string (xdrs, &objp->output, ~0))
1919 xdr_guestfs_sh_lines_args (XDR *xdrs, guestfs_sh_lines_args *objp)
1921 register int32_t *buf;
1923 if (!xdr_string (xdrs, &objp->command, ~0))
1929 xdr_guestfs_sh_lines_ret (XDR *xdrs, guestfs_sh_lines_ret *objp)
1931 register int32_t *buf;
1933 if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
1934 sizeof (str), (xdrproc_t) xdr_str))
1940 xdr_guestfs_glob_expand_args (XDR *xdrs, guestfs_glob_expand_args *objp)
1942 register int32_t *buf;
1944 if (!xdr_string (xdrs, &objp->pattern, ~0))
1950 xdr_guestfs_glob_expand_ret (XDR *xdrs, guestfs_glob_expand_ret *objp)
1952 register int32_t *buf;
1954 if (!xdr_array (xdrs, (char **)&objp->paths.paths_val, (u_int *) &objp->paths.paths_len, ~0,
1955 sizeof (str), (xdrproc_t) xdr_str))
1961 xdr_guestfs_scrub_device_args (XDR *xdrs, guestfs_scrub_device_args *objp)
1963 register int32_t *buf;
1965 if (!xdr_string (xdrs, &objp->device, ~0))
1971 xdr_guestfs_scrub_file_args (XDR *xdrs, guestfs_scrub_file_args *objp)
1973 register int32_t *buf;
1975 if (!xdr_string (xdrs, &objp->file, ~0))
1981 xdr_guestfs_scrub_freespace_args (XDR *xdrs, guestfs_scrub_freespace_args *objp)
1983 register int32_t *buf;
1985 if (!xdr_string (xdrs, &objp->dir, ~0))
1991 xdr_guestfs_mkdtemp_args (XDR *xdrs, guestfs_mkdtemp_args *objp)
1993 register int32_t *buf;
1995 if (!xdr_string (xdrs, &objp->template, ~0))
2001 xdr_guestfs_mkdtemp_ret (XDR *xdrs, guestfs_mkdtemp_ret *objp)
2003 register int32_t *buf;
2005 if (!xdr_string (xdrs, &objp->dir, ~0))
2011 xdr_guestfs_wc_l_args (XDR *xdrs, guestfs_wc_l_args *objp)
2013 register int32_t *buf;
2015 if (!xdr_string (xdrs, &objp->path, ~0))
2021 xdr_guestfs_wc_l_ret (XDR *xdrs, guestfs_wc_l_ret *objp)
2023 register int32_t *buf;
2025 if (!xdr_int (xdrs, &objp->lines))
2031 xdr_guestfs_wc_w_args (XDR *xdrs, guestfs_wc_w_args *objp)
2033 register int32_t *buf;
2035 if (!xdr_string (xdrs, &objp->path, ~0))
2041 xdr_guestfs_wc_w_ret (XDR *xdrs, guestfs_wc_w_ret *objp)
2043 register int32_t *buf;
2045 if (!xdr_int (xdrs, &objp->words))
2051 xdr_guestfs_wc_c_args (XDR *xdrs, guestfs_wc_c_args *objp)
2053 register int32_t *buf;
2055 if (!xdr_string (xdrs, &objp->path, ~0))
2061 xdr_guestfs_wc_c_ret (XDR *xdrs, guestfs_wc_c_ret *objp)
2063 register int32_t *buf;
2065 if (!xdr_int (xdrs, &objp->chars))
2071 xdr_guestfs_head_args (XDR *xdrs, guestfs_head_args *objp)
2073 register int32_t *buf;
2075 if (!xdr_string (xdrs, &objp->path, ~0))
2081 xdr_guestfs_head_ret (XDR *xdrs, guestfs_head_ret *objp)
2083 register int32_t *buf;
2085 if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
2086 sizeof (str), (xdrproc_t) xdr_str))
2092 xdr_guestfs_head_n_args (XDR *xdrs, guestfs_head_n_args *objp)
2094 register int32_t *buf;
2096 if (!xdr_int (xdrs, &objp->nrlines))
2098 if (!xdr_string (xdrs, &objp->path, ~0))
2104 xdr_guestfs_head_n_ret (XDR *xdrs, guestfs_head_n_ret *objp)
2106 register int32_t *buf;
2108 if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
2109 sizeof (str), (xdrproc_t) xdr_str))
2115 xdr_guestfs_tail_args (XDR *xdrs, guestfs_tail_args *objp)
2117 register int32_t *buf;
2119 if (!xdr_string (xdrs, &objp->path, ~0))
2125 xdr_guestfs_tail_ret (XDR *xdrs, guestfs_tail_ret *objp)
2127 register int32_t *buf;
2129 if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
2130 sizeof (str), (xdrproc_t) xdr_str))
2136 xdr_guestfs_tail_n_args (XDR *xdrs, guestfs_tail_n_args *objp)
2138 register int32_t *buf;
2140 if (!xdr_int (xdrs, &objp->nrlines))
2142 if (!xdr_string (xdrs, &objp->path, ~0))
2148 xdr_guestfs_tail_n_ret (XDR *xdrs, guestfs_tail_n_ret *objp)
2150 register int32_t *buf;
2152 if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
2153 sizeof (str), (xdrproc_t) xdr_str))
2159 xdr_guestfs_df_ret (XDR *xdrs, guestfs_df_ret *objp)
2161 register int32_t *buf;
2163 if (!xdr_string (xdrs, &objp->output, ~0))
2169 xdr_guestfs_df_h_ret (XDR *xdrs, guestfs_df_h_ret *objp)
2171 register int32_t *buf;
2173 if (!xdr_string (xdrs, &objp->output, ~0))
2179 xdr_guestfs_du_args (XDR *xdrs, guestfs_du_args *objp)
2181 register int32_t *buf;
2183 if (!xdr_string (xdrs, &objp->path, ~0))
2189 xdr_guestfs_du_ret (XDR *xdrs, guestfs_du_ret *objp)
2191 register int32_t *buf;
2193 if (!xdr_quad_t (xdrs, &objp->sizekb))
2199 xdr_guestfs_initrd_list_args (XDR *xdrs, guestfs_initrd_list_args *objp)
2201 register int32_t *buf;
2203 if (!xdr_string (xdrs, &objp->path, ~0))
2209 xdr_guestfs_initrd_list_ret (XDR *xdrs, guestfs_initrd_list_ret *objp)
2211 register int32_t *buf;
2213 if (!xdr_array (xdrs, (char **)&objp->filenames.filenames_val, (u_int *) &objp->filenames.filenames_len, ~0,
2214 sizeof (str), (xdrproc_t) xdr_str))
2220 xdr_guestfs_mount_loop_args (XDR *xdrs, guestfs_mount_loop_args *objp)
2222 register int32_t *buf;
2224 if (!xdr_string (xdrs, &objp->file, ~0))
2226 if (!xdr_string (xdrs, &objp->mountpoint, ~0))
2232 xdr_guestfs_mkswap_args (XDR *xdrs, guestfs_mkswap_args *objp)
2234 register int32_t *buf;
2236 if (!xdr_string (xdrs, &objp->device, ~0))
2242 xdr_guestfs_mkswap_L_args (XDR *xdrs, guestfs_mkswap_L_args *objp)
2244 register int32_t *buf;
2246 if (!xdr_string (xdrs, &objp->label, ~0))
2248 if (!xdr_string (xdrs, &objp->device, ~0))
2254 xdr_guestfs_mkswap_U_args (XDR *xdrs, guestfs_mkswap_U_args *objp)
2256 register int32_t *buf;
2258 if (!xdr_string (xdrs, &objp->uuid, ~0))
2260 if (!xdr_string (xdrs, &objp->device, ~0))
2266 xdr_guestfs_mknod_args (XDR *xdrs, guestfs_mknod_args *objp)
2268 register int32_t *buf;
2271 if (xdrs->x_op == XDR_ENCODE) {
2272 buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
2274 if (!xdr_int (xdrs, &objp->mode))
2276 if (!xdr_int (xdrs, &objp->devmajor))
2278 if (!xdr_int (xdrs, &objp->devminor))
2282 IXDR_PUT_LONG(buf, objp->mode);
2283 IXDR_PUT_LONG(buf, objp->devmajor);
2284 IXDR_PUT_LONG(buf, objp->devminor);
2286 if (!xdr_string (xdrs, &objp->path, ~0))
2289 } else if (xdrs->x_op == XDR_DECODE) {
2290 buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
2292 if (!xdr_int (xdrs, &objp->mode))
2294 if (!xdr_int (xdrs, &objp->devmajor))
2296 if (!xdr_int (xdrs, &objp->devminor))
2300 objp->mode = IXDR_GET_LONG(buf);
2301 objp->devmajor = IXDR_GET_LONG(buf);
2302 objp->devminor = IXDR_GET_LONG(buf);
2304 if (!xdr_string (xdrs, &objp->path, ~0))
2309 if (!xdr_int (xdrs, &objp->mode))
2311 if (!xdr_int (xdrs, &objp->devmajor))
2313 if (!xdr_int (xdrs, &objp->devminor))
2315 if (!xdr_string (xdrs, &objp->path, ~0))
2321 xdr_guestfs_mkfifo_args (XDR *xdrs, guestfs_mkfifo_args *objp)
2323 register int32_t *buf;
2325 if (!xdr_int (xdrs, &objp->mode))
2327 if (!xdr_string (xdrs, &objp->path, ~0))
2333 xdr_guestfs_mknod_b_args (XDR *xdrs, guestfs_mknod_b_args *objp)
2335 register int32_t *buf;
2338 if (xdrs->x_op == XDR_ENCODE) {
2339 buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
2341 if (!xdr_int (xdrs, &objp->mode))
2343 if (!xdr_int (xdrs, &objp->devmajor))
2345 if (!xdr_int (xdrs, &objp->devminor))
2349 IXDR_PUT_LONG(buf, objp->mode);
2350 IXDR_PUT_LONG(buf, objp->devmajor);
2351 IXDR_PUT_LONG(buf, objp->devminor);
2353 if (!xdr_string (xdrs, &objp->path, ~0))
2356 } else if (xdrs->x_op == XDR_DECODE) {
2357 buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
2359 if (!xdr_int (xdrs, &objp->mode))
2361 if (!xdr_int (xdrs, &objp->devmajor))
2363 if (!xdr_int (xdrs, &objp->devminor))
2367 objp->mode = IXDR_GET_LONG(buf);
2368 objp->devmajor = IXDR_GET_LONG(buf);
2369 objp->devminor = IXDR_GET_LONG(buf);
2371 if (!xdr_string (xdrs, &objp->path, ~0))
2376 if (!xdr_int (xdrs, &objp->mode))
2378 if (!xdr_int (xdrs, &objp->devmajor))
2380 if (!xdr_int (xdrs, &objp->devminor))
2382 if (!xdr_string (xdrs, &objp->path, ~0))
2388 xdr_guestfs_mknod_c_args (XDR *xdrs, guestfs_mknod_c_args *objp)
2390 register int32_t *buf;
2393 if (xdrs->x_op == XDR_ENCODE) {
2394 buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
2396 if (!xdr_int (xdrs, &objp->mode))
2398 if (!xdr_int (xdrs, &objp->devmajor))
2400 if (!xdr_int (xdrs, &objp->devminor))
2404 IXDR_PUT_LONG(buf, objp->mode);
2405 IXDR_PUT_LONG(buf, objp->devmajor);
2406 IXDR_PUT_LONG(buf, objp->devminor);
2408 if (!xdr_string (xdrs, &objp->path, ~0))
2411 } else if (xdrs->x_op == XDR_DECODE) {
2412 buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
2414 if (!xdr_int (xdrs, &objp->mode))
2416 if (!xdr_int (xdrs, &objp->devmajor))
2418 if (!xdr_int (xdrs, &objp->devminor))
2422 objp->mode = IXDR_GET_LONG(buf);
2423 objp->devmajor = IXDR_GET_LONG(buf);
2424 objp->devminor = IXDR_GET_LONG(buf);
2426 if (!xdr_string (xdrs, &objp->path, ~0))
2431 if (!xdr_int (xdrs, &objp->mode))
2433 if (!xdr_int (xdrs, &objp->devmajor))
2435 if (!xdr_int (xdrs, &objp->devminor))
2437 if (!xdr_string (xdrs, &objp->path, ~0))
2443 xdr_guestfs_umask_args (XDR *xdrs, guestfs_umask_args *objp)
2445 register int32_t *buf;
2447 if (!xdr_int (xdrs, &objp->mask))
2453 xdr_guestfs_umask_ret (XDR *xdrs, guestfs_umask_ret *objp)
2455 register int32_t *buf;
2457 if (!xdr_int (xdrs, &objp->oldmask))
2463 xdr_guestfs_readdir_args (XDR *xdrs, guestfs_readdir_args *objp)
2465 register int32_t *buf;
2467 if (!xdr_string (xdrs, &objp->dir, ~0))
2473 xdr_guestfs_readdir_ret (XDR *xdrs, guestfs_readdir_ret *objp)
2475 register int32_t *buf;
2477 if (!xdr_guestfs_int_dirent_list (xdrs, &objp->entries))
2483 xdr_guestfs_procedure (XDR *xdrs, guestfs_procedure *objp)
2485 register int32_t *buf;
2487 if (!xdr_enum (xdrs, (enum_t *) objp))
2493 xdr_guestfs_message_direction (XDR *xdrs, guestfs_message_direction *objp)
2495 register int32_t *buf;
2497 if (!xdr_enum (xdrs, (enum_t *) objp))
2503 xdr_guestfs_message_status (XDR *xdrs, guestfs_message_status *objp)
2505 register int32_t *buf;
2507 if (!xdr_enum (xdrs, (enum_t *) objp))
2513 xdr_guestfs_message_error (XDR *xdrs, guestfs_message_error *objp)
2515 register int32_t *buf;
2517 if (!xdr_string (xdrs, &objp->error_message, GUESTFS_ERROR_LEN))
2523 xdr_guestfs_message_header (XDR *xdrs, guestfs_message_header *objp)
2525 register int32_t *buf;
2527 if (!xdr_u_int (xdrs, &objp->prog))
2529 if (!xdr_u_int (xdrs, &objp->vers))
2531 if (!xdr_guestfs_procedure (xdrs, &objp->proc))
2533 if (!xdr_guestfs_message_direction (xdrs, &objp->direction))
2535 if (!xdr_u_int (xdrs, &objp->serial))
2537 if (!xdr_guestfs_message_status (xdrs, &objp->status))
2543 xdr_guestfs_chunk (XDR *xdrs, guestfs_chunk *objp)
2545 register int32_t *buf;
2547 if (!xdr_int (xdrs, &objp->cancel))
2549 if (!xdr_bytes (xdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, GUESTFS_MAX_CHUNK_SIZE))