2011-07-20 00:41:53 +04:00
|
|
|
/*
|
|
|
|
* QEMU Guest Agent core declarations
|
|
|
|
*
|
|
|
|
* Copyright IBM Corp. 2011
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Adam Litke <aglitke@linux.vnet.ibm.com>
|
|
|
|
* Michael Roth <mdroth@linux.vnet.ibm.com>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
|
|
* See the COPYING file in the top-level directory.
|
|
|
|
*/
|
|
|
|
#include "qapi/qmp-core.h"
|
|
|
|
#include "qemu-common.h"
|
|
|
|
|
|
|
|
#define QGA_VERSION "1.0"
|
2012-01-19 10:18:20 +04:00
|
|
|
#define QGA_READ_COUNT_DEFAULT 4096
|
2011-07-20 00:41:53 +04:00
|
|
|
|
2011-07-21 00:19:37 +04:00
|
|
|
typedef struct GAState GAState;
|
2011-07-20 00:41:53 +04:00
|
|
|
typedef struct GACommandState GACommandState;
|
2012-02-07 23:56:48 +04:00
|
|
|
extern GAState *ga_state;
|
2011-07-20 00:41:53 +04:00
|
|
|
|
2011-07-20 00:41:55 +04:00
|
|
|
void ga_command_state_init(GAState *s, GACommandState *cs);
|
2011-07-20 00:41:53 +04:00
|
|
|
void ga_command_state_add(GACommandState *cs,
|
|
|
|
void (*init)(void),
|
|
|
|
void (*cleanup)(void));
|
|
|
|
void ga_command_state_init_all(GACommandState *cs);
|
|
|
|
void ga_command_state_cleanup_all(GACommandState *cs);
|
|
|
|
GACommandState *ga_command_state_new(void);
|
2011-07-21 00:19:37 +04:00
|
|
|
bool ga_logging_enabled(GAState *s);
|
|
|
|
void ga_disable_logging(GAState *s);
|
|
|
|
void ga_enable_logging(GAState *s);
|
2012-01-20 08:19:27 +04:00
|
|
|
void slog(const gchar *fmt, ...);
|
2012-02-07 23:56:48 +04:00
|
|
|
void ga_set_response_delimited(GAState *s);
|