summaryrefslogtreecommitdiffstats
path: root/daemon/guestfsd.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/guestfsd.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/guestfsd.c')
-rw-r--r--daemon/guestfsd.c27
1 files changed, 24 insertions, 3 deletions
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
index c27d1b6e..eaba7f04 100644
--- a/daemon/guestfsd.c
+++ b/daemon/guestfsd.c
@@ -27,7 +27,10 @@
#include <getopt.h>
#include <netdb.h>
-static void xwrite (int sock, const void *buf, size_t len);
+#include "daemon.h"
+
+void xwrite (int sock, const void *buf, size_t len);
+
static void usage (void);
/* Also in guestfs.c */
@@ -177,12 +180,15 @@ main (int argc, char *argv[])
- sleep (1000000);
+
+
+
+ main_loop (sock);
exit (0);
}
-static void
+void
xwrite (int sock, const void *buf, size_t len)
{
int r;
@@ -203,3 +209,18 @@ usage (void)
{
fprintf (stderr, "guestfsd [-f] [-h host -p port]\n");
}
+
+/* Some unimplemented actions. */
+int
+do_mount (const char *device, const char *mountpoint)
+{
+ reply_with_error ("mount not implemented");
+ return -1;
+}
+
+int
+do_touch (const char *path)
+{
+ reply_with_error ("touch not implemented");
+ return -1;
+}