Statistics
| Branch: | Revision:

root / qga / guest-agent-core.h @ 48ff7a62

History | View | Annotate | Download (886 Bytes)

1 13a286d5 Michael Roth
/*
2 13a286d5 Michael Roth
 * QEMU Guest Agent core declarations
3 13a286d5 Michael Roth
 *
4 13a286d5 Michael Roth
 * Copyright IBM Corp. 2011
5 13a286d5 Michael Roth
 *
6 13a286d5 Michael Roth
 * Authors:
7 13a286d5 Michael Roth
 *  Adam Litke        <aglitke@linux.vnet.ibm.com>
8 13a286d5 Michael Roth
 *  Michael Roth      <mdroth@linux.vnet.ibm.com>
9 13a286d5 Michael Roth
 *
10 13a286d5 Michael Roth
 * This work is licensed under the terms of the GNU GPL, version 2 or later.
11 13a286d5 Michael Roth
 * See the COPYING file in the top-level directory.
12 13a286d5 Michael Roth
 */
13 13a286d5 Michael Roth
#include "qapi/qmp-core.h"
14 13a286d5 Michael Roth
#include "qemu-common.h"
15 13a286d5 Michael Roth
16 13a286d5 Michael Roth
#define QGA_VERSION "1.0"
17 13a286d5 Michael Roth
18 48ff7a62 Michael Roth
typedef struct GAState GAState;
19 13a286d5 Michael Roth
typedef struct GACommandState GACommandState;
20 13a286d5 Michael Roth
21 13a286d5 Michael Roth
void ga_command_state_add(GACommandState *cs,
22 13a286d5 Michael Roth
                          void (*init)(void),
23 13a286d5 Michael Roth
                          void (*cleanup)(void));
24 13a286d5 Michael Roth
void ga_command_state_init_all(GACommandState *cs);
25 13a286d5 Michael Roth
void ga_command_state_cleanup_all(GACommandState *cs);
26 13a286d5 Michael Roth
GACommandState *ga_command_state_new(void);
27 48ff7a62 Michael Roth
bool ga_logging_enabled(GAState *s);
28 48ff7a62 Michael Roth
void ga_disable_logging(GAState *s);
29 48ff7a62 Michael Roth
void ga_enable_logging(GAState *s);