diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-03 17:24:35 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-03 17:24:35 +0100 |
commit | 40ca9a57829f2e82362e391d7d998bf33c8bd671 (patch) | |
tree | 39990f925b9ae363af6d219a985a70adec9af016 /src/guestfs_protocol.c | |
parent | cd2fd58da3f5648a62f3fb7586cdc910c09a31af (diff) | |
download | libguestfs-40ca9a57829f2e82362e391d7d998bf33c8bd671.tar.gz libguestfs-40ca9a57829f2e82362e391d7d998bf33c8bd671.tar.xz libguestfs-40ca9a57829f2e82362e391d7d998bf33c8bd671.zip |
Daemon and library are mostly talking to each other now.
Diffstat (limited to 'src/guestfs_protocol.c')
-rw-r--r-- | src/guestfs_protocol.c | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/src/guestfs_protocol.c b/src/guestfs_protocol.c new file mode 100644 index 00000000..8a590852 --- /dev/null +++ b/src/guestfs_protocol.c @@ -0,0 +1,78 @@ +/* + * Please do not edit this file. + * It was generated using rpcgen. + */ + +#include "guestfs_protocol.h" + +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_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_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; +} |