]>
Commit | Line | Data |
---|---|---|
13a286d5 MR |
1 | /* |
2 | * QEMU Guest Agent core declarations | |
3 | * | |
4 | * Copyright IBM Corp. 2011 | |
5 | * | |
6 | * Authors: | |
7 | * Adam Litke <[email protected]> | |
8 | * Michael Roth <[email protected]> | |
9 | * | |
10 | * This work is licensed under the terms of the GNU GPL, version 2 or later. | |
11 | * See the COPYING file in the top-level directory. | |
12 | */ | |
7b1b5d19 | 13 | #include "qapi/qmp/dispatch.h" |
13a286d5 MR |
14 | #include "qemu-common.h" |
15 | ||
125b310e | 16 | #define QGA_READ_COUNT_DEFAULT 4096 |
13a286d5 | 17 | |
48ff7a62 | 18 | typedef struct GAState GAState; |
13a286d5 | 19 | typedef struct GACommandState GACommandState; |
3cf0bed8 | 20 | extern GAState *ga_state; |
13a286d5 | 21 | |
1281c08a | 22 | GList *ga_command_blacklist_init(GList *blacklist); |
e3d4d252 | 23 | void ga_command_state_init(GAState *s, GACommandState *cs); |
13a286d5 MR |
24 | void ga_command_state_add(GACommandState *cs, |
25 | void (*init)(void), | |
26 | void (*cleanup)(void)); | |
27 | void ga_command_state_init_all(GACommandState *cs); | |
28 | void ga_command_state_cleanup_all(GACommandState *cs); | |
29 | GACommandState *ga_command_state_new(void); | |
48ff7a62 MR |
30 | bool ga_logging_enabled(GAState *s); |
31 | void ga_disable_logging(GAState *s); | |
32 | void ga_enable_logging(GAState *s); | |
d607a523 | 33 | void GCC_FMT_ATTR(1, 2) slog(const gchar *fmt, ...); |
3cf0bed8 | 34 | void ga_set_response_delimited(GAState *s); |
f22d85e9 MR |
35 | bool ga_is_frozen(GAState *s); |
36 | void ga_set_frozen(GAState *s); | |
37 | void ga_unset_frozen(GAState *s); | |
ec0f694c | 38 | const char *ga_fsfreeze_hook(GAState *s); |
39097daf | 39 | int64_t ga_get_fd_handle(GAState *s, Error **errp); |
04b4e75f LC |
40 | |
41 | #ifndef _WIN32 | |
42 | void reopen_fd_to_null(int fd); | |
43 | #endif |