diff options
author | Michael Roth <mdroth@linux.vnet.ibm.com> | 2011-07-19 15:41:53 -0500 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@gmail.com> | 2011-07-21 16:48:15 -0300 |
commit | 13a286d57bb5f50dbceea1fc45060a69bcb23fd1 (patch) | |
tree | e2b894eb3f1c5da5a4cea3b02ba7134db8b2a5a1 /qga/guest-agent-core.h | |
parent | ac32c7807640f04682ea17bca17c22f8b9264d62 (diff) |
guest agent: command state class
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
Diffstat (limited to 'qga/guest-agent-core.h')
-rw-r--r-- | qga/guest-agent-core.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/qga/guest-agent-core.h b/qga/guest-agent-core.h new file mode 100644 index 0000000000..688f1205b5 --- /dev/null +++ b/qga/guest-agent-core.h @@ -0,0 +1,25 @@ +/* + * QEMU Guest Agent core declarations + * + * Copyright IBM Corp. 2011 + * + * Authors: + * Adam Litke <aglitke@linux.vnet.ibm.com> + * Michael Roth <mdroth@linux.vnet.ibm.com> + * + * 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 "qapi/qmp-core.h" +#include "qemu-common.h" + +#define QGA_VERSION "1.0" + +typedef struct GACommandState GACommandState; + +void ga_command_state_add(GACommandState *cs, + void (*init)(void), + void (*cleanup)(void)); +void ga_command_state_init_all(GACommandState *cs); +void ga_command_state_cleanup_all(GACommandState *cs); +GACommandState *ga_command_state_new(void); |