]> Git Repo - qemu.git/blame_incremental - qga/guest-agent-core.h
linux-user: Fix definition of target_sigevent for 32-bit guests
[qemu.git] / qga / guest-agent-core.h
... / ...
CommitLineData
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 */
13#include "qapi/qmp/dispatch.h"
14#include "qemu-common.h"
15#include "qga-qmp-commands.h"
16
17#define QGA_READ_COUNT_DEFAULT 4096
18
19typedef struct GAState GAState;
20typedef struct GACommandState GACommandState;
21extern GAState *ga_state;
22
23GList *ga_command_blacklist_init(GList *blacklist);
24void ga_command_state_init(GAState *s, GACommandState *cs);
25void ga_command_state_add(GACommandState *cs,
26 void (*init)(void),
27 void (*cleanup)(void));
28void ga_command_state_init_all(GACommandState *cs);
29void ga_command_state_cleanup_all(GACommandState *cs);
30GACommandState *ga_command_state_new(void);
31void ga_command_state_free(GACommandState *cs);
32bool ga_logging_enabled(GAState *s);
33void ga_disable_logging(GAState *s);
34void ga_enable_logging(GAState *s);
35void GCC_FMT_ATTR(1, 2) slog(const gchar *fmt, ...);
36void ga_set_response_delimited(GAState *s);
37bool ga_is_frozen(GAState *s);
38void ga_set_frozen(GAState *s);
39void ga_unset_frozen(GAState *s);
40const char *ga_fsfreeze_hook(GAState *s);
41int64_t ga_get_fd_handle(GAState *s, Error **errp);
42int ga_parse_whence(GuestFileWhence *whence, Error **errp);
43
44#ifndef _WIN32
45void reopen_fd_to_null(int fd);
46#endif
This page took 0.020363 seconds and 4 git commands to generate.