s390x: remove s390-zipl.rom
[qemu/ar7.git] / qga / guest-agent-core.h
blob238dc6b08df793c3a71cc78308805beb96714157
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 /* Mapping of whence codes used by guest-file-seek. */
19 enum {
20 QGA_SEEK_SET = 0,
21 QGA_SEEK_CUR = 1,
22 QGA_SEEK_END = 2,
25 typedef struct GAState GAState;
26 typedef struct GACommandState GACommandState;
27 extern GAState *ga_state;
29 GList *ga_command_blacklist_init(GList *blacklist);
30 void ga_command_state_init(GAState *s, GACommandState *cs);
31 void ga_command_state_add(GACommandState *cs,
32 void (*init)(void),
33 void (*cleanup)(void));
34 void ga_command_state_init_all(GACommandState *cs);
35 void ga_command_state_cleanup_all(GACommandState *cs);
36 GACommandState *ga_command_state_new(void);
37 bool ga_logging_enabled(GAState *s);
38 void ga_disable_logging(GAState *s);
39 void ga_enable_logging(GAState *s);
40 void GCC_FMT_ATTR(1, 2) slog(const gchar *fmt, ...);
41 void ga_set_response_delimited(GAState *s);
42 bool ga_is_frozen(GAState *s);
43 void ga_set_frozen(GAState *s);
44 void ga_unset_frozen(GAState *s);
45 const char *ga_fsfreeze_hook(GAState *s);
46 int64_t ga_get_fd_handle(GAState *s, Error **errp);
48 #ifndef _WIN32
49 void reopen_fd_to_null(int fd);
50 #endif