summaryrefslogtreecommitdiffstats
path: root/daemon/stubs.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-03 17:24:35 +0100
committerRichard Jones <rjones@redhat.com>2009-04-03 17:24:35 +0100
commit40ca9a57829f2e82362e391d7d998bf33c8bd671 (patch)
tree39990f925b9ae363af6d219a985a70adec9af016 /daemon/stubs.c
parentcd2fd58da3f5648a62f3fb7586cdc910c09a31af (diff)
downloadlibguestfs-40ca9a57829f2e82362e391d7d998bf33c8bd671.tar.gz
libguestfs-40ca9a57829f2e82362e391d7d998bf33c8bd671.tar.xz
libguestfs-40ca9a57829f2e82362e391d7d998bf33c8bd671.zip
Daemon and library are mostly talking to each other now.
Diffstat (limited to 'daemon/stubs.c')
-rw-r--r--daemon/stubs.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/daemon/stubs.c b/daemon/stubs.c
index 81c5b724..22fd5755 100644
--- a/daemon/stubs.c
+++ b/daemon/stubs.c
@@ -22,7 +22,7 @@
#include <rpc/types.h>
#include <rpc/xdr.h>
#include "daemon.h"
-#include "../src/guest_protocol.h"
+#include "../src/guestfs_protocol.h"
#include "actions.h"
static void mount_stub (XDR *xdr_in)
@@ -79,3 +79,19 @@ static void touch_stub (XDR *xdr_in)
reply (NULL, NULL);
}
+void dispatch_incoming_message (XDR *xdr_in)
+{
+ switch (proc_nr) {
+ case GUESTFS_PROC_MOUNT:
+ mount_stub (xdr_in);
+ break;
+ case GUESTFS_PROC_SYNC:
+ sync_stub (xdr_in);
+ break;
+ case GUESTFS_PROC_TOUCH:
+ touch_stub (xdr_in);
+ break;
+ default:
+ reply_with_error ("dispatch_incoming_message: unknown procedure number %d", proc_nr);
+ }
+}