+++ /dev/null
-/*
- * Please do not edit this file.
- * It was generated using rpcgen.
- */
-
-#include "guestfs_protocol.h"
-
-bool_t
-xdr_str (XDR *xdrs, str *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, objp, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lvm_int_pv (XDR *xdrs, guestfs_lvm_int_pv *objp)
-{
- register int32_t *buf;
-
- int i;
- if (!xdr_string (xdrs, &objp->pv_name, ~0))
- return FALSE;
- if (!xdr_opaque (xdrs, objp->pv_uuid, 32))
- return FALSE;
- if (!xdr_string (xdrs, &objp->pv_fmt, ~0))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->pv_size))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->dev_size))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->pv_free))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->pv_used))
- return FALSE;
- if (!xdr_string (xdrs, &objp->pv_attr, ~0))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->pv_pe_count))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->pv_pe_alloc_count))
- return FALSE;
- if (!xdr_string (xdrs, &objp->pv_tags, ~0))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->pe_start))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->pv_mda_count))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->pv_mda_free))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lvm_int_pv_list (XDR *xdrs, guestfs_lvm_int_pv_list *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->guestfs_lvm_int_pv_list_val, (u_int *) &objp->guestfs_lvm_int_pv_list_len, ~0,
- sizeof (guestfs_lvm_int_pv), (xdrproc_t) xdr_guestfs_lvm_int_pv))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lvm_int_vg (XDR *xdrs, guestfs_lvm_int_vg *objp)
-{
- register int32_t *buf;
-
- int i;
- if (!xdr_string (xdrs, &objp->vg_name, ~0))
- return FALSE;
- if (!xdr_opaque (xdrs, objp->vg_uuid, 32))
- return FALSE;
- if (!xdr_string (xdrs, &objp->vg_fmt, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->vg_attr, ~0))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->vg_size))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->vg_free))
- return FALSE;
- if (!xdr_string (xdrs, &objp->vg_sysid, ~0))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->vg_extent_size))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->vg_extent_count))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->vg_free_count))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->max_lv))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->max_pv))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->pv_count))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->lv_count))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->snap_count))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->vg_seqno))
- return FALSE;
- if (!xdr_string (xdrs, &objp->vg_tags, ~0))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->vg_mda_count))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->vg_mda_free))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lvm_int_vg_list (XDR *xdrs, guestfs_lvm_int_vg_list *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->guestfs_lvm_int_vg_list_val, (u_int *) &objp->guestfs_lvm_int_vg_list_len, ~0,
- sizeof (guestfs_lvm_int_vg), (xdrproc_t) xdr_guestfs_lvm_int_vg))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lvm_int_lv (XDR *xdrs, guestfs_lvm_int_lv *objp)
-{
- register int32_t *buf;
-
- int i;
- if (!xdr_string (xdrs, &objp->lv_name, ~0))
- return FALSE;
- if (!xdr_opaque (xdrs, objp->lv_uuid, 32))
- return FALSE;
- if (!xdr_string (xdrs, &objp->lv_attr, ~0))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->lv_major))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->lv_minor))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->lv_kernel_major))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->lv_kernel_minor))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->lv_size))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->seg_count))
- return FALSE;
- if (!xdr_string (xdrs, &objp->origin, ~0))
- return FALSE;
- if (!xdr_float (xdrs, &objp->snap_percent))
- return FALSE;
- if (!xdr_float (xdrs, &objp->copy_percent))
- return FALSE;
- if (!xdr_string (xdrs, &objp->move_pv, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->lv_tags, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->mirror_log, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->modules, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lvm_int_lv_list (XDR *xdrs, guestfs_lvm_int_lv_list *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->guestfs_lvm_int_lv_list_val, (u_int *) &objp->guestfs_lvm_int_lv_list_len, ~0,
- sizeof (guestfs_lvm_int_lv), (xdrproc_t) xdr_guestfs_lvm_int_lv))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_int_stat (XDR *xdrs, guestfs_int_stat *objp)
-{
- register int32_t *buf;
-
- if (!xdr_quad_t (xdrs, &objp->dev))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->ino))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->mode))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->nlink))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->uid))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->gid))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->rdev))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->size))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->blksize))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->blocks))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->atime))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->mtime))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->ctime))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_int_statvfs (XDR *xdrs, guestfs_int_statvfs *objp)
-{
- register int32_t *buf;
-
- if (!xdr_quad_t (xdrs, &objp->bsize))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->frsize))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->blocks))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->bfree))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->bavail))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->files))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->ffree))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->favail))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->fsid))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->flag))
- return FALSE;
- if (!xdr_quad_t (xdrs, &objp->namemax))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_int_dirent (XDR *xdrs, guestfs_int_dirent *objp)
-{
- register int32_t *buf;
-
- if (!xdr_quad_t (xdrs, &objp->ino))
- return FALSE;
- if (!xdr_char (xdrs, &objp->ftyp))
- return FALSE;
- if (!xdr_string (xdrs, &objp->name, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_int_dirent_list (XDR *xdrs, guestfs_int_dirent_list *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->guestfs_int_dirent_list_val, (u_int *) &objp->guestfs_int_dirent_list_len, ~0,
- sizeof (guestfs_int_dirent), (xdrproc_t) xdr_guestfs_int_dirent))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mount_args (XDR *xdrs, guestfs_mount_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->mountpoint, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_touch_args (XDR *xdrs, guestfs_touch_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_cat_args (XDR *xdrs, guestfs_cat_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_cat_ret (XDR *xdrs, guestfs_cat_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->content, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_ll_args (XDR *xdrs, guestfs_ll_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->directory, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_ll_ret (XDR *xdrs, guestfs_ll_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->listing, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_ls_args (XDR *xdrs, guestfs_ls_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->directory, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_ls_ret (XDR *xdrs, guestfs_ls_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->listing.listing_val, (u_int *) &objp->listing.listing_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_list_devices_ret (XDR *xdrs, guestfs_list_devices_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->devices.devices_val, (u_int *) &objp->devices.devices_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_list_partitions_ret (XDR *xdrs, guestfs_list_partitions_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->partitions.partitions_val, (u_int *) &objp->partitions.partitions_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_pvs_ret (XDR *xdrs, guestfs_pvs_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->physvols.physvols_val, (u_int *) &objp->physvols.physvols_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_vgs_ret (XDR *xdrs, guestfs_vgs_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->volgroups.volgroups_val, (u_int *) &objp->volgroups.volgroups_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lvs_ret (XDR *xdrs, guestfs_lvs_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->logvols.logvols_val, (u_int *) &objp->logvols.logvols_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_pvs_full_ret (XDR *xdrs, guestfs_pvs_full_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_guestfs_lvm_int_pv_list (xdrs, &objp->physvols))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_vgs_full_ret (XDR *xdrs, guestfs_vgs_full_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_guestfs_lvm_int_vg_list (xdrs, &objp->volgroups))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lvs_full_ret (XDR *xdrs, guestfs_lvs_full_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_guestfs_lvm_int_lv_list (xdrs, &objp->logvols))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_read_lines_args (XDR *xdrs, guestfs_read_lines_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_read_lines_ret (XDR *xdrs, guestfs_read_lines_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_init_args (XDR *xdrs, guestfs_aug_init_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->root, ~0))
- return FALSE;
- if (!xdr_int (xdrs, &objp->flags))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_defvar_args (XDR *xdrs, guestfs_aug_defvar_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->name, ~0))
- return FALSE;
- if (!xdr_pointer (xdrs, (char **)&objp->expr, sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_defvar_ret (XDR *xdrs, guestfs_aug_defvar_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->nrnodes))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_defnode_args (XDR *xdrs, guestfs_aug_defnode_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->name, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->expr, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->val, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_defnode_ret (XDR *xdrs, guestfs_aug_defnode_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->nrnodes))
- return FALSE;
- if (!xdr_bool (xdrs, &objp->created))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_get_args (XDR *xdrs, guestfs_aug_get_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_get_ret (XDR *xdrs, guestfs_aug_get_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->val, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_set_args (XDR *xdrs, guestfs_aug_set_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->val, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_insert_args (XDR *xdrs, guestfs_aug_insert_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->label, ~0))
- return FALSE;
- if (!xdr_bool (xdrs, &objp->before))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_rm_args (XDR *xdrs, guestfs_aug_rm_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_rm_ret (XDR *xdrs, guestfs_aug_rm_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->nrnodes))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_mv_args (XDR *xdrs, guestfs_aug_mv_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->src, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->dest, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_match_args (XDR *xdrs, guestfs_aug_match_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_match_ret (XDR *xdrs, guestfs_aug_match_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->matches.matches_val, (u_int *) &objp->matches.matches_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_ls_args (XDR *xdrs, guestfs_aug_ls_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_aug_ls_ret (XDR *xdrs, guestfs_aug_ls_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->matches.matches_val, (u_int *) &objp->matches.matches_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_rm_args (XDR *xdrs, guestfs_rm_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_rmdir_args (XDR *xdrs, guestfs_rmdir_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_rm_rf_args (XDR *xdrs, guestfs_rm_rf_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mkdir_args (XDR *xdrs, guestfs_mkdir_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mkdir_p_args (XDR *xdrs, guestfs_mkdir_p_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_chmod_args (XDR *xdrs, guestfs_chmod_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->mode))
- return FALSE;
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_chown_args (XDR *xdrs, guestfs_chown_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->owner))
- return FALSE;
- if (!xdr_int (xdrs, &objp->group))
- return FALSE;
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_exists_args (XDR *xdrs, guestfs_exists_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_exists_ret (XDR *xdrs, guestfs_exists_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_bool (xdrs, &objp->existsflag))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_is_file_args (XDR *xdrs, guestfs_is_file_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_is_file_ret (XDR *xdrs, guestfs_is_file_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_bool (xdrs, &objp->fileflag))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_is_dir_args (XDR *xdrs, guestfs_is_dir_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_is_dir_ret (XDR *xdrs, guestfs_is_dir_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_bool (xdrs, &objp->dirflag))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_pvcreate_args (XDR *xdrs, guestfs_pvcreate_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_vgcreate_args (XDR *xdrs, guestfs_vgcreate_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->volgroup, ~0))
- return FALSE;
- if (!xdr_array (xdrs, (char **)&objp->physvols.physvols_val, (u_int *) &objp->physvols.physvols_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lvcreate_args (XDR *xdrs, guestfs_lvcreate_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->logvol, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->volgroup, ~0))
- return FALSE;
- if (!xdr_int (xdrs, &objp->mbytes))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mkfs_args (XDR *xdrs, guestfs_mkfs_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->fstype, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sfdisk_args (XDR *xdrs, guestfs_sfdisk_args *objp)
-{
- register int32_t *buf;
-
-
- if (xdrs->x_op == XDR_ENCODE) {
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
- if (buf == NULL) {
- if (!xdr_int (xdrs, &objp->cyls))
- return FALSE;
- if (!xdr_int (xdrs, &objp->heads))
- return FALSE;
- if (!xdr_int (xdrs, &objp->sectors))
- return FALSE;
-
- } else {
- IXDR_PUT_LONG(buf, objp->cyls);
- IXDR_PUT_LONG(buf, objp->heads);
- IXDR_PUT_LONG(buf, objp->sectors);
- }
- if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
- } else if (xdrs->x_op == XDR_DECODE) {
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
- if (buf == NULL) {
- if (!xdr_int (xdrs, &objp->cyls))
- return FALSE;
- if (!xdr_int (xdrs, &objp->heads))
- return FALSE;
- if (!xdr_int (xdrs, &objp->sectors))
- return FALSE;
-
- } else {
- objp->cyls = IXDR_GET_LONG(buf);
- objp->heads = IXDR_GET_LONG(buf);
- objp->sectors = IXDR_GET_LONG(buf);
- }
- if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
- }
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- if (!xdr_int (xdrs, &objp->cyls))
- return FALSE;
- if (!xdr_int (xdrs, &objp->heads))
- return FALSE;
- if (!xdr_int (xdrs, &objp->sectors))
- return FALSE;
- if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_write_file_args (XDR *xdrs, guestfs_write_file_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->content, ~0))
- return FALSE;
- if (!xdr_int (xdrs, &objp->size))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_umount_args (XDR *xdrs, guestfs_umount_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->pathordevice, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mounts_ret (XDR *xdrs, guestfs_mounts_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->devices.devices_val, (u_int *) &objp->devices.devices_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_file_args (XDR *xdrs, guestfs_file_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_file_ret (XDR *xdrs, guestfs_file_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->description, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_command_args (XDR *xdrs, guestfs_command_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->arguments.arguments_val, (u_int *) &objp->arguments.arguments_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_command_ret (XDR *xdrs, guestfs_command_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->output, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_command_lines_args (XDR *xdrs, guestfs_command_lines_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->arguments.arguments_val, (u_int *) &objp->arguments.arguments_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_command_lines_ret (XDR *xdrs, guestfs_command_lines_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_stat_args (XDR *xdrs, guestfs_stat_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_stat_ret (XDR *xdrs, guestfs_stat_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_guestfs_int_stat (xdrs, &objp->statbuf))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lstat_args (XDR *xdrs, guestfs_lstat_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lstat_ret (XDR *xdrs, guestfs_lstat_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_guestfs_int_stat (xdrs, &objp->statbuf))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_statvfs_args (XDR *xdrs, guestfs_statvfs_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_statvfs_ret (XDR *xdrs, guestfs_statvfs_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_guestfs_int_statvfs (xdrs, &objp->statbuf))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_tune2fs_l_args (XDR *xdrs, guestfs_tune2fs_l_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_tune2fs_l_ret (XDR *xdrs, guestfs_tune2fs_l_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->superblock.superblock_val, (u_int *) &objp->superblock.superblock_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_setro_args (XDR *xdrs, guestfs_blockdev_setro_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_setrw_args (XDR *xdrs, guestfs_blockdev_setrw_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_getro_args (XDR *xdrs, guestfs_blockdev_getro_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_getro_ret (XDR *xdrs, guestfs_blockdev_getro_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_bool (xdrs, &objp->ro))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_getss_args (XDR *xdrs, guestfs_blockdev_getss_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_getss_ret (XDR *xdrs, guestfs_blockdev_getss_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->sectorsize))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_getbsz_args (XDR *xdrs, guestfs_blockdev_getbsz_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_getbsz_ret (XDR *xdrs, guestfs_blockdev_getbsz_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->blocksize))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_setbsz_args (XDR *xdrs, guestfs_blockdev_setbsz_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- if (!xdr_int (xdrs, &objp->blocksize))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_getsz_args (XDR *xdrs, guestfs_blockdev_getsz_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_getsz_ret (XDR *xdrs, guestfs_blockdev_getsz_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_quad_t (xdrs, &objp->sizeinsectors))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_getsize64_args (XDR *xdrs, guestfs_blockdev_getsize64_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_getsize64_ret (XDR *xdrs, guestfs_blockdev_getsize64_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_quad_t (xdrs, &objp->sizeinbytes))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_flushbufs_args (XDR *xdrs, guestfs_blockdev_flushbufs_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_blockdev_rereadpt_args (XDR *xdrs, guestfs_blockdev_rereadpt_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_upload_args (XDR *xdrs, guestfs_upload_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->remotefilename, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_download_args (XDR *xdrs, guestfs_download_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->remotefilename, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_checksum_args (XDR *xdrs, guestfs_checksum_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->csumtype, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_checksum_ret (XDR *xdrs, guestfs_checksum_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->checksum, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_tar_in_args (XDR *xdrs, guestfs_tar_in_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->directory, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_tar_out_args (XDR *xdrs, guestfs_tar_out_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->directory, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_tgz_in_args (XDR *xdrs, guestfs_tgz_in_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->directory, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_tgz_out_args (XDR *xdrs, guestfs_tgz_out_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->directory, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mount_ro_args (XDR *xdrs, guestfs_mount_ro_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->mountpoint, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mount_options_args (XDR *xdrs, guestfs_mount_options_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->options, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->mountpoint, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mount_vfs_args (XDR *xdrs, guestfs_mount_vfs_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->options, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->vfstype, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->mountpoint, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_debug_args (XDR *xdrs, guestfs_debug_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->subcmd, ~0))
- return FALSE;
- if (!xdr_array (xdrs, (char **)&objp->extraargs.extraargs_val, (u_int *) &objp->extraargs.extraargs_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_debug_ret (XDR *xdrs, guestfs_debug_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->result, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lvremove_args (XDR *xdrs, guestfs_lvremove_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_vgremove_args (XDR *xdrs, guestfs_vgremove_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->vgname, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_pvremove_args (XDR *xdrs, guestfs_pvremove_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_set_e2label_args (XDR *xdrs, guestfs_set_e2label_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->label, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_get_e2label_args (XDR *xdrs, guestfs_get_e2label_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_get_e2label_ret (XDR *xdrs, guestfs_get_e2label_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->label, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_set_e2uuid_args (XDR *xdrs, guestfs_set_e2uuid_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->uuid, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_get_e2uuid_args (XDR *xdrs, guestfs_get_e2uuid_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_get_e2uuid_ret (XDR *xdrs, guestfs_get_e2uuid_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->uuid, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_fsck_args (XDR *xdrs, guestfs_fsck_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->fstype, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_fsck_ret (XDR *xdrs, guestfs_fsck_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->status))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_zero_args (XDR *xdrs, guestfs_zero_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_grub_install_args (XDR *xdrs, guestfs_grub_install_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->root, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_cp_args (XDR *xdrs, guestfs_cp_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->src, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->dest, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_cp_a_args (XDR *xdrs, guestfs_cp_a_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->src, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->dest, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mv_args (XDR *xdrs, guestfs_mv_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->src, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->dest, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_drop_caches_args (XDR *xdrs, guestfs_drop_caches_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->whattodrop))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_dmesg_ret (XDR *xdrs, guestfs_dmesg_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->kmsgs, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_equal_args (XDR *xdrs, guestfs_equal_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->file1, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->file2, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_equal_ret (XDR *xdrs, guestfs_equal_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_bool (xdrs, &objp->equality))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_strings_args (XDR *xdrs, guestfs_strings_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_strings_ret (XDR *xdrs, guestfs_strings_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->stringsout.stringsout_val, (u_int *) &objp->stringsout.stringsout_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_strings_e_args (XDR *xdrs, guestfs_strings_e_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->encoding, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_strings_e_ret (XDR *xdrs, guestfs_strings_e_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->stringsout.stringsout_val, (u_int *) &objp->stringsout.stringsout_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_hexdump_args (XDR *xdrs, guestfs_hexdump_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_hexdump_ret (XDR *xdrs, guestfs_hexdump_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->dump, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_zerofree_args (XDR *xdrs, guestfs_zerofree_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_pvresize_args (XDR *xdrs, guestfs_pvresize_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sfdisk_N_args (XDR *xdrs, guestfs_sfdisk_N_args *objp)
-{
- register int32_t *buf;
-
-
- if (xdrs->x_op == XDR_ENCODE) {
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT);
- if (buf == NULL) {
- if (!xdr_int (xdrs, &objp->partnum))
- return FALSE;
- if (!xdr_int (xdrs, &objp->cyls))
- return FALSE;
- if (!xdr_int (xdrs, &objp->heads))
- return FALSE;
- if (!xdr_int (xdrs, &objp->sectors))
- return FALSE;
-
- } else {
- IXDR_PUT_LONG(buf, objp->partnum);
- IXDR_PUT_LONG(buf, objp->cyls);
- IXDR_PUT_LONG(buf, objp->heads);
- IXDR_PUT_LONG(buf, objp->sectors);
- }
- if (!xdr_string (xdrs, &objp->line, ~0))
- return FALSE;
- return TRUE;
- } else if (xdrs->x_op == XDR_DECODE) {
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT);
- if (buf == NULL) {
- if (!xdr_int (xdrs, &objp->partnum))
- return FALSE;
- if (!xdr_int (xdrs, &objp->cyls))
- return FALSE;
- if (!xdr_int (xdrs, &objp->heads))
- return FALSE;
- if (!xdr_int (xdrs, &objp->sectors))
- return FALSE;
-
- } else {
- objp->partnum = IXDR_GET_LONG(buf);
- objp->cyls = IXDR_GET_LONG(buf);
- objp->heads = IXDR_GET_LONG(buf);
- objp->sectors = IXDR_GET_LONG(buf);
- }
- if (!xdr_string (xdrs, &objp->line, ~0))
- return FALSE;
- return TRUE;
- }
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- if (!xdr_int (xdrs, &objp->partnum))
- return FALSE;
- if (!xdr_int (xdrs, &objp->cyls))
- return FALSE;
- if (!xdr_int (xdrs, &objp->heads))
- return FALSE;
- if (!xdr_int (xdrs, &objp->sectors))
- return FALSE;
- if (!xdr_string (xdrs, &objp->line, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sfdisk_l_args (XDR *xdrs, guestfs_sfdisk_l_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sfdisk_l_ret (XDR *xdrs, guestfs_sfdisk_l_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->partitions, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sfdisk_kernel_geometry_args (XDR *xdrs, guestfs_sfdisk_kernel_geometry_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sfdisk_kernel_geometry_ret (XDR *xdrs, guestfs_sfdisk_kernel_geometry_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->partitions, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sfdisk_disk_geometry_args (XDR *xdrs, guestfs_sfdisk_disk_geometry_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sfdisk_disk_geometry_ret (XDR *xdrs, guestfs_sfdisk_disk_geometry_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->partitions, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_vg_activate_all_args (XDR *xdrs, guestfs_vg_activate_all_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_bool (xdrs, &objp->activate))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_vg_activate_args (XDR *xdrs, guestfs_vg_activate_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_bool (xdrs, &objp->activate))
- return FALSE;
- if (!xdr_array (xdrs, (char **)&objp->volgroups.volgroups_val, (u_int *) &objp->volgroups.volgroups_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_lvresize_args (XDR *xdrs, guestfs_lvresize_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- if (!xdr_int (xdrs, &objp->mbytes))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_resize2fs_args (XDR *xdrs, guestfs_resize2fs_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_find_args (XDR *xdrs, guestfs_find_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->directory, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_find_ret (XDR *xdrs, guestfs_find_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->names.names_val, (u_int *) &objp->names.names_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_e2fsck_f_args (XDR *xdrs, guestfs_e2fsck_f_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sleep_args (XDR *xdrs, guestfs_sleep_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->secs))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_ntfs_3g_probe_args (XDR *xdrs, guestfs_ntfs_3g_probe_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_bool (xdrs, &objp->rw))
- return FALSE;
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_ntfs_3g_probe_ret (XDR *xdrs, guestfs_ntfs_3g_probe_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->status))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sh_args (XDR *xdrs, guestfs_sh_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->command, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sh_ret (XDR *xdrs, guestfs_sh_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->output, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sh_lines_args (XDR *xdrs, guestfs_sh_lines_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->command, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_sh_lines_ret (XDR *xdrs, guestfs_sh_lines_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_glob_expand_args (XDR *xdrs, guestfs_glob_expand_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->pattern, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_glob_expand_ret (XDR *xdrs, guestfs_glob_expand_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->paths.paths_val, (u_int *) &objp->paths.paths_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_scrub_device_args (XDR *xdrs, guestfs_scrub_device_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_scrub_file_args (XDR *xdrs, guestfs_scrub_file_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->file, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_scrub_freespace_args (XDR *xdrs, guestfs_scrub_freespace_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->dir, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mkdtemp_args (XDR *xdrs, guestfs_mkdtemp_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->template, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mkdtemp_ret (XDR *xdrs, guestfs_mkdtemp_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->dir, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_wc_l_args (XDR *xdrs, guestfs_wc_l_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_wc_l_ret (XDR *xdrs, guestfs_wc_l_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->lines))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_wc_w_args (XDR *xdrs, guestfs_wc_w_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_wc_w_ret (XDR *xdrs, guestfs_wc_w_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->words))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_wc_c_args (XDR *xdrs, guestfs_wc_c_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_wc_c_ret (XDR *xdrs, guestfs_wc_c_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->chars))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_head_args (XDR *xdrs, guestfs_head_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_head_ret (XDR *xdrs, guestfs_head_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_head_n_args (XDR *xdrs, guestfs_head_n_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->nrlines))
- return FALSE;
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_head_n_ret (XDR *xdrs, guestfs_head_n_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_tail_args (XDR *xdrs, guestfs_tail_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_tail_ret (XDR *xdrs, guestfs_tail_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_tail_n_args (XDR *xdrs, guestfs_tail_n_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->nrlines))
- return FALSE;
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_tail_n_ret (XDR *xdrs, guestfs_tail_n_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->lines.lines_val, (u_int *) &objp->lines.lines_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_df_ret (XDR *xdrs, guestfs_df_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->output, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_df_h_ret (XDR *xdrs, guestfs_df_h_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->output, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_du_args (XDR *xdrs, guestfs_du_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_du_ret (XDR *xdrs, guestfs_du_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_quad_t (xdrs, &objp->sizekb))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_initrd_list_args (XDR *xdrs, guestfs_initrd_list_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_initrd_list_ret (XDR *xdrs, guestfs_initrd_list_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_array (xdrs, (char **)&objp->filenames.filenames_val, (u_int *) &objp->filenames.filenames_len, ~0,
- sizeof (str), (xdrproc_t) xdr_str))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mount_loop_args (XDR *xdrs, guestfs_mount_loop_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->file, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->mountpoint, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mkswap_args (XDR *xdrs, guestfs_mkswap_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mkswap_L_args (XDR *xdrs, guestfs_mkswap_L_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->label, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mkswap_U_args (XDR *xdrs, guestfs_mkswap_U_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->uuid, ~0))
- return FALSE;
- if (!xdr_string (xdrs, &objp->device, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mknod_args (XDR *xdrs, guestfs_mknod_args *objp)
-{
- register int32_t *buf;
-
-
- if (xdrs->x_op == XDR_ENCODE) {
- buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
- if (buf == NULL) {
- if (!xdr_int (xdrs, &objp->mode))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devmajor))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devminor))
- return FALSE;
-
- } else {
- IXDR_PUT_LONG(buf, objp->mode);
- IXDR_PUT_LONG(buf, objp->devmajor);
- IXDR_PUT_LONG(buf, objp->devminor);
- }
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
- } else if (xdrs->x_op == XDR_DECODE) {
- buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
- if (buf == NULL) {
- if (!xdr_int (xdrs, &objp->mode))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devmajor))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devminor))
- return FALSE;
-
- } else {
- objp->mode = IXDR_GET_LONG(buf);
- objp->devmajor = IXDR_GET_LONG(buf);
- objp->devminor = IXDR_GET_LONG(buf);
- }
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
- }
-
- if (!xdr_int (xdrs, &objp->mode))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devmajor))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devminor))
- return FALSE;
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mkfifo_args (XDR *xdrs, guestfs_mkfifo_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->mode))
- return FALSE;
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mknod_b_args (XDR *xdrs, guestfs_mknod_b_args *objp)
-{
- register int32_t *buf;
-
-
- if (xdrs->x_op == XDR_ENCODE) {
- buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
- if (buf == NULL) {
- if (!xdr_int (xdrs, &objp->mode))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devmajor))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devminor))
- return FALSE;
-
- } else {
- IXDR_PUT_LONG(buf, objp->mode);
- IXDR_PUT_LONG(buf, objp->devmajor);
- IXDR_PUT_LONG(buf, objp->devminor);
- }
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
- } else if (xdrs->x_op == XDR_DECODE) {
- buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
- if (buf == NULL) {
- if (!xdr_int (xdrs, &objp->mode))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devmajor))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devminor))
- return FALSE;
-
- } else {
- objp->mode = IXDR_GET_LONG(buf);
- objp->devmajor = IXDR_GET_LONG(buf);
- objp->devminor = IXDR_GET_LONG(buf);
- }
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
- }
-
- if (!xdr_int (xdrs, &objp->mode))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devmajor))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devminor))
- return FALSE;
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_mknod_c_args (XDR *xdrs, guestfs_mknod_c_args *objp)
-{
- register int32_t *buf;
-
-
- if (xdrs->x_op == XDR_ENCODE) {
- buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
- if (buf == NULL) {
- if (!xdr_int (xdrs, &objp->mode))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devmajor))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devminor))
- return FALSE;
-
- } else {
- IXDR_PUT_LONG(buf, objp->mode);
- IXDR_PUT_LONG(buf, objp->devmajor);
- IXDR_PUT_LONG(buf, objp->devminor);
- }
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
- } else if (xdrs->x_op == XDR_DECODE) {
- buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT);
- if (buf == NULL) {
- if (!xdr_int (xdrs, &objp->mode))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devmajor))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devminor))
- return FALSE;
-
- } else {
- objp->mode = IXDR_GET_LONG(buf);
- objp->devmajor = IXDR_GET_LONG(buf);
- objp->devminor = IXDR_GET_LONG(buf);
- }
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
- }
-
- if (!xdr_int (xdrs, &objp->mode))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devmajor))
- return FALSE;
- if (!xdr_int (xdrs, &objp->devminor))
- return FALSE;
- if (!xdr_string (xdrs, &objp->path, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_umask_args (XDR *xdrs, guestfs_umask_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->mask))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_umask_ret (XDR *xdrs, guestfs_umask_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->oldmask))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_readdir_args (XDR *xdrs, guestfs_readdir_args *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->dir, ~0))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_readdir_ret (XDR *xdrs, guestfs_readdir_ret *objp)
-{
- register int32_t *buf;
-
- if (!xdr_guestfs_int_dirent_list (xdrs, &objp->entries))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_procedure (XDR *xdrs, guestfs_procedure *objp)
-{
- register int32_t *buf;
-
- if (!xdr_enum (xdrs, (enum_t *) objp))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_message_direction (XDR *xdrs, guestfs_message_direction *objp)
-{
- register int32_t *buf;
-
- if (!xdr_enum (xdrs, (enum_t *) objp))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_message_status (XDR *xdrs, guestfs_message_status *objp)
-{
- register int32_t *buf;
-
- if (!xdr_enum (xdrs, (enum_t *) objp))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_message_error (XDR *xdrs, guestfs_message_error *objp)
-{
- register int32_t *buf;
-
- if (!xdr_string (xdrs, &objp->error_message, GUESTFS_ERROR_LEN))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_message_header (XDR *xdrs, guestfs_message_header *objp)
-{
- register int32_t *buf;
-
- if (!xdr_u_int (xdrs, &objp->prog))
- return FALSE;
- if (!xdr_u_int (xdrs, &objp->vers))
- return FALSE;
- if (!xdr_guestfs_procedure (xdrs, &objp->proc))
- return FALSE;
- if (!xdr_guestfs_message_direction (xdrs, &objp->direction))
- return FALSE;
- if (!xdr_u_int (xdrs, &objp->serial))
- return FALSE;
- if (!xdr_guestfs_message_status (xdrs, &objp->status))
- return FALSE;
- return TRUE;
-}
-
-bool_t
-xdr_guestfs_chunk (XDR *xdrs, guestfs_chunk *objp)
-{
- register int32_t *buf;
-
- if (!xdr_int (xdrs, &objp->cancel))
- return FALSE;
- if (!xdr_bytes (xdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, GUESTFS_MAX_CHUNK_SIZE))
- return FALSE;
- return TRUE;
-}
+++ /dev/null
-/*
- * Please do not edit this file.
- * It was generated using rpcgen.
- */
-
-#ifndef _GUESTFS_PROTOCOL_H_RPCGEN
-#define _GUESTFS_PROTOCOL_H_RPCGEN
-
-#include <rpc/rpc.h>
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-typedef char *str;
-
-struct guestfs_lvm_int_pv {
- char *pv_name;
- char pv_uuid[32];
- char *pv_fmt;
- quad_t pv_size;
- quad_t dev_size;
- quad_t pv_free;
- quad_t pv_used;
- char *pv_attr;
- quad_t pv_pe_count;
- quad_t pv_pe_alloc_count;
- char *pv_tags;
- quad_t pe_start;
- quad_t pv_mda_count;
- quad_t pv_mda_free;
-};
-typedef struct guestfs_lvm_int_pv guestfs_lvm_int_pv;
-
-typedef struct {
- u_int guestfs_lvm_int_pv_list_len;
- guestfs_lvm_int_pv *guestfs_lvm_int_pv_list_val;
-} guestfs_lvm_int_pv_list;
-
-struct guestfs_lvm_int_vg {
- char *vg_name;
- char vg_uuid[32];
- char *vg_fmt;
- char *vg_attr;
- quad_t vg_size;
- quad_t vg_free;
- char *vg_sysid;
- quad_t vg_extent_size;
- quad_t vg_extent_count;
- quad_t vg_free_count;
- quad_t max_lv;
- quad_t max_pv;
- quad_t pv_count;
- quad_t lv_count;
- quad_t snap_count;
- quad_t vg_seqno;
- char *vg_tags;
- quad_t vg_mda_count;
- quad_t vg_mda_free;
-};
-typedef struct guestfs_lvm_int_vg guestfs_lvm_int_vg;
-
-typedef struct {
- u_int guestfs_lvm_int_vg_list_len;
- guestfs_lvm_int_vg *guestfs_lvm_int_vg_list_val;
-} guestfs_lvm_int_vg_list;
-
-struct guestfs_lvm_int_lv {
- char *lv_name;
- char lv_uuid[32];
- char *lv_attr;
- quad_t lv_major;
- quad_t lv_minor;
- quad_t lv_kernel_major;
- quad_t lv_kernel_minor;
- quad_t lv_size;
- quad_t seg_count;
- char *origin;
- float snap_percent;
- float copy_percent;
- char *move_pv;
- char *lv_tags;
- char *mirror_log;
- char *modules;
-};
-typedef struct guestfs_lvm_int_lv guestfs_lvm_int_lv;
-
-typedef struct {
- u_int guestfs_lvm_int_lv_list_len;
- guestfs_lvm_int_lv *guestfs_lvm_int_lv_list_val;
-} guestfs_lvm_int_lv_list;
-
-struct guestfs_int_stat {
- quad_t dev;
- quad_t ino;
- quad_t mode;
- quad_t nlink;
- quad_t uid;
- quad_t gid;
- quad_t rdev;
- quad_t size;
- quad_t blksize;
- quad_t blocks;
- quad_t atime;
- quad_t mtime;
- quad_t ctime;
-};
-typedef struct guestfs_int_stat guestfs_int_stat;
-
-struct guestfs_int_statvfs {
- quad_t bsize;
- quad_t frsize;
- quad_t blocks;
- quad_t bfree;
- quad_t bavail;
- quad_t files;
- quad_t ffree;
- quad_t favail;
- quad_t fsid;
- quad_t flag;
- quad_t namemax;
-};
-typedef struct guestfs_int_statvfs guestfs_int_statvfs;
-
-struct guestfs_int_dirent {
- quad_t ino;
- char ftyp;
- char *name;
-};
-typedef struct guestfs_int_dirent guestfs_int_dirent;
-
-typedef struct {
- u_int guestfs_int_dirent_list_len;
- guestfs_int_dirent *guestfs_int_dirent_list_val;
-} guestfs_int_dirent_list;
-
-struct guestfs_mount_args {
- char *device;
- char *mountpoint;
-};
-typedef struct guestfs_mount_args guestfs_mount_args;
-
-struct guestfs_touch_args {
- char *path;
-};
-typedef struct guestfs_touch_args guestfs_touch_args;
-
-struct guestfs_cat_args {
- char *path;
-};
-typedef struct guestfs_cat_args guestfs_cat_args;
-
-struct guestfs_cat_ret {
- char *content;
-};
-typedef struct guestfs_cat_ret guestfs_cat_ret;
-
-struct guestfs_ll_args {
- char *directory;
-};
-typedef struct guestfs_ll_args guestfs_ll_args;
-
-struct guestfs_ll_ret {
- char *listing;
-};
-typedef struct guestfs_ll_ret guestfs_ll_ret;
-
-struct guestfs_ls_args {
- char *directory;
-};
-typedef struct guestfs_ls_args guestfs_ls_args;
-
-struct guestfs_ls_ret {
- struct {
- u_int listing_len;
- str *listing_val;
- } listing;
-};
-typedef struct guestfs_ls_ret guestfs_ls_ret;
-
-struct guestfs_list_devices_ret {
- struct {
- u_int devices_len;
- str *devices_val;
- } devices;
-};
-typedef struct guestfs_list_devices_ret guestfs_list_devices_ret;
-
-struct guestfs_list_partitions_ret {
- struct {
- u_int partitions_len;
- str *partitions_val;
- } partitions;
-};
-typedef struct guestfs_list_partitions_ret guestfs_list_partitions_ret;
-
-struct guestfs_pvs_ret {
- struct {
- u_int physvols_len;
- str *physvols_val;
- } physvols;
-};
-typedef struct guestfs_pvs_ret guestfs_pvs_ret;
-
-struct guestfs_vgs_ret {
- struct {
- u_int volgroups_len;
- str *volgroups_val;
- } volgroups;
-};
-typedef struct guestfs_vgs_ret guestfs_vgs_ret;
-
-struct guestfs_lvs_ret {
- struct {
- u_int logvols_len;
- str *logvols_val;
- } logvols;
-};
-typedef struct guestfs_lvs_ret guestfs_lvs_ret;
-
-struct guestfs_pvs_full_ret {
- guestfs_lvm_int_pv_list physvols;
-};
-typedef struct guestfs_pvs_full_ret guestfs_pvs_full_ret;
-
-struct guestfs_vgs_full_ret {
- guestfs_lvm_int_vg_list volgroups;
-};
-typedef struct guestfs_vgs_full_ret guestfs_vgs_full_ret;
-
-struct guestfs_lvs_full_ret {
- guestfs_lvm_int_lv_list logvols;
-};
-typedef struct guestfs_lvs_full_ret guestfs_lvs_full_ret;
-
-struct guestfs_read_lines_args {
- char *path;
-};
-typedef struct guestfs_read_lines_args guestfs_read_lines_args;
-
-struct guestfs_read_lines_ret {
- struct {
- u_int lines_len;
- str *lines_val;
- } lines;
-};
-typedef struct guestfs_read_lines_ret guestfs_read_lines_ret;
-
-struct guestfs_aug_init_args {
- char *root;
- int flags;
-};
-typedef struct guestfs_aug_init_args guestfs_aug_init_args;
-
-struct guestfs_aug_defvar_args {
- char *name;
- str *expr;
-};
-typedef struct guestfs_aug_defvar_args guestfs_aug_defvar_args;
-
-struct guestfs_aug_defvar_ret {
- int nrnodes;
-};
-typedef struct guestfs_aug_defvar_ret guestfs_aug_defvar_ret;
-
-struct guestfs_aug_defnode_args {
- char *name;
- char *expr;
- char *val;
-};
-typedef struct guestfs_aug_defnode_args guestfs_aug_defnode_args;
-
-struct guestfs_aug_defnode_ret {
- int nrnodes;
- bool_t created;
-};
-typedef struct guestfs_aug_defnode_ret guestfs_aug_defnode_ret;
-
-struct guestfs_aug_get_args {
- char *path;
-};
-typedef struct guestfs_aug_get_args guestfs_aug_get_args;
-
-struct guestfs_aug_get_ret {
- char *val;
-};
-typedef struct guestfs_aug_get_ret guestfs_aug_get_ret;
-
-struct guestfs_aug_set_args {
- char *path;
- char *val;
-};
-typedef struct guestfs_aug_set_args guestfs_aug_set_args;
-
-struct guestfs_aug_insert_args {
- char *path;
- char *label;
- bool_t before;
-};
-typedef struct guestfs_aug_insert_args guestfs_aug_insert_args;
-
-struct guestfs_aug_rm_args {
- char *path;
-};
-typedef struct guestfs_aug_rm_args guestfs_aug_rm_args;
-
-struct guestfs_aug_rm_ret {
- int nrnodes;
-};
-typedef struct guestfs_aug_rm_ret guestfs_aug_rm_ret;
-
-struct guestfs_aug_mv_args {
- char *src;
- char *dest;
-};
-typedef struct guestfs_aug_mv_args guestfs_aug_mv_args;
-
-struct guestfs_aug_match_args {
- char *path;
-};
-typedef struct guestfs_aug_match_args guestfs_aug_match_args;
-
-struct guestfs_aug_match_ret {
- struct {
- u_int matches_len;
- str *matches_val;
- } matches;
-};
-typedef struct guestfs_aug_match_ret guestfs_aug_match_ret;
-
-struct guestfs_aug_ls_args {
- char *path;
-};
-typedef struct guestfs_aug_ls_args guestfs_aug_ls_args;
-
-struct guestfs_aug_ls_ret {
- struct {
- u_int matches_len;
- str *matches_val;
- } matches;
-};
-typedef struct guestfs_aug_ls_ret guestfs_aug_ls_ret;
-
-struct guestfs_rm_args {
- char *path;
-};
-typedef struct guestfs_rm_args guestfs_rm_args;
-
-struct guestfs_rmdir_args {
- char *path;
-};
-typedef struct guestfs_rmdir_args guestfs_rmdir_args;
-
-struct guestfs_rm_rf_args {
- char *path;
-};
-typedef struct guestfs_rm_rf_args guestfs_rm_rf_args;
-
-struct guestfs_mkdir_args {
- char *path;
-};
-typedef struct guestfs_mkdir_args guestfs_mkdir_args;
-
-struct guestfs_mkdir_p_args {
- char *path;
-};
-typedef struct guestfs_mkdir_p_args guestfs_mkdir_p_args;
-
-struct guestfs_chmod_args {
- int mode;
- char *path;
-};
-typedef struct guestfs_chmod_args guestfs_chmod_args;
-
-struct guestfs_chown_args {
- int owner;
- int group;
- char *path;
-};
-typedef struct guestfs_chown_args guestfs_chown_args;
-
-struct guestfs_exists_args {
- char *path;
-};
-typedef struct guestfs_exists_args guestfs_exists_args;
-
-struct guestfs_exists_ret {
- bool_t existsflag;
-};
-typedef struct guestfs_exists_ret guestfs_exists_ret;
-
-struct guestfs_is_file_args {
- char *path;
-};
-typedef struct guestfs_is_file_args guestfs_is_file_args;
-
-struct guestfs_is_file_ret {
- bool_t fileflag;
-};
-typedef struct guestfs_is_file_ret guestfs_is_file_ret;
-
-struct guestfs_is_dir_args {
- char *path;
-};
-typedef struct guestfs_is_dir_args guestfs_is_dir_args;
-
-struct guestfs_is_dir_ret {
- bool_t dirflag;
-};
-typedef struct guestfs_is_dir_ret guestfs_is_dir_ret;
-
-struct guestfs_pvcreate_args {
- char *device;
-};
-typedef struct guestfs_pvcreate_args guestfs_pvcreate_args;
-
-struct guestfs_vgcreate_args {
- char *volgroup;
- struct {
- u_int physvols_len;
- str *physvols_val;
- } physvols;
-};
-typedef struct guestfs_vgcreate_args guestfs_vgcreate_args;
-
-struct guestfs_lvcreate_args {
- char *logvol;
- char *volgroup;
- int mbytes;
-};
-typedef struct guestfs_lvcreate_args guestfs_lvcreate_args;
-
-struct guestfs_mkfs_args {
- char *fstype;
- char *device;
-};
-typedef struct guestfs_mkfs_args guestfs_mkfs_args;
-
-struct guestfs_sfdisk_args {
- char *device;
- int cyls;
- int heads;
- int sectors;
- struct {
- u_int lines_len;
- str *lines_val;
- } lines;
-};
-typedef struct guestfs_sfdisk_args guestfs_sfdisk_args;
-
-struct guestfs_write_file_args {
- char *path;
- char *content;
- int size;
-};
-typedef struct guestfs_write_file_args guestfs_write_file_args;
-
-struct guestfs_umount_args {
- char *pathordevice;
-};
-typedef struct guestfs_umount_args guestfs_umount_args;
-
-struct guestfs_mounts_ret {
- struct {
- u_int devices_len;
- str *devices_val;
- } devices;
-};
-typedef struct guestfs_mounts_ret guestfs_mounts_ret;
-
-struct guestfs_file_args {
- char *path;
-};
-typedef struct guestfs_file_args guestfs_file_args;
-
-struct guestfs_file_ret {
- char *description;
-};
-typedef struct guestfs_file_ret guestfs_file_ret;
-
-struct guestfs_command_args {
- struct {
- u_int arguments_len;
- str *arguments_val;
- } arguments;
-};
-typedef struct guestfs_command_args guestfs_command_args;
-
-struct guestfs_command_ret {
- char *output;
-};
-typedef struct guestfs_command_ret guestfs_command_ret;
-
-struct guestfs_command_lines_args {
- struct {
- u_int arguments_len;
- str *arguments_val;
- } arguments;
-};
-typedef struct guestfs_command_lines_args guestfs_command_lines_args;
-
-struct guestfs_command_lines_ret {
- struct {
- u_int lines_len;
- str *lines_val;
- } lines;
-};
-typedef struct guestfs_command_lines_ret guestfs_command_lines_ret;
-
-struct guestfs_stat_args {
- char *path;
-};
-typedef struct guestfs_stat_args guestfs_stat_args;
-
-struct guestfs_stat_ret {
- guestfs_int_stat statbuf;
-};
-typedef struct guestfs_stat_ret guestfs_stat_ret;
-
-struct guestfs_lstat_args {
- char *path;
-};
-typedef struct guestfs_lstat_args guestfs_lstat_args;
-
-struct guestfs_lstat_ret {
- guestfs_int_stat statbuf;
-};
-typedef struct guestfs_lstat_ret guestfs_lstat_ret;
-
-struct guestfs_statvfs_args {
- char *path;
-};
-typedef struct guestfs_statvfs_args guestfs_statvfs_args;
-
-struct guestfs_statvfs_ret {
- guestfs_int_statvfs statbuf;
-};
-typedef struct guestfs_statvfs_ret guestfs_statvfs_ret;
-
-struct guestfs_tune2fs_l_args {
- char *device;
-};
-typedef struct guestfs_tune2fs_l_args guestfs_tune2fs_l_args;
-
-struct guestfs_tune2fs_l_ret {
- struct {
- u_int superblock_len;
- str *superblock_val;
- } superblock;
-};
-typedef struct guestfs_tune2fs_l_ret guestfs_tune2fs_l_ret;
-
-struct guestfs_blockdev_setro_args {
- char *device;
-};
-typedef struct guestfs_blockdev_setro_args guestfs_blockdev_setro_args;
-
-struct guestfs_blockdev_setrw_args {
- char *device;
-};
-typedef struct guestfs_blockdev_setrw_args guestfs_blockdev_setrw_args;
-
-struct guestfs_blockdev_getro_args {
- char *device;
-};
-typedef struct guestfs_blockdev_getro_args guestfs_blockdev_getro_args;
-
-struct guestfs_blockdev_getro_ret {
- bool_t ro;
-};
-typedef struct guestfs_blockdev_getro_ret guestfs_blockdev_getro_ret;
-
-struct guestfs_blockdev_getss_args {
- char *device;
-};
-typedef struct guestfs_blockdev_getss_args guestfs_blockdev_getss_args;
-
-struct guestfs_blockdev_getss_ret {
- int sectorsize;
-};
-typedef struct guestfs_blockdev_getss_ret guestfs_blockdev_getss_ret;
-
-struct guestfs_blockdev_getbsz_args {
- char *device;
-};
-typedef struct guestfs_blockdev_getbsz_args guestfs_blockdev_getbsz_args;
-
-struct guestfs_blockdev_getbsz_ret {
- int blocksize;
-};
-typedef struct guestfs_blockdev_getbsz_ret guestfs_blockdev_getbsz_ret;
-
-struct guestfs_blockdev_setbsz_args {
- char *device;
- int blocksize;
-};
-typedef struct guestfs_blockdev_setbsz_args guestfs_blockdev_setbsz_args;
-
-struct guestfs_blockdev_getsz_args {
- char *device;
-};
-typedef struct guestfs_blockdev_getsz_args guestfs_blockdev_getsz_args;
-
-struct guestfs_blockdev_getsz_ret {
- quad_t sizeinsectors;
-};
-typedef struct guestfs_blockdev_getsz_ret guestfs_blockdev_getsz_ret;
-
-struct guestfs_blockdev_getsize64_args {
- char *device;
-};
-typedef struct guestfs_blockdev_getsize64_args guestfs_blockdev_getsize64_args;
-
-struct guestfs_blockdev_getsize64_ret {
- quad_t sizeinbytes;
-};
-typedef struct guestfs_blockdev_getsize64_ret guestfs_blockdev_getsize64_ret;
-
-struct guestfs_blockdev_flushbufs_args {
- char *device;
-};
-typedef struct guestfs_blockdev_flushbufs_args guestfs_blockdev_flushbufs_args;
-
-struct guestfs_blockdev_rereadpt_args {
- char *device;
-};
-typedef struct guestfs_blockdev_rereadpt_args guestfs_blockdev_rereadpt_args;
-
-struct guestfs_upload_args {
- char *remotefilename;
-};
-typedef struct guestfs_upload_args guestfs_upload_args;
-
-struct guestfs_download_args {
- char *remotefilename;
-};
-typedef struct guestfs_download_args guestfs_download_args;
-
-struct guestfs_checksum_args {
- char *csumtype;
- char *path;
-};
-typedef struct guestfs_checksum_args guestfs_checksum_args;
-
-struct guestfs_checksum_ret {
- char *checksum;
-};
-typedef struct guestfs_checksum_ret guestfs_checksum_ret;
-
-struct guestfs_tar_in_args {
- char *directory;
-};
-typedef struct guestfs_tar_in_args guestfs_tar_in_args;
-
-struct guestfs_tar_out_args {
- char *directory;
-};
-typedef struct guestfs_tar_out_args guestfs_tar_out_args;
-
-struct guestfs_tgz_in_args {
- char *directory;
-};
-typedef struct guestfs_tgz_in_args guestfs_tgz_in_args;
-
-struct guestfs_tgz_out_args {
- char *directory;
-};
-typedef struct guestfs_tgz_out_args guestfs_tgz_out_args;
-
-struct guestfs_mount_ro_args {
- char *device;
- char *mountpoint;
-};
-typedef struct guestfs_mount_ro_args guestfs_mount_ro_args;
-
-struct guestfs_mount_options_args {
- char *options;
- char *device;
- char *mountpoint;
-};
-typedef struct guestfs_mount_options_args guestfs_mount_options_args;
-
-struct guestfs_mount_vfs_args {
- char *options;
- char *vfstype;
- char *device;
- char *mountpoint;
-};
-typedef struct guestfs_mount_vfs_args guestfs_mount_vfs_args;
-
-struct guestfs_debug_args {
- char *subcmd;
- struct {
- u_int extraargs_len;
- str *extraargs_val;
- } extraargs;
-};
-typedef struct guestfs_debug_args guestfs_debug_args;
-
-struct guestfs_debug_ret {
- char *result;
-};
-typedef struct guestfs_debug_ret guestfs_debug_ret;
-
-struct guestfs_lvremove_args {
- char *device;
-};
-typedef struct guestfs_lvremove_args guestfs_lvremove_args;
-
-struct guestfs_vgremove_args {
- char *vgname;
-};
-typedef struct guestfs_vgremove_args guestfs_vgremove_args;
-
-struct guestfs_pvremove_args {
- char *device;
-};
-typedef struct guestfs_pvremove_args guestfs_pvremove_args;
-
-struct guestfs_set_e2label_args {
- char *device;
- char *label;
-};
-typedef struct guestfs_set_e2label_args guestfs_set_e2label_args;
-
-struct guestfs_get_e2label_args {
- char *device;
-};
-typedef struct guestfs_get_e2label_args guestfs_get_e2label_args;
-
-struct guestfs_get_e2label_ret {
- char *label;
-};
-typedef struct guestfs_get_e2label_ret guestfs_get_e2label_ret;
-
-struct guestfs_set_e2uuid_args {
- char *device;
- char *uuid;
-};
-typedef struct guestfs_set_e2uuid_args guestfs_set_e2uuid_args;
-
-struct guestfs_get_e2uuid_args {
- char *device;
-};
-typedef struct guestfs_get_e2uuid_args guestfs_get_e2uuid_args;
-
-struct guestfs_get_e2uuid_ret {
- char *uuid;
-};
-typedef struct guestfs_get_e2uuid_ret guestfs_get_e2uuid_ret;
-
-struct guestfs_fsck_args {
- char *fstype;
- char *device;
-};
-typedef struct guestfs_fsck_args guestfs_fsck_args;
-
-struct guestfs_fsck_ret {
- int status;
-};
-typedef struct guestfs_fsck_ret guestfs_fsck_ret;
-
-struct guestfs_zero_args {
- char *device;
-};
-typedef struct guestfs_zero_args guestfs_zero_args;
-
-struct guestfs_grub_install_args {
- char *root;
- char *device;
-};
-typedef struct guestfs_grub_install_args guestfs_grub_install_args;
-
-struct guestfs_cp_args {
- char *src;
- char *dest;
-};
-typedef struct guestfs_cp_args guestfs_cp_args;
-
-struct guestfs_cp_a_args {
- char *src;
- char *dest;
-};
-typedef struct guestfs_cp_a_args guestfs_cp_a_args;
-
-struct guestfs_mv_args {
- char *src;
- char *dest;
-};
-typedef struct guestfs_mv_args guestfs_mv_args;
-
-struct guestfs_drop_caches_args {
- int whattodrop;
-};
-typedef struct guestfs_drop_caches_args guestfs_drop_caches_args;
-
-struct guestfs_dmesg_ret {
- char *kmsgs;
-};
-typedef struct guestfs_dmesg_ret guestfs_dmesg_ret;
-
-struct guestfs_equal_args {
- char *file1;
- char *file2;
-};
-typedef struct guestfs_equal_args guestfs_equal_args;
-
-struct guestfs_equal_ret {
- bool_t equality;
-};
-typedef struct guestfs_equal_ret guestfs_equal_ret;
-
-struct guestfs_strings_args {
- char *path;
-};
-typedef struct guestfs_strings_args guestfs_strings_args;
-
-struct guestfs_strings_ret {
- struct {
- u_int stringsout_len;
- str *stringsout_val;
- } stringsout;
-};
-typedef struct guestfs_strings_ret guestfs_strings_ret;
-
-struct guestfs_strings_e_args {
- char *encoding;
- char *path;
-};
-typedef struct guestfs_strings_e_args guestfs_strings_e_args;
-
-struct guestfs_strings_e_ret {
- struct {
- u_int stringsout_len;
- str *stringsout_val;
- } stringsout;
-};
-typedef struct guestfs_strings_e_ret guestfs_strings_e_ret;
-
-struct guestfs_hexdump_args {
- char *path;
-};
-typedef struct guestfs_hexdump_args guestfs_hexdump_args;
-
-struct guestfs_hexdump_ret {
- char *dump;
-};
-typedef struct guestfs_hexdump_ret guestfs_hexdump_ret;
-
-struct guestfs_zerofree_args {
- char *device;
-};
-typedef struct guestfs_zerofree_args guestfs_zerofree_args;
-
-struct guestfs_pvresize_args {
- char *device;
-};
-typedef struct guestfs_pvresize_args guestfs_pvresize_args;
-
-struct guestfs_sfdisk_N_args {
- char *device;
- int partnum;
- int cyls;
- int heads;
- int sectors;
- char *line;
-};
-typedef struct guestfs_sfdisk_N_args guestfs_sfdisk_N_args;
-
-struct guestfs_sfdisk_l_args {
- char *device;
-};
-typedef struct guestfs_sfdisk_l_args guestfs_sfdisk_l_args;
-
-struct guestfs_sfdisk_l_ret {
- char *partitions;
-};
-typedef struct guestfs_sfdisk_l_ret guestfs_sfdisk_l_ret;
-
-struct guestfs_sfdisk_kernel_geometry_args {
- char *device;
-};
-typedef struct guestfs_sfdisk_kernel_geometry_args guestfs_sfdisk_kernel_geometry_args;
-
-struct guestfs_sfdisk_kernel_geometry_ret {
- char *partitions;
-};
-typedef struct guestfs_sfdisk_kernel_geometry_ret guestfs_sfdisk_kernel_geometry_ret;
-
-struct guestfs_sfdisk_disk_geometry_args {
- char *device;
-};
-typedef struct guestfs_sfdisk_disk_geometry_args guestfs_sfdisk_disk_geometry_args;
-
-struct guestfs_sfdisk_disk_geometry_ret {
- char *partitions;
-};
-typedef struct guestfs_sfdisk_disk_geometry_ret guestfs_sfdisk_disk_geometry_ret;
-
-struct guestfs_vg_activate_all_args {
- bool_t activate;
-};
-typedef struct guestfs_vg_activate_all_args guestfs_vg_activate_all_args;
-
-struct guestfs_vg_activate_args {
- bool_t activate;
- struct {
- u_int volgroups_len;
- str *volgroups_val;
- } volgroups;
-};
-typedef struct guestfs_vg_activate_args guestfs_vg_activate_args;
-
-struct guestfs_lvresize_args {
- char *device;
- int mbytes;
-};
-typedef struct guestfs_lvresize_args guestfs_lvresize_args;
-
-struct guestfs_resize2fs_args {
- char *device;
-};
-typedef struct guestfs_resize2fs_args guestfs_resize2fs_args;
-
-struct guestfs_find_args {
- char *directory;
-};
-typedef struct guestfs_find_args guestfs_find_args;
-
-struct guestfs_find_ret {
- struct {
- u_int names_len;
- str *names_val;
- } names;
-};
-typedef struct guestfs_find_ret guestfs_find_ret;
-
-struct guestfs_e2fsck_f_args {
- char *device;
-};
-typedef struct guestfs_e2fsck_f_args guestfs_e2fsck_f_args;
-
-struct guestfs_sleep_args {
- int secs;
-};
-typedef struct guestfs_sleep_args guestfs_sleep_args;
-
-struct guestfs_ntfs_3g_probe_args {
- bool_t rw;
- char *device;
-};
-typedef struct guestfs_ntfs_3g_probe_args guestfs_ntfs_3g_probe_args;
-
-struct guestfs_ntfs_3g_probe_ret {
- int status;
-};
-typedef struct guestfs_ntfs_3g_probe_ret guestfs_ntfs_3g_probe_ret;
-
-struct guestfs_sh_args {
- char *command;
-};
-typedef struct guestfs_sh_args guestfs_sh_args;
-
-struct guestfs_sh_ret {
- char *output;
-};
-typedef struct guestfs_sh_ret guestfs_sh_ret;
-
-struct guestfs_sh_lines_args {
- char *command;
-};
-typedef struct guestfs_sh_lines_args guestfs_sh_lines_args;
-
-struct guestfs_sh_lines_ret {
- struct {
- u_int lines_len;
- str *lines_val;
- } lines;
-};
-typedef struct guestfs_sh_lines_ret guestfs_sh_lines_ret;
-
-struct guestfs_glob_expand_args {
- char *pattern;
-};
-typedef struct guestfs_glob_expand_args guestfs_glob_expand_args;
-
-struct guestfs_glob_expand_ret {
- struct {
- u_int paths_len;
- str *paths_val;
- } paths;
-};
-typedef struct guestfs_glob_expand_ret guestfs_glob_expand_ret;
-
-struct guestfs_scrub_device_args {
- char *device;
-};
-typedef struct guestfs_scrub_device_args guestfs_scrub_device_args;
-
-struct guestfs_scrub_file_args {
- char *file;
-};
-typedef struct guestfs_scrub_file_args guestfs_scrub_file_args;
-
-struct guestfs_scrub_freespace_args {
- char *dir;
-};
-typedef struct guestfs_scrub_freespace_args guestfs_scrub_freespace_args;
-
-struct guestfs_mkdtemp_args {
- char *template;
-};
-typedef struct guestfs_mkdtemp_args guestfs_mkdtemp_args;
-
-struct guestfs_mkdtemp_ret {
- char *dir;
-};
-typedef struct guestfs_mkdtemp_ret guestfs_mkdtemp_ret;
-
-struct guestfs_wc_l_args {
- char *path;
-};
-typedef struct guestfs_wc_l_args guestfs_wc_l_args;
-
-struct guestfs_wc_l_ret {
- int lines;
-};
-typedef struct guestfs_wc_l_ret guestfs_wc_l_ret;
-
-struct guestfs_wc_w_args {
- char *path;
-};
-typedef struct guestfs_wc_w_args guestfs_wc_w_args;
-
-struct guestfs_wc_w_ret {
- int words;
-};
-typedef struct guestfs_wc_w_ret guestfs_wc_w_ret;
-
-struct guestfs_wc_c_args {
- char *path;
-};
-typedef struct guestfs_wc_c_args guestfs_wc_c_args;
-
-struct guestfs_wc_c_ret {
- int chars;
-};
-typedef struct guestfs_wc_c_ret guestfs_wc_c_ret;
-
-struct guestfs_head_args {
- char *path;
-};
-typedef struct guestfs_head_args guestfs_head_args;
-
-struct guestfs_head_ret {
- struct {
- u_int lines_len;
- str *lines_val;
- } lines;
-};
-typedef struct guestfs_head_ret guestfs_head_ret;
-
-struct guestfs_head_n_args {
- int nrlines;
- char *path;
-};
-typedef struct guestfs_head_n_args guestfs_head_n_args;
-
-struct guestfs_head_n_ret {
- struct {
- u_int lines_len;
- str *lines_val;
- } lines;
-};
-typedef struct guestfs_head_n_ret guestfs_head_n_ret;
-
-struct guestfs_tail_args {
- char *path;
-};
-typedef struct guestfs_tail_args guestfs_tail_args;
-
-struct guestfs_tail_ret {
- struct {
- u_int lines_len;
- str *lines_val;
- } lines;
-};
-typedef struct guestfs_tail_ret guestfs_tail_ret;
-
-struct guestfs_tail_n_args {
- int nrlines;
- char *path;
-};
-typedef struct guestfs_tail_n_args guestfs_tail_n_args;
-
-struct guestfs_tail_n_ret {
- struct {
- u_int lines_len;
- str *lines_val;
- } lines;
-};
-typedef struct guestfs_tail_n_ret guestfs_tail_n_ret;
-
-struct guestfs_df_ret {
- char *output;
-};
-typedef struct guestfs_df_ret guestfs_df_ret;
-
-struct guestfs_df_h_ret {
- char *output;
-};
-typedef struct guestfs_df_h_ret guestfs_df_h_ret;
-
-struct guestfs_du_args {
- char *path;
-};
-typedef struct guestfs_du_args guestfs_du_args;
-
-struct guestfs_du_ret {
- quad_t sizekb;
-};
-typedef struct guestfs_du_ret guestfs_du_ret;
-
-struct guestfs_initrd_list_args {
- char *path;
-};
-typedef struct guestfs_initrd_list_args guestfs_initrd_list_args;
-
-struct guestfs_initrd_list_ret {
- struct {
- u_int filenames_len;
- str *filenames_val;
- } filenames;
-};
-typedef struct guestfs_initrd_list_ret guestfs_initrd_list_ret;
-
-struct guestfs_mount_loop_args {
- char *file;
- char *mountpoint;
-};
-typedef struct guestfs_mount_loop_args guestfs_mount_loop_args;
-
-struct guestfs_mkswap_args {
- char *device;
-};
-typedef struct guestfs_mkswap_args guestfs_mkswap_args;
-
-struct guestfs_mkswap_L_args {
- char *label;
- char *device;
-};
-typedef struct guestfs_mkswap_L_args guestfs_mkswap_L_args;
-
-struct guestfs_mkswap_U_args {
- char *uuid;
- char *device;
-};
-typedef struct guestfs_mkswap_U_args guestfs_mkswap_U_args;
-
-struct guestfs_mknod_args {
- int mode;
- int devmajor;
- int devminor;
- char *path;
-};
-typedef struct guestfs_mknod_args guestfs_mknod_args;
-
-struct guestfs_mkfifo_args {
- int mode;
- char *path;
-};
-typedef struct guestfs_mkfifo_args guestfs_mkfifo_args;
-
-struct guestfs_mknod_b_args {
- int mode;
- int devmajor;
- int devminor;
- char *path;
-};
-typedef struct guestfs_mknod_b_args guestfs_mknod_b_args;
-
-struct guestfs_mknod_c_args {
- int mode;
- int devmajor;
- int devminor;
- char *path;
-};
-typedef struct guestfs_mknod_c_args guestfs_mknod_c_args;
-
-struct guestfs_umask_args {
- int mask;
-};
-typedef struct guestfs_umask_args guestfs_umask_args;
-
-struct guestfs_umask_ret {
- int oldmask;
-};
-typedef struct guestfs_umask_ret guestfs_umask_ret;
-
-struct guestfs_readdir_args {
- char *dir;
-};
-typedef struct guestfs_readdir_args guestfs_readdir_args;
-
-struct guestfs_readdir_ret {
- guestfs_int_dirent_list entries;
-};
-typedef struct guestfs_readdir_ret guestfs_readdir_ret;
-
-enum guestfs_procedure {
- GUESTFS_PROC_MOUNT = 1,
- GUESTFS_PROC_SYNC = 2,
- GUESTFS_PROC_TOUCH = 3,
- GUESTFS_PROC_CAT = 4,
- GUESTFS_PROC_LL = 5,
- GUESTFS_PROC_LS = 6,
- GUESTFS_PROC_LIST_DEVICES = 7,
- GUESTFS_PROC_LIST_PARTITIONS = 8,
- GUESTFS_PROC_PVS = 9,
- GUESTFS_PROC_VGS = 10,
- GUESTFS_PROC_LVS = 11,
- GUESTFS_PROC_PVS_FULL = 12,
- GUESTFS_PROC_VGS_FULL = 13,
- GUESTFS_PROC_LVS_FULL = 14,
- GUESTFS_PROC_READ_LINES = 15,
- GUESTFS_PROC_AUG_INIT = 16,
- GUESTFS_PROC_AUG_CLOSE = 26,
- GUESTFS_PROC_AUG_DEFVAR = 17,
- GUESTFS_PROC_AUG_DEFNODE = 18,
- GUESTFS_PROC_AUG_GET = 19,
- GUESTFS_PROC_AUG_SET = 20,
- GUESTFS_PROC_AUG_INSERT = 21,
- GUESTFS_PROC_AUG_RM = 22,
- GUESTFS_PROC_AUG_MV = 23,
- GUESTFS_PROC_AUG_MATCH = 24,
- GUESTFS_PROC_AUG_SAVE = 25,
- GUESTFS_PROC_AUG_LOAD = 27,
- GUESTFS_PROC_AUG_LS = 28,
- GUESTFS_PROC_RM = 29,
- GUESTFS_PROC_RMDIR = 30,
- GUESTFS_PROC_RM_RF = 31,
- GUESTFS_PROC_MKDIR = 32,
- GUESTFS_PROC_MKDIR_P = 33,
- GUESTFS_PROC_CHMOD = 34,
- GUESTFS_PROC_CHOWN = 35,
- GUESTFS_PROC_EXISTS = 36,
- GUESTFS_PROC_IS_FILE = 37,
- GUESTFS_PROC_IS_DIR = 38,
- GUESTFS_PROC_PVCREATE = 39,
- GUESTFS_PROC_VGCREATE = 40,
- GUESTFS_PROC_LVCREATE = 41,
- GUESTFS_PROC_MKFS = 42,
- GUESTFS_PROC_SFDISK = 43,
- GUESTFS_PROC_WRITE_FILE = 44,
- GUESTFS_PROC_UMOUNT = 45,
- GUESTFS_PROC_MOUNTS = 46,
- GUESTFS_PROC_UMOUNT_ALL = 47,
- GUESTFS_PROC_LVM_REMOVE_ALL = 48,
- GUESTFS_PROC_FILE = 49,
- GUESTFS_PROC_COMMAND = 50,
- GUESTFS_PROC_COMMAND_LINES = 51,
- GUESTFS_PROC_STAT = 52,
- GUESTFS_PROC_LSTAT = 53,
- GUESTFS_PROC_STATVFS = 54,
- GUESTFS_PROC_TUNE2FS_L = 55,
- GUESTFS_PROC_BLOCKDEV_SETRO = 56,
- GUESTFS_PROC_BLOCKDEV_SETRW = 57,
- GUESTFS_PROC_BLOCKDEV_GETRO = 58,
- GUESTFS_PROC_BLOCKDEV_GETSS = 59,
- GUESTFS_PROC_BLOCKDEV_GETBSZ = 60,
- GUESTFS_PROC_BLOCKDEV_SETBSZ = 61,
- GUESTFS_PROC_BLOCKDEV_GETSZ = 62,
- GUESTFS_PROC_BLOCKDEV_GETSIZE64 = 63,
- GUESTFS_PROC_BLOCKDEV_FLUSHBUFS = 64,
- GUESTFS_PROC_BLOCKDEV_REREADPT = 65,
- GUESTFS_PROC_UPLOAD = 66,
- GUESTFS_PROC_DOWNLOAD = 67,
- GUESTFS_PROC_CHECKSUM = 68,
- GUESTFS_PROC_TAR_IN = 69,
- GUESTFS_PROC_TAR_OUT = 70,
- GUESTFS_PROC_TGZ_IN = 71,
- GUESTFS_PROC_TGZ_OUT = 72,
- GUESTFS_PROC_MOUNT_RO = 73,
- GUESTFS_PROC_MOUNT_OPTIONS = 74,
- GUESTFS_PROC_MOUNT_VFS = 75,
- GUESTFS_PROC_DEBUG = 76,
- GUESTFS_PROC_LVREMOVE = 77,
- GUESTFS_PROC_VGREMOVE = 78,
- GUESTFS_PROC_PVREMOVE = 79,
- GUESTFS_PROC_SET_E2LABEL = 80,
- GUESTFS_PROC_GET_E2LABEL = 81,
- GUESTFS_PROC_SET_E2UUID = 82,
- GUESTFS_PROC_GET_E2UUID = 83,
- GUESTFS_PROC_FSCK = 84,
- GUESTFS_PROC_ZERO = 85,
- GUESTFS_PROC_GRUB_INSTALL = 86,
- GUESTFS_PROC_CP = 87,
- GUESTFS_PROC_CP_A = 88,
- GUESTFS_PROC_MV = 89,
- GUESTFS_PROC_DROP_CACHES = 90,
- GUESTFS_PROC_DMESG = 91,
- GUESTFS_PROC_PING_DAEMON = 92,
- GUESTFS_PROC_EQUAL = 93,
- GUESTFS_PROC_STRINGS = 94,
- GUESTFS_PROC_STRINGS_E = 95,
- GUESTFS_PROC_HEXDUMP = 96,
- GUESTFS_PROC_ZEROFREE = 97,
- GUESTFS_PROC_PVRESIZE = 98,
- GUESTFS_PROC_SFDISK_N = 99,
- GUESTFS_PROC_SFDISK_L = 100,
- GUESTFS_PROC_SFDISK_KERNEL_GEOMETRY = 101,
- GUESTFS_PROC_SFDISK_DISK_GEOMETRY = 102,
- GUESTFS_PROC_VG_ACTIVATE_ALL = 103,
- GUESTFS_PROC_VG_ACTIVATE = 104,
- GUESTFS_PROC_LVRESIZE = 105,
- GUESTFS_PROC_RESIZE2FS = 106,
- GUESTFS_PROC_FIND = 107,
- GUESTFS_PROC_E2FSCK_F = 108,
- GUESTFS_PROC_SLEEP = 109,
- GUESTFS_PROC_NTFS_3G_PROBE = 110,
- GUESTFS_PROC_SH = 111,
- GUESTFS_PROC_SH_LINES = 112,
- GUESTFS_PROC_GLOB_EXPAND = 113,
- GUESTFS_PROC_SCRUB_DEVICE = 114,
- GUESTFS_PROC_SCRUB_FILE = 115,
- GUESTFS_PROC_SCRUB_FREESPACE = 116,
- GUESTFS_PROC_MKDTEMP = 117,
- GUESTFS_PROC_WC_L = 118,
- GUESTFS_PROC_WC_W = 119,
- GUESTFS_PROC_WC_C = 120,
- GUESTFS_PROC_HEAD = 121,
- GUESTFS_PROC_HEAD_N = 122,
- GUESTFS_PROC_TAIL = 123,
- GUESTFS_PROC_TAIL_N = 124,
- GUESTFS_PROC_DF = 125,
- GUESTFS_PROC_DF_H = 126,
- GUESTFS_PROC_DU = 127,
- GUESTFS_PROC_INITRD_LIST = 128,
- GUESTFS_PROC_MOUNT_LOOP = 129,
- GUESTFS_PROC_MKSWAP = 130,
- GUESTFS_PROC_MKSWAP_L = 131,
- GUESTFS_PROC_MKSWAP_U = 132,
- GUESTFS_PROC_MKNOD = 133,
- GUESTFS_PROC_MKFIFO = 134,
- GUESTFS_PROC_MKNOD_B = 135,
- GUESTFS_PROC_MKNOD_C = 136,
- GUESTFS_PROC_UMASK = 137,
- GUESTFS_PROC_READDIR = 138,
- GUESTFS_PROC_NR_PROCS = 138 + 1,
-};
-typedef enum guestfs_procedure guestfs_procedure;
-#define GUESTFS_MESSAGE_MAX 4194304
-#define GUESTFS_PROGRAM 0x2000F5F5
-#define GUESTFS_PROTOCOL_VERSION 1
-#define GUESTFS_LAUNCH_FLAG 0xf5f55ff5
-#define GUESTFS_CANCEL_FLAG 0xffffeeee
-
-enum guestfs_message_direction {
- GUESTFS_DIRECTION_CALL = 0,
- GUESTFS_DIRECTION_REPLY = 1,
-};
-typedef enum guestfs_message_direction guestfs_message_direction;
-
-enum guestfs_message_status {
- GUESTFS_STATUS_OK = 0,
- GUESTFS_STATUS_ERROR = 1,
-};
-typedef enum guestfs_message_status guestfs_message_status;
-#define GUESTFS_ERROR_LEN 256
-
-struct guestfs_message_error {
- char *error_message;
-};
-typedef struct guestfs_message_error guestfs_message_error;
-
-struct guestfs_message_header {
- u_int prog;
- u_int vers;
- guestfs_procedure proc;
- guestfs_message_direction direction;
- u_int serial;
- guestfs_message_status status;
-};
-typedef struct guestfs_message_header guestfs_message_header;
-#define GUESTFS_MAX_CHUNK_SIZE 8192
-
-struct guestfs_chunk {
- int cancel;
- struct {
- u_int data_len;
- char *data_val;
- } data;
-};
-typedef struct guestfs_chunk guestfs_chunk;
-
-/* the xdr functions */
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern bool_t xdr_str (XDR *, str*);
-extern bool_t xdr_guestfs_lvm_int_pv (XDR *, guestfs_lvm_int_pv*);
-extern bool_t xdr_guestfs_lvm_int_pv_list (XDR *, guestfs_lvm_int_pv_list*);
-extern bool_t xdr_guestfs_lvm_int_vg (XDR *, guestfs_lvm_int_vg*);
-extern bool_t xdr_guestfs_lvm_int_vg_list (XDR *, guestfs_lvm_int_vg_list*);
-extern bool_t xdr_guestfs_lvm_int_lv (XDR *, guestfs_lvm_int_lv*);
-extern bool_t xdr_guestfs_lvm_int_lv_list (XDR *, guestfs_lvm_int_lv_list*);
-extern bool_t xdr_guestfs_int_stat (XDR *, guestfs_int_stat*);
-extern bool_t xdr_guestfs_int_statvfs (XDR *, guestfs_int_statvfs*);
-extern bool_t xdr_guestfs_int_dirent (XDR *, guestfs_int_dirent*);
-extern bool_t xdr_guestfs_int_dirent_list (XDR *, guestfs_int_dirent_list*);
-extern bool_t xdr_guestfs_mount_args (XDR *, guestfs_mount_args*);
-extern bool_t xdr_guestfs_touch_args (XDR *, guestfs_touch_args*);
-extern bool_t xdr_guestfs_cat_args (XDR *, guestfs_cat_args*);
-extern bool_t xdr_guestfs_cat_ret (XDR *, guestfs_cat_ret*);
-extern bool_t xdr_guestfs_ll_args (XDR *, guestfs_ll_args*);
-extern bool_t xdr_guestfs_ll_ret (XDR *, guestfs_ll_ret*);
-extern bool_t xdr_guestfs_ls_args (XDR *, guestfs_ls_args*);
-extern bool_t xdr_guestfs_ls_ret (XDR *, guestfs_ls_ret*);
-extern bool_t xdr_guestfs_list_devices_ret (XDR *, guestfs_list_devices_ret*);
-extern bool_t xdr_guestfs_list_partitions_ret (XDR *, guestfs_list_partitions_ret*);
-extern bool_t xdr_guestfs_pvs_ret (XDR *, guestfs_pvs_ret*);
-extern bool_t xdr_guestfs_vgs_ret (XDR *, guestfs_vgs_ret*);
-extern bool_t xdr_guestfs_lvs_ret (XDR *, guestfs_lvs_ret*);
-extern bool_t xdr_guestfs_pvs_full_ret (XDR *, guestfs_pvs_full_ret*);
-extern bool_t xdr_guestfs_vgs_full_ret (XDR *, guestfs_vgs_full_ret*);
-extern bool_t xdr_guestfs_lvs_full_ret (XDR *, guestfs_lvs_full_ret*);
-extern bool_t xdr_guestfs_read_lines_args (XDR *, guestfs_read_lines_args*);
-extern bool_t xdr_guestfs_read_lines_ret (XDR *, guestfs_read_lines_ret*);
-extern bool_t xdr_guestfs_aug_init_args (XDR *, guestfs_aug_init_args*);
-extern bool_t xdr_guestfs_aug_defvar_args (XDR *, guestfs_aug_defvar_args*);
-extern bool_t xdr_guestfs_aug_defvar_ret (XDR *, guestfs_aug_defvar_ret*);
-extern bool_t xdr_guestfs_aug_defnode_args (XDR *, guestfs_aug_defnode_args*);
-extern bool_t xdr_guestfs_aug_defnode_ret (XDR *, guestfs_aug_defnode_ret*);
-extern bool_t xdr_guestfs_aug_get_args (XDR *, guestfs_aug_get_args*);
-extern bool_t xdr_guestfs_aug_get_ret (XDR *, guestfs_aug_get_ret*);
-extern bool_t xdr_guestfs_aug_set_args (XDR *, guestfs_aug_set_args*);
-extern bool_t xdr_guestfs_aug_insert_args (XDR *, guestfs_aug_insert_args*);
-extern bool_t xdr_guestfs_aug_rm_args (XDR *, guestfs_aug_rm_args*);
-extern bool_t xdr_guestfs_aug_rm_ret (XDR *, guestfs_aug_rm_ret*);
-extern bool_t xdr_guestfs_aug_mv_args (XDR *, guestfs_aug_mv_args*);
-extern bool_t xdr_guestfs_aug_match_args (XDR *, guestfs_aug_match_args*);
-extern bool_t xdr_guestfs_aug_match_ret (XDR *, guestfs_aug_match_ret*);
-extern bool_t xdr_guestfs_aug_ls_args (XDR *, guestfs_aug_ls_args*);
-extern bool_t xdr_guestfs_aug_ls_ret (XDR *, guestfs_aug_ls_ret*);
-extern bool_t xdr_guestfs_rm_args (XDR *, guestfs_rm_args*);
-extern bool_t xdr_guestfs_rmdir_args (XDR *, guestfs_rmdir_args*);
-extern bool_t xdr_guestfs_rm_rf_args (XDR *, guestfs_rm_rf_args*);
-extern bool_t xdr_guestfs_mkdir_args (XDR *, guestfs_mkdir_args*);
-extern bool_t xdr_guestfs_mkdir_p_args (XDR *, guestfs_mkdir_p_args*);
-extern bool_t xdr_guestfs_chmod_args (XDR *, guestfs_chmod_args*);
-extern bool_t xdr_guestfs_chown_args (XDR *, guestfs_chown_args*);
-extern bool_t xdr_guestfs_exists_args (XDR *, guestfs_exists_args*);
-extern bool_t xdr_guestfs_exists_ret (XDR *, guestfs_exists_ret*);
-extern bool_t xdr_guestfs_is_file_args (XDR *, guestfs_is_file_args*);
-extern bool_t xdr_guestfs_is_file_ret (XDR *, guestfs_is_file_ret*);
-extern bool_t xdr_guestfs_is_dir_args (XDR *, guestfs_is_dir_args*);
-extern bool_t xdr_guestfs_is_dir_ret (XDR *, guestfs_is_dir_ret*);
-extern bool_t xdr_guestfs_pvcreate_args (XDR *, guestfs_pvcreate_args*);
-extern bool_t xdr_guestfs_vgcreate_args (XDR *, guestfs_vgcreate_args*);
-extern bool_t xdr_guestfs_lvcreate_args (XDR *, guestfs_lvcreate_args*);
-extern bool_t xdr_guestfs_mkfs_args (XDR *, guestfs_mkfs_args*);
-extern bool_t xdr_guestfs_sfdisk_args (XDR *, guestfs_sfdisk_args*);
-extern bool_t xdr_guestfs_write_file_args (XDR *, guestfs_write_file_args*);
-extern bool_t xdr_guestfs_umount_args (XDR *, guestfs_umount_args*);
-extern bool_t xdr_guestfs_mounts_ret (XDR *, guestfs_mounts_ret*);
-extern bool_t xdr_guestfs_file_args (XDR *, guestfs_file_args*);
-extern bool_t xdr_guestfs_file_ret (XDR *, guestfs_file_ret*);
-extern bool_t xdr_guestfs_command_args (XDR *, guestfs_command_args*);
-extern bool_t xdr_guestfs_command_ret (XDR *, guestfs_command_ret*);
-extern bool_t xdr_guestfs_command_lines_args (XDR *, guestfs_command_lines_args*);
-extern bool_t xdr_guestfs_command_lines_ret (XDR *, guestfs_command_lines_ret*);
-extern bool_t xdr_guestfs_stat_args (XDR *, guestfs_stat_args*);
-extern bool_t xdr_guestfs_stat_ret (XDR *, guestfs_stat_ret*);
-extern bool_t xdr_guestfs_lstat_args (XDR *, guestfs_lstat_args*);
-extern bool_t xdr_guestfs_lstat_ret (XDR *, guestfs_lstat_ret*);
-extern bool_t xdr_guestfs_statvfs_args (XDR *, guestfs_statvfs_args*);
-extern bool_t xdr_guestfs_statvfs_ret (XDR *, guestfs_statvfs_ret*);
-extern bool_t xdr_guestfs_tune2fs_l_args (XDR *, guestfs_tune2fs_l_args*);
-extern bool_t xdr_guestfs_tune2fs_l_ret (XDR *, guestfs_tune2fs_l_ret*);
-extern bool_t xdr_guestfs_blockdev_setro_args (XDR *, guestfs_blockdev_setro_args*);
-extern bool_t xdr_guestfs_blockdev_setrw_args (XDR *, guestfs_blockdev_setrw_args*);
-extern bool_t xdr_guestfs_blockdev_getro_args (XDR *, guestfs_blockdev_getro_args*);
-extern bool_t xdr_guestfs_blockdev_getro_ret (XDR *, guestfs_blockdev_getro_ret*);
-extern bool_t xdr_guestfs_blockdev_getss_args (XDR *, guestfs_blockdev_getss_args*);
-extern bool_t xdr_guestfs_blockdev_getss_ret (XDR *, guestfs_blockdev_getss_ret*);
-extern bool_t xdr_guestfs_blockdev_getbsz_args (XDR *, guestfs_blockdev_getbsz_args*);
-extern bool_t xdr_guestfs_blockdev_getbsz_ret (XDR *, guestfs_blockdev_getbsz_ret*);
-extern bool_t xdr_guestfs_blockdev_setbsz_args (XDR *, guestfs_blockdev_setbsz_args*);
-extern bool_t xdr_guestfs_blockdev_getsz_args (XDR *, guestfs_blockdev_getsz_args*);
-extern bool_t xdr_guestfs_blockdev_getsz_ret (XDR *, guestfs_blockdev_getsz_ret*);
-extern bool_t xdr_guestfs_blockdev_getsize64_args (XDR *, guestfs_blockdev_getsize64_args*);
-extern bool_t xdr_guestfs_blockdev_getsize64_ret (XDR *, guestfs_blockdev_getsize64_ret*);
-extern bool_t xdr_guestfs_blockdev_flushbufs_args (XDR *, guestfs_blockdev_flushbufs_args*);
-extern bool_t xdr_guestfs_blockdev_rereadpt_args (XDR *, guestfs_blockdev_rereadpt_args*);
-extern bool_t xdr_guestfs_upload_args (XDR *, guestfs_upload_args*);
-extern bool_t xdr_guestfs_download_args (XDR *, guestfs_download_args*);
-extern bool_t xdr_guestfs_checksum_args (XDR *, guestfs_checksum_args*);
-extern bool_t xdr_guestfs_checksum_ret (XDR *, guestfs_checksum_ret*);
-extern bool_t xdr_guestfs_tar_in_args (XDR *, guestfs_tar_in_args*);
-extern bool_t xdr_guestfs_tar_out_args (XDR *, guestfs_tar_out_args*);
-extern bool_t xdr_guestfs_tgz_in_args (XDR *, guestfs_tgz_in_args*);
-extern bool_t xdr_guestfs_tgz_out_args (XDR *, guestfs_tgz_out_args*);
-extern bool_t xdr_guestfs_mount_ro_args (XDR *, guestfs_mount_ro_args*);
-extern bool_t xdr_guestfs_mount_options_args (XDR *, guestfs_mount_options_args*);
-extern bool_t xdr_guestfs_mount_vfs_args (XDR *, guestfs_mount_vfs_args*);
-extern bool_t xdr_guestfs_debug_args (XDR *, guestfs_debug_args*);
-extern bool_t xdr_guestfs_debug_ret (XDR *, guestfs_debug_ret*);
-extern bool_t xdr_guestfs_lvremove_args (XDR *, guestfs_lvremove_args*);
-extern bool_t xdr_guestfs_vgremove_args (XDR *, guestfs_vgremove_args*);
-extern bool_t xdr_guestfs_pvremove_args (XDR *, guestfs_pvremove_args*);
-extern bool_t xdr_guestfs_set_e2label_args (XDR *, guestfs_set_e2label_args*);
-extern bool_t xdr_guestfs_get_e2label_args (XDR *, guestfs_get_e2label_args*);
-extern bool_t xdr_guestfs_get_e2label_ret (XDR *, guestfs_get_e2label_ret*);
-extern bool_t xdr_guestfs_set_e2uuid_args (XDR *, guestfs_set_e2uuid_args*);
-extern bool_t xdr_guestfs_get_e2uuid_args (XDR *, guestfs_get_e2uuid_args*);
-extern bool_t xdr_guestfs_get_e2uuid_ret (XDR *, guestfs_get_e2uuid_ret*);
-extern bool_t xdr_guestfs_fsck_args (XDR *, guestfs_fsck_args*);
-extern bool_t xdr_guestfs_fsck_ret (XDR *, guestfs_fsck_ret*);
-extern bool_t xdr_guestfs_zero_args (XDR *, guestfs_zero_args*);
-extern bool_t xdr_guestfs_grub_install_args (XDR *, guestfs_grub_install_args*);
-extern bool_t xdr_guestfs_cp_args (XDR *, guestfs_cp_args*);
-extern bool_t xdr_guestfs_cp_a_args (XDR *, guestfs_cp_a_args*);
-extern bool_t xdr_guestfs_mv_args (XDR *, guestfs_mv_args*);
-extern bool_t xdr_guestfs_drop_caches_args (XDR *, guestfs_drop_caches_args*);
-extern bool_t xdr_guestfs_dmesg_ret (XDR *, guestfs_dmesg_ret*);
-extern bool_t xdr_guestfs_equal_args (XDR *, guestfs_equal_args*);
-extern bool_t xdr_guestfs_equal_ret (XDR *, guestfs_equal_ret*);
-extern bool_t xdr_guestfs_strings_args (XDR *, guestfs_strings_args*);
-extern bool_t xdr_guestfs_strings_ret (XDR *, guestfs_strings_ret*);
-extern bool_t xdr_guestfs_strings_e_args (XDR *, guestfs_strings_e_args*);
-extern bool_t xdr_guestfs_strings_e_ret (XDR *, guestfs_strings_e_ret*);
-extern bool_t xdr_guestfs_hexdump_args (XDR *, guestfs_hexdump_args*);
-extern bool_t xdr_guestfs_hexdump_ret (XDR *, guestfs_hexdump_ret*);
-extern bool_t xdr_guestfs_zerofree_args (XDR *, guestfs_zerofree_args*);
-extern bool_t xdr_guestfs_pvresize_args (XDR *, guestfs_pvresize_args*);
-extern bool_t xdr_guestfs_sfdisk_N_args (XDR *, guestfs_sfdisk_N_args*);
-extern bool_t xdr_guestfs_sfdisk_l_args (XDR *, guestfs_sfdisk_l_args*);
-extern bool_t xdr_guestfs_sfdisk_l_ret (XDR *, guestfs_sfdisk_l_ret*);
-extern bool_t xdr_guestfs_sfdisk_kernel_geometry_args (XDR *, guestfs_sfdisk_kernel_geometry_args*);
-extern bool_t xdr_guestfs_sfdisk_kernel_geometry_ret (XDR *, guestfs_sfdisk_kernel_geometry_ret*);
-extern bool_t xdr_guestfs_sfdisk_disk_geometry_args (XDR *, guestfs_sfdisk_disk_geometry_args*);
-extern bool_t xdr_guestfs_sfdisk_disk_geometry_ret (XDR *, guestfs_sfdisk_disk_geometry_ret*);
-extern bool_t xdr_guestfs_vg_activate_all_args (XDR *, guestfs_vg_activate_all_args*);
-extern bool_t xdr_guestfs_vg_activate_args (XDR *, guestfs_vg_activate_args*);
-extern bool_t xdr_guestfs_lvresize_args (XDR *, guestfs_lvresize_args*);
-extern bool_t xdr_guestfs_resize2fs_args (XDR *, guestfs_resize2fs_args*);
-extern bool_t xdr_guestfs_find_args (XDR *, guestfs_find_args*);
-extern bool_t xdr_guestfs_find_ret (XDR *, guestfs_find_ret*);
-extern bool_t xdr_guestfs_e2fsck_f_args (XDR *, guestfs_e2fsck_f_args*);
-extern bool_t xdr_guestfs_sleep_args (XDR *, guestfs_sleep_args*);
-extern bool_t xdr_guestfs_ntfs_3g_probe_args (XDR *, guestfs_ntfs_3g_probe_args*);
-extern bool_t xdr_guestfs_ntfs_3g_probe_ret (XDR *, guestfs_ntfs_3g_probe_ret*);
-extern bool_t xdr_guestfs_sh_args (XDR *, guestfs_sh_args*);
-extern bool_t xdr_guestfs_sh_ret (XDR *, guestfs_sh_ret*);
-extern bool_t xdr_guestfs_sh_lines_args (XDR *, guestfs_sh_lines_args*);
-extern bool_t xdr_guestfs_sh_lines_ret (XDR *, guestfs_sh_lines_ret*);
-extern bool_t xdr_guestfs_glob_expand_args (XDR *, guestfs_glob_expand_args*);
-extern bool_t xdr_guestfs_glob_expand_ret (XDR *, guestfs_glob_expand_ret*);
-extern bool_t xdr_guestfs_scrub_device_args (XDR *, guestfs_scrub_device_args*);
-extern bool_t xdr_guestfs_scrub_file_args (XDR *, guestfs_scrub_file_args*);
-extern bool_t xdr_guestfs_scrub_freespace_args (XDR *, guestfs_scrub_freespace_args*);
-extern bool_t xdr_guestfs_mkdtemp_args (XDR *, guestfs_mkdtemp_args*);
-extern bool_t xdr_guestfs_mkdtemp_ret (XDR *, guestfs_mkdtemp_ret*);
-extern bool_t xdr_guestfs_wc_l_args (XDR *, guestfs_wc_l_args*);
-extern bool_t xdr_guestfs_wc_l_ret (XDR *, guestfs_wc_l_ret*);
-extern bool_t xdr_guestfs_wc_w_args (XDR *, guestfs_wc_w_args*);
-extern bool_t xdr_guestfs_wc_w_ret (XDR *, guestfs_wc_w_ret*);
-extern bool_t xdr_guestfs_wc_c_args (XDR *, guestfs_wc_c_args*);
-extern bool_t xdr_guestfs_wc_c_ret (XDR *, guestfs_wc_c_ret*);
-extern bool_t xdr_guestfs_head_args (XDR *, guestfs_head_args*);
-extern bool_t xdr_guestfs_head_ret (XDR *, guestfs_head_ret*);
-extern bool_t xdr_guestfs_head_n_args (XDR *, guestfs_head_n_args*);
-extern bool_t xdr_guestfs_head_n_ret (XDR *, guestfs_head_n_ret*);
-extern bool_t xdr_guestfs_tail_args (XDR *, guestfs_tail_args*);
-extern bool_t xdr_guestfs_tail_ret (XDR *, guestfs_tail_ret*);
-extern bool_t xdr_guestfs_tail_n_args (XDR *, guestfs_tail_n_args*);
-extern bool_t xdr_guestfs_tail_n_ret (XDR *, guestfs_tail_n_ret*);
-extern bool_t xdr_guestfs_df_ret (XDR *, guestfs_df_ret*);
-extern bool_t xdr_guestfs_df_h_ret (XDR *, guestfs_df_h_ret*);
-extern bool_t xdr_guestfs_du_args (XDR *, guestfs_du_args*);
-extern bool_t xdr_guestfs_du_ret (XDR *, guestfs_du_ret*);
-extern bool_t xdr_guestfs_initrd_list_args (XDR *, guestfs_initrd_list_args*);
-extern bool_t xdr_guestfs_initrd_list_ret (XDR *, guestfs_initrd_list_ret*);
-extern bool_t xdr_guestfs_mount_loop_args (XDR *, guestfs_mount_loop_args*);
-extern bool_t xdr_guestfs_mkswap_args (XDR *, guestfs_mkswap_args*);
-extern bool_t xdr_guestfs_mkswap_L_args (XDR *, guestfs_mkswap_L_args*);
-extern bool_t xdr_guestfs_mkswap_U_args (XDR *, guestfs_mkswap_U_args*);
-extern bool_t xdr_guestfs_mknod_args (XDR *, guestfs_mknod_args*);
-extern bool_t xdr_guestfs_mkfifo_args (XDR *, guestfs_mkfifo_args*);
-extern bool_t xdr_guestfs_mknod_b_args (XDR *, guestfs_mknod_b_args*);
-extern bool_t xdr_guestfs_mknod_c_args (XDR *, guestfs_mknod_c_args*);
-extern bool_t xdr_guestfs_umask_args (XDR *, guestfs_umask_args*);
-extern bool_t xdr_guestfs_umask_ret (XDR *, guestfs_umask_ret*);
-extern bool_t xdr_guestfs_readdir_args (XDR *, guestfs_readdir_args*);
-extern bool_t xdr_guestfs_readdir_ret (XDR *, guestfs_readdir_ret*);
-extern bool_t xdr_guestfs_procedure (XDR *, guestfs_procedure*);
-extern bool_t xdr_guestfs_message_direction (XDR *, guestfs_message_direction*);
-extern bool_t xdr_guestfs_message_status (XDR *, guestfs_message_status*);
-extern bool_t xdr_guestfs_message_error (XDR *, guestfs_message_error*);
-extern bool_t xdr_guestfs_message_header (XDR *, guestfs_message_header*);
-extern bool_t xdr_guestfs_chunk (XDR *, guestfs_chunk*);
-
-#else /* K&R C */
-extern bool_t xdr_str ();
-extern bool_t xdr_guestfs_lvm_int_pv ();
-extern bool_t xdr_guestfs_lvm_int_pv_list ();
-extern bool_t xdr_guestfs_lvm_int_vg ();
-extern bool_t xdr_guestfs_lvm_int_vg_list ();
-extern bool_t xdr_guestfs_lvm_int_lv ();
-extern bool_t xdr_guestfs_lvm_int_lv_list ();
-extern bool_t xdr_guestfs_int_stat ();
-extern bool_t xdr_guestfs_int_statvfs ();
-extern bool_t xdr_guestfs_int_dirent ();
-extern bool_t xdr_guestfs_int_dirent_list ();
-extern bool_t xdr_guestfs_mount_args ();
-extern bool_t xdr_guestfs_touch_args ();
-extern bool_t xdr_guestfs_cat_args ();
-extern bool_t xdr_guestfs_cat_ret ();
-extern bool_t xdr_guestfs_ll_args ();
-extern bool_t xdr_guestfs_ll_ret ();
-extern bool_t xdr_guestfs_ls_args ();
-extern bool_t xdr_guestfs_ls_ret ();
-extern bool_t xdr_guestfs_list_devices_ret ();
-extern bool_t xdr_guestfs_list_partitions_ret ();
-extern bool_t xdr_guestfs_pvs_ret ();
-extern bool_t xdr_guestfs_vgs_ret ();
-extern bool_t xdr_guestfs_lvs_ret ();
-extern bool_t xdr_guestfs_pvs_full_ret ();
-extern bool_t xdr_guestfs_vgs_full_ret ();
-extern bool_t xdr_guestfs_lvs_full_ret ();
-extern bool_t xdr_guestfs_read_lines_args ();
-extern bool_t xdr_guestfs_read_lines_ret ();
-extern bool_t xdr_guestfs_aug_init_args ();
-extern bool_t xdr_guestfs_aug_defvar_args ();
-extern bool_t xdr_guestfs_aug_defvar_ret ();
-extern bool_t xdr_guestfs_aug_defnode_args ();
-extern bool_t xdr_guestfs_aug_defnode_ret ();
-extern bool_t xdr_guestfs_aug_get_args ();
-extern bool_t xdr_guestfs_aug_get_ret ();
-extern bool_t xdr_guestfs_aug_set_args ();
-extern bool_t xdr_guestfs_aug_insert_args ();
-extern bool_t xdr_guestfs_aug_rm_args ();
-extern bool_t xdr_guestfs_aug_rm_ret ();
-extern bool_t xdr_guestfs_aug_mv_args ();
-extern bool_t xdr_guestfs_aug_match_args ();
-extern bool_t xdr_guestfs_aug_match_ret ();
-extern bool_t xdr_guestfs_aug_ls_args ();
-extern bool_t xdr_guestfs_aug_ls_ret ();
-extern bool_t xdr_guestfs_rm_args ();
-extern bool_t xdr_guestfs_rmdir_args ();
-extern bool_t xdr_guestfs_rm_rf_args ();
-extern bool_t xdr_guestfs_mkdir_args ();
-extern bool_t xdr_guestfs_mkdir_p_args ();
-extern bool_t xdr_guestfs_chmod_args ();
-extern bool_t xdr_guestfs_chown_args ();
-extern bool_t xdr_guestfs_exists_args ();
-extern bool_t xdr_guestfs_exists_ret ();
-extern bool_t xdr_guestfs_is_file_args ();
-extern bool_t xdr_guestfs_is_file_ret ();
-extern bool_t xdr_guestfs_is_dir_args ();
-extern bool_t xdr_guestfs_is_dir_ret ();
-extern bool_t xdr_guestfs_pvcreate_args ();
-extern bool_t xdr_guestfs_vgcreate_args ();
-extern bool_t xdr_guestfs_lvcreate_args ();
-extern bool_t xdr_guestfs_mkfs_args ();
-extern bool_t xdr_guestfs_sfdisk_args ();
-extern bool_t xdr_guestfs_write_file_args ();
-extern bool_t xdr_guestfs_umount_args ();
-extern bool_t xdr_guestfs_mounts_ret ();
-extern bool_t xdr_guestfs_file_args ();
-extern bool_t xdr_guestfs_file_ret ();
-extern bool_t xdr_guestfs_command_args ();
-extern bool_t xdr_guestfs_command_ret ();
-extern bool_t xdr_guestfs_command_lines_args ();
-extern bool_t xdr_guestfs_command_lines_ret ();
-extern bool_t xdr_guestfs_stat_args ();
-extern bool_t xdr_guestfs_stat_ret ();
-extern bool_t xdr_guestfs_lstat_args ();
-extern bool_t xdr_guestfs_lstat_ret ();
-extern bool_t xdr_guestfs_statvfs_args ();
-extern bool_t xdr_guestfs_statvfs_ret ();
-extern bool_t xdr_guestfs_tune2fs_l_args ();
-extern bool_t xdr_guestfs_tune2fs_l_ret ();
-extern bool_t xdr_guestfs_blockdev_setro_args ();
-extern bool_t xdr_guestfs_blockdev_setrw_args ();
-extern bool_t xdr_guestfs_blockdev_getro_args ();
-extern bool_t xdr_guestfs_blockdev_getro_ret ();
-extern bool_t xdr_guestfs_blockdev_getss_args ();
-extern bool_t xdr_guestfs_blockdev_getss_ret ();
-extern bool_t xdr_guestfs_blockdev_getbsz_args ();
-extern bool_t xdr_guestfs_blockdev_getbsz_ret ();
-extern bool_t xdr_guestfs_blockdev_setbsz_args ();
-extern bool_t xdr_guestfs_blockdev_getsz_args ();
-extern bool_t xdr_guestfs_blockdev_getsz_ret ();
-extern bool_t xdr_guestfs_blockdev_getsize64_args ();
-extern bool_t xdr_guestfs_blockdev_getsize64_ret ();
-extern bool_t xdr_guestfs_blockdev_flushbufs_args ();
-extern bool_t xdr_guestfs_blockdev_rereadpt_args ();
-extern bool_t xdr_guestfs_upload_args ();
-extern bool_t xdr_guestfs_download_args ();
-extern bool_t xdr_guestfs_checksum_args ();
-extern bool_t xdr_guestfs_checksum_ret ();
-extern bool_t xdr_guestfs_tar_in_args ();
-extern bool_t xdr_guestfs_tar_out_args ();
-extern bool_t xdr_guestfs_tgz_in_args ();
-extern bool_t xdr_guestfs_tgz_out_args ();
-extern bool_t xdr_guestfs_mount_ro_args ();
-extern bool_t xdr_guestfs_mount_options_args ();
-extern bool_t xdr_guestfs_mount_vfs_args ();
-extern bool_t xdr_guestfs_debug_args ();
-extern bool_t xdr_guestfs_debug_ret ();
-extern bool_t xdr_guestfs_lvremove_args ();
-extern bool_t xdr_guestfs_vgremove_args ();
-extern bool_t xdr_guestfs_pvremove_args ();
-extern bool_t xdr_guestfs_set_e2label_args ();
-extern bool_t xdr_guestfs_get_e2label_args ();
-extern bool_t xdr_guestfs_get_e2label_ret ();
-extern bool_t xdr_guestfs_set_e2uuid_args ();
-extern bool_t xdr_guestfs_get_e2uuid_args ();
-extern bool_t xdr_guestfs_get_e2uuid_ret ();
-extern bool_t xdr_guestfs_fsck_args ();
-extern bool_t xdr_guestfs_fsck_ret ();
-extern bool_t xdr_guestfs_zero_args ();
-extern bool_t xdr_guestfs_grub_install_args ();
-extern bool_t xdr_guestfs_cp_args ();
-extern bool_t xdr_guestfs_cp_a_args ();
-extern bool_t xdr_guestfs_mv_args ();
-extern bool_t xdr_guestfs_drop_caches_args ();
-extern bool_t xdr_guestfs_dmesg_ret ();
-extern bool_t xdr_guestfs_equal_args ();
-extern bool_t xdr_guestfs_equal_ret ();
-extern bool_t xdr_guestfs_strings_args ();
-extern bool_t xdr_guestfs_strings_ret ();
-extern bool_t xdr_guestfs_strings_e_args ();
-extern bool_t xdr_guestfs_strings_e_ret ();
-extern bool_t xdr_guestfs_hexdump_args ();
-extern bool_t xdr_guestfs_hexdump_ret ();
-extern bool_t xdr_guestfs_zerofree_args ();
-extern bool_t xdr_guestfs_pvresize_args ();
-extern bool_t xdr_guestfs_sfdisk_N_args ();
-extern bool_t xdr_guestfs_sfdisk_l_args ();
-extern bool_t xdr_guestfs_sfdisk_l_ret ();
-extern bool_t xdr_guestfs_sfdisk_kernel_geometry_args ();
-extern bool_t xdr_guestfs_sfdisk_kernel_geometry_ret ();
-extern bool_t xdr_guestfs_sfdisk_disk_geometry_args ();
-extern bool_t xdr_guestfs_sfdisk_disk_geometry_ret ();
-extern bool_t xdr_guestfs_vg_activate_all_args ();
-extern bool_t xdr_guestfs_vg_activate_args ();
-extern bool_t xdr_guestfs_lvresize_args ();
-extern bool_t xdr_guestfs_resize2fs_args ();
-extern bool_t xdr_guestfs_find_args ();
-extern bool_t xdr_guestfs_find_ret ();
-extern bool_t xdr_guestfs_e2fsck_f_args ();
-extern bool_t xdr_guestfs_sleep_args ();
-extern bool_t xdr_guestfs_ntfs_3g_probe_args ();
-extern bool_t xdr_guestfs_ntfs_3g_probe_ret ();
-extern bool_t xdr_guestfs_sh_args ();
-extern bool_t xdr_guestfs_sh_ret ();
-extern bool_t xdr_guestfs_sh_lines_args ();
-extern bool_t xdr_guestfs_sh_lines_ret ();
-extern bool_t xdr_guestfs_glob_expand_args ();
-extern bool_t xdr_guestfs_glob_expand_ret ();
-extern bool_t xdr_guestfs_scrub_device_args ();
-extern bool_t xdr_guestfs_scrub_file_args ();
-extern bool_t xdr_guestfs_scrub_freespace_args ();
-extern bool_t xdr_guestfs_mkdtemp_args ();
-extern bool_t xdr_guestfs_mkdtemp_ret ();
-extern bool_t xdr_guestfs_wc_l_args ();
-extern bool_t xdr_guestfs_wc_l_ret ();
-extern bool_t xdr_guestfs_wc_w_args ();
-extern bool_t xdr_guestfs_wc_w_ret ();
-extern bool_t xdr_guestfs_wc_c_args ();
-extern bool_t xdr_guestfs_wc_c_ret ();
-extern bool_t xdr_guestfs_head_args ();
-extern bool_t xdr_guestfs_head_ret ();
-extern bool_t xdr_guestfs_head_n_args ();
-extern bool_t xdr_guestfs_head_n_ret ();
-extern bool_t xdr_guestfs_tail_args ();
-extern bool_t xdr_guestfs_tail_ret ();
-extern bool_t xdr_guestfs_tail_n_args ();
-extern bool_t xdr_guestfs_tail_n_ret ();
-extern bool_t xdr_guestfs_df_ret ();
-extern bool_t xdr_guestfs_df_h_ret ();
-extern bool_t xdr_guestfs_du_args ();
-extern bool_t xdr_guestfs_du_ret ();
-extern bool_t xdr_guestfs_initrd_list_args ();
-extern bool_t xdr_guestfs_initrd_list_ret ();
-extern bool_t xdr_guestfs_mount_loop_args ();
-extern bool_t xdr_guestfs_mkswap_args ();
-extern bool_t xdr_guestfs_mkswap_L_args ();
-extern bool_t xdr_guestfs_mkswap_U_args ();
-extern bool_t xdr_guestfs_mknod_args ();
-extern bool_t xdr_guestfs_mkfifo_args ();
-extern bool_t xdr_guestfs_mknod_b_args ();
-extern bool_t xdr_guestfs_mknod_c_args ();
-extern bool_t xdr_guestfs_umask_args ();
-extern bool_t xdr_guestfs_umask_ret ();
-extern bool_t xdr_guestfs_readdir_args ();
-extern bool_t xdr_guestfs_readdir_ret ();
-extern bool_t xdr_guestfs_procedure ();
-extern bool_t xdr_guestfs_message_direction ();
-extern bool_t xdr_guestfs_message_status ();
-extern bool_t xdr_guestfs_message_error ();
-extern bool_t xdr_guestfs_message_header ();
-extern bool_t xdr_guestfs_chunk ();
-
-#endif /* K&R C */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* !_GUESTFS_PROTOCOL_H_RPCGEN */