target-sparc: Introduce QOM realizefn for SPARCCPU
[qemu/ar7.git] / qga / guest-agent-core.h
blob33545983625538d89d9635e1e43e8dbe70ca2436
1 /*
2 * QEMU Guest Agent core declarations
4 * Copyright IBM Corp. 2011
6 * Authors:
7 * Adam Litke <aglitke@linux.vnet.ibm.com>
8 * Michael Roth <mdroth@linux.vnet.ibm.com>
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.
13 #include "qapi/qmp/dispatch.h"
14 #include "qemu-common.h"
16 #define QGA_READ_COUNT_DEFAULT 4096
18 typedef struct GAState GAState;
19 typedef struct GACommandState GACommandState;
20 extern GAState *ga_state;
22 void ga_command_state_init(GAState *s, GACommandState *cs);
23 void ga_command_state_add(GACommandState *cs,
24 void (*init)(void),
25 void (*cleanup)(void));
26 void ga_command_state_init_all(GACommandState *cs);
27 void ga_command_state_cleanup_all(GACommandState *cs);
28 GACommandState *ga_command_state_new(void);
29 bool ga_logging_enabled(GAState *s);
30 void ga_disable_logging(GAState *s);
31 void ga_enable_logging(GAState *s);
32 void slog(const gchar *fmt, ...);
33 void ga_set_response_delimited(GAState *s);
34 bool ga_is_frozen(GAState *s);
35 void ga_set_frozen(GAState *s);
36 void ga_unset_frozen(GAState *s);
37 const char *ga_fsfreeze_hook(GAState *s);
39 #ifndef _WIN32
40 void reopen_fd_to_null(int fd);
41 #endif