summaryrefslogtreecommitdiffstats
path: root/generator
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 /generator
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 'generator')
-rw-r--r--generator/generator_xdr.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/generator/generator_xdr.ml b/generator/generator_xdr.ml
index c6d8a4d0..ca114c59 100644
--- a/generator/generator_xdr.ml
+++ b/generator/generator_xdr.ml
@@ -158,7 +158,7 @@ let generate_xdr () =
*/
const GUESTFS_PROGRAM = 0x2000F5F5;
-const GUESTFS_PROTOCOL_VERSION = 3;
+const GUESTFS_PROTOCOL_VERSION = 4;
/* These constants must be larger than any possible message length. */
const GUESTFS_LAUNCH_FLAG = 0xf5f55ff5;
@@ -193,6 +193,8 @@ struct guestfs_message_header {
guestfs_procedure proc; /* GUESTFS_PROC_x */
guestfs_message_direction direction;
unsigned serial; /* message serial number */
+ unsigned hyper progress_hint; /* upload hint for progress bar */
+ unsigned hyper optargs_bitmask; /* bitmask for optional args */
guestfs_message_status status;
};