[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC][PATCH v1 11/12] guest agent: guest-side command imple
From: |
Michael Roth |
Subject: |
[Qemu-devel] [RFC][PATCH v1 11/12] guest agent: guest-side command implementations |
Date: |
Fri, 25 Mar 2011 14:47:58 -0500 |
This is where the actual commands/RPCs are defined. This patch is mostly
just to serve as an example, but guest-ping actually does everything it
needs to.
view_file will soon be replaced with a stateful open/read/close interface,
and shutdown will be ported over from virtagent soon as well.
Signed-off-by: Michael Roth <address@hidden>
---
guest-agent-commands.c | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
create mode 100644 guest-agent-commands.c
diff --git a/guest-agent-commands.c b/guest-agent-commands.c
new file mode 100644
index 0000000..ca8a894
--- /dev/null
+++ b/guest-agent-commands.c
@@ -0,0 +1,24 @@
+/*
+ * QEMU Guest Agent commands
+ *
+ * Copyright IBM Corp. 2011
+ *
+ * Authors:
+ * Michael Roth <address@hidden>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+
+#include "guest-agent.h"
+
+void qga_guest_ping(Error **err)
+{
+}
+
+char *qga_guest_view_file(const char *filename, Error **err)
+{
+ char *test_response = qemu_mallocz(512);
+ strcpy(test_response, "this is some text");
+ return test_response;
+}
--
1.7.0.4
- Re: [Qemu-devel] Re: [RFC][PATCH v1 05/12] qapi: fix handling for null-return async callbacks, (continued)
[Qemu-devel] [RFC][PATCH v1 04/12] qapi: fix function name typo in qmp-gen.py, Michael Roth, 2011/03/25
[Qemu-devel] [RFC][PATCH v1 06/12] qmp proxy: build qemu with guest proxy dependency, Michael Roth, 2011/03/25
[Qemu-devel] [RFC][PATCH v1 03/12] json-parser: add handling for NULL token list, Michael Roth, 2011/03/25
[Qemu-devel] [RFC][PATCH v1 08/12] qemu-char: add qmp_proxy chardev, Michael Roth, 2011/03/25
[Qemu-devel] [RFC][PATCH v1 11/12] guest agent: guest-side command implementations,
Michael Roth <=
[Qemu-devel] [RFC][PATCH v1 09/12] guest agent: core marshal/dispatch interfaces, Michael Roth, 2011/03/25
[Qemu-devel] [RFC][PATCH v1 12/12] guest agent: build qemu-ga, add QEMU-wide gio dep, Michael Roth, 2011/03/25
[Qemu-devel] [RFC][PATCH v1 07/12] qmp proxy: core code for proxying qmp requests to guest, Michael Roth, 2011/03/25
[Qemu-devel] [RFC][PATCH v1 10/12] guest agent: qemu-ga daemon, Michael Roth, 2011/03/25
[Qemu-devel] Re: [RFC][PATCH v1 00/11] QEMU Guest Agent: QMP-based host/guest communication (virtagent), Michael Roth, 2011/03/25