timer/aspeed: fix timer enablement when a reload is not set
[qemu/rayw.git] / qga / guest-agent-core.h
blob3e8a4acff22d14f81303b904a42489653bd34ee0
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"
15 #include "qga-qmp-commands.h"
17 #define QGA_READ_COUNT_DEFAULT 4096
19 typedef struct GAState GAState;
20 typedef struct GACommandState GACommandState;
22 extern GAState *ga_state;
23 extern QmpCommandList ga_commands;
25 GList *ga_command_blacklist_init(GList *blacklist);
26 void ga_command_state_init(GAState *s, GACommandState *cs);
27 void ga_command_state_add(GACommandState *cs,
28 void (*init)(void),
29 void (*cleanup)(void));
30 void ga_command_state_init_all(GACommandState *cs);
31 void ga_command_state_cleanup_all(GACommandState *cs);
32 GACommandState *ga_command_state_new(void);
33 void ga_command_state_free(GACommandState *cs);
34 bool ga_logging_enabled(GAState *s);
35 void ga_disable_logging(GAState *s);
36 void ga_enable_logging(GAState *s);
37 void GCC_FMT_ATTR(1, 2) slog(const gchar *fmt, ...);
38 void ga_set_response_delimited(GAState *s);
39 bool ga_is_frozen(GAState *s);
40 void ga_set_frozen(GAState *s);
41 void ga_unset_frozen(GAState *s);
42 const char *ga_fsfreeze_hook(GAState *s);
43 int64_t ga_get_fd_handle(GAState *s, Error **errp);
44 int ga_parse_whence(GuestFileWhence *whence, Error **errp);
46 #ifndef _WIN32
47 void reopen_fd_to_null(int fd);
48 #endif