summaryrefslogtreecommitdiffstats
path: root/daemon/stubs.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-03 11:29:55 +0100
committerRichard Jones <rjones@redhat.com>2009-04-03 11:29:55 +0100
commit55bf8fd622e9f84364b505db6591ace3ec2b5447 (patch)
tree321902c9b7ec7a09838776c331a47f6d9c746a0a /daemon/stubs.c
parenta8b84fe17f5df830d3498ecf885e52f0914182dd (diff)
downloadlibguestfs-55bf8fd622e9f84364b505db6591ace3ec2b5447.tar.gz
libguestfs-55bf8fd622e9f84364b505db6591ace3ec2b5447.tar.xz
libguestfs-55bf8fd622e9f84364b505db6591ace3ec2b5447.zip
Lots more auto-generation.
Diffstat (limited to 'daemon/stubs.c')
-rw-r--r--daemon/stubs.c81
1 files changed, 81 insertions, 0 deletions
diff --git a/daemon/stubs.c b/daemon/stubs.c
new file mode 100644
index 00000000..81c5b724
--- /dev/null
+++ b/daemon/stubs.c
@@ -0,0 +1,81 @@
+/* libguestfs generated file
+ * WARNING: THIS FILE IS GENERATED BY 'src/generator.ml'.
+ * ANY CHANGES YOU MAKE TO THIS FILE WILL BE LOST.
+ *
+ * Copyright (C) 2009 Red Hat Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#include <rpc/types.h>
+#include <rpc/xdr.h>
+#include "daemon.h"
+#include "../src/guest_protocol.h"
+#include "actions.h"
+
+static void mount_stub (XDR *xdr_in)
+{
+ int r;
+ struct guestfs_mount_args args;
+ const char *device;
+ const char *mountpoint;
+
+ if (!xdr_guestfs_mount_args (xdr_in, &args)) {
+ reply_with_error ("mount: daemon failed to decode procedure arguments");
+ return;
+ }
+ device = args.device;
+ mountpoint = args.mountpoint;
+
+ r = do_mount (device, mountpoint);
+ if (r == -1)
+ /* do_mount has already called reply_with_error, so just return */
+ return;
+
+ reply (NULL, NULL);
+}
+
+static void sync_stub (XDR *xdr_in)
+{
+ int r;
+
+ r = do_sync ();
+ if (r == -1)
+ /* do_sync has already called reply_with_error, so just return */
+ return;
+
+ reply (NULL, NULL);
+}
+
+static void touch_stub (XDR *xdr_in)
+{
+ int r;
+ struct guestfs_touch_args args;
+ const char *path;
+
+ if (!xdr_guestfs_touch_args (xdr_in, &args)) {
+ reply_with_error ("touch: daemon failed to decode procedure arguments");
+ return;
+ }
+ path = args.path;
+
+ r = do_touch (path);
+ if (r == -1)
+ /* do_touch has already called reply_with_error, so just return */
+ return;
+
+ reply (NULL, NULL);
+}
+