Statistics
| Branch: | Revision:

root / qga / guest-agent-core.h @ dc1c13d9

History | View | Annotate | Download (1.2 kB)

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 125b310e Michael Roth
#define QGA_READ_COUNT_DEFAULT 4096
17 13a286d5 Michael Roth
18 48ff7a62 Michael Roth
typedef struct GAState GAState;
19 13a286d5 Michael Roth
typedef struct GACommandState GACommandState;
20 3cf0bed8 Michael Roth
extern GAState *ga_state;
21 13a286d5 Michael Roth
22 e3d4d252 Michael Roth
void ga_command_state_init(GAState *s, GACommandState *cs);
23 13a286d5 Michael Roth
void ga_command_state_add(GACommandState *cs,
24 13a286d5 Michael Roth
                          void (*init)(void),
25 13a286d5 Michael Roth
                          void (*cleanup)(void));
26 13a286d5 Michael Roth
void ga_command_state_init_all(GACommandState *cs);
27 13a286d5 Michael Roth
void ga_command_state_cleanup_all(GACommandState *cs);
28 13a286d5 Michael Roth
GACommandState *ga_command_state_new(void);
29 48ff7a62 Michael Roth
bool ga_logging_enabled(GAState *s);
30 48ff7a62 Michael Roth
void ga_disable_logging(GAState *s);
31 48ff7a62 Michael Roth
void ga_enable_logging(GAState *s);
32 42074a9d Michael Roth
void slog(const gchar *fmt, ...);
33 3cf0bed8 Michael Roth
void ga_set_response_delimited(GAState *s);
34 f22d85e9 Michael Roth
bool ga_is_frozen(GAState *s);
35 f22d85e9 Michael Roth
void ga_set_frozen(GAState *s);
36 f22d85e9 Michael Roth
void ga_unset_frozen(GAState *s);
37 04b4e75f Luiz Capitulino
38 04b4e75f Luiz Capitulino
#ifndef _WIN32
39 04b4e75f Luiz Capitulino
void reopen_fd_to_null(int fd);
40 04b4e75f Luiz Capitulino
#endif