aboutsummaryrefslogtreecommitdiff
path: root/qga
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2011-07-20 15:19:37 -0500
committerLuiz Capitulino <lcapitulino@gmail.com>2011-07-21 16:48:15 -0300
commit48ff7a625b3611d075d8798585df86455bb2d1fd (patch)
tree890d0c527a4c403b34ece7b02cc1c58a351bbd55 /qga
parent13a286d57bb5f50dbceea1fc45060a69bcb23fd1 (diff)
guest agent: qemu-ga daemon
This is the actual guest daemon, it listens for requests over a virtio-serial/isa-serial/unix socket channel and routes them through to dispatch routines, and writes the results back to the channel in a manner similar to QMP. A shorthand invocation: qemu-ga -d Is equivalent to: qemu-ga -m virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0 \ -f /var/run/qemu-ga.pid -d Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
Diffstat (limited to 'qga')
-rw-r--r--qga/guest-agent-core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qga/guest-agent-core.h b/qga/guest-agent-core.h
index 688f1205b5..66d1729689 100644
--- a/qga/guest-agent-core.h
+++ b/qga/guest-agent-core.h
@@ -15,6 +15,7 @@
#define QGA_VERSION "1.0"
+typedef struct GAState GAState;
typedef struct GACommandState GACommandState;
void ga_command_state_add(GACommandState *cs,
@@ -23,3 +24,6 @@ void ga_command_state_add(GACommandState *cs,
void ga_command_state_init_all(GACommandState *cs);
void ga_command_state_cleanup_all(GACommandState *cs);
GACommandState *ga_command_state_new(void);
+bool ga_logging_enabled(GAState *s);
+void ga_disable_logging(GAState *s);
+void ga_enable_logging(GAState *s);