summaryrefslogtreecommitdiffstats
path: root/src/proto.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-12-01 10:30:44 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-12-01 13:34:28 +0000
commit3aa8182c3cc478bf723205f1a4dd84e160768448 (patch)
treedd4da33344a17fe4da7a997dd9d4d8aecbbb07da /src/proto.c
parentfdc8805362c6fc587bb7985c5290362ad3094f4e (diff)
downloadlibguestfs-3aa8182c3cc478bf723205f1a4dd84e160768448.tar.gz
libguestfs-3aa8182c3cc478bf723205f1a4dd84e160768448.tar.xz
libguestfs-3aa8182c3cc478bf723205f1a4dd84e160768448.zip
protocol: Upload progress messages and optional arguments.
Two unrelated changes to the protocol to support progress messages during uploads, and optional arguments. Note that this makes an incompatible change to the protocol, and this is reflected in the protocol version field (3 -> 4).
Diffstat (limited to 'src/proto.c')
-rw-r--r--src/proto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proto.c b/src/proto.c
index 5d924e86..5c22e3d6 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -658,6 +658,8 @@ guestfs___send (guestfs_h *g, int proc_nr, xdrproc_t xdrp, char *args)
hdr.direction = GUESTFS_DIRECTION_CALL;
hdr.serial = serial;
hdr.status = GUESTFS_STATUS_OK;
+ hdr.progress_hint = 0;
+ hdr.optargs_bitmask = 0;
if (!xdr_guestfs_message_header (&xdr, &hdr)) {
error (g, _("xdr_guestfs_message_header failed"));