]> git.proxmox.com Git - mirror_qemu.git/blame - qga/guest-agent-core.h
qapi: move include files to include/qobject/
[mirror_qemu.git] / qga / guest-agent-core.h
CommitLineData
13a286d5
MR
1/*
2 * QEMU Guest Agent core declarations
3 *
4 * Copyright IBM Corp. 2011
5 *
6 * Authors:
7 * Adam Litke <aglitke@linux.vnet.ibm.com>
8 * Michael Roth <mdroth@linux.vnet.ibm.com>
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 18typedef struct GAState GAState;
13a286d5 19typedef struct GACommandState GACommandState;
3cf0bed8 20extern GAState *ga_state;
13a286d5 21
e3d4d252 22void ga_command_state_init(GAState *s, GACommandState *cs);
13a286d5
MR
23void ga_command_state_add(GACommandState *cs,
24 void (*init)(void),
25 void (*cleanup)(void));
26void ga_command_state_init_all(GACommandState *cs);
27void ga_command_state_cleanup_all(GACommandState *cs);
28GACommandState *ga_command_state_new(void);
48ff7a62
MR
29bool ga_logging_enabled(GAState *s);
30void ga_disable_logging(GAState *s);
31void ga_enable_logging(GAState *s);
42074a9d 32void slog(const gchar *fmt, ...);
3cf0bed8 33void ga_set_response_delimited(GAState *s);
f22d85e9
MR
34bool ga_is_frozen(GAState *s);
35void ga_set_frozen(GAState *s);
36void ga_unset_frozen(GAState *s);
04b4e75f
LC
37
38#ifndef _WIN32
39void reopen_fd_to_null(int fd);
40#endif