summaryrefslogtreecommitdiffstats
path: root/src/proto.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-12-02 13:32:40 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-12-02 13:32:40 +0000
commit65f44b459070a1dbfba66c31e0be69588e49f4a8 (patch)
tree68c0e728302eb4bdfe84bfff4f3e1d0beaa08c0f /src/proto.c
parent01d62985c3f0234fc0e9e4909c85c6a401c4bfcc (diff)
downloadlibguestfs-65f44b459070a1dbfba66c31e0be69588e49f4a8.tar.gz
libguestfs-65f44b459070a1dbfba66c31e0be69588e49f4a8.tar.xz
libguestfs-65f44b459070a1dbfba66c31e0be69588e49f4a8.zip
generator: Code to handle optional arguments in daemon functions.
Previously we only supported optional arguments for library functions (commit 14490c3e1aac61c6ac90f28828896683f64f0dc9). This extends that work so that optional arguments can also be passed through to the daemon.
Diffstat (limited to 'src/proto.c')
-rw-r--r--src/proto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/proto.c b/src/proto.c
index a5d9d2b8..0d63af60 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -693,7 +693,8 @@ guestfs___accept_from_daemon (guestfs_h *g)
}
int
-guestfs___send (guestfs_h *g, int proc_nr, uint64_t progress_hint,
+guestfs___send (guestfs_h *g, int proc_nr,
+ uint64_t progress_hint, uint64_t optargs_bitmask,
xdrproc_t xdrp, char *args)
{
struct guestfs_message_header hdr;
@@ -726,7 +727,7 @@ guestfs___send (guestfs_h *g, int proc_nr, uint64_t progress_hint,
hdr.serial = serial;
hdr.status = GUESTFS_STATUS_OK;
hdr.progress_hint = progress_hint;
- hdr.optargs_bitmask = 0;
+ hdr.optargs_bitmask = optargs_bitmask;
if (!xdr_guestfs_message_header (&xdr, &hdr)) {
error (g, _("xdr_guestfs_message_header failed"));