ivshmem: use qemu_strtosz()
[qemu/ar7.git] / qga / vss-win32 / requester.h
blobc3093cf4b641df1b5b3ae061fcba8fc1e519951f
1 /*
2 * QEMU Guest Agent VSS requester declarations
4 * Copyright Hitachi Data Systems Corp. 2013
6 * Authors:
7 * Tomoki Sekiyama <tomoki.sekiyama@hds.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
13 #ifndef VSS_WIN32_REQUESTER_H
14 #define VSS_WIN32_REQUESTER_H
16 #include <basetyps.h> /* STDAPI */
17 #include "qemu/compiler.h"
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
23 struct Error;
25 /* Callback to set Error; used to avoid linking glib to the DLL */
26 typedef void (*ErrorSetFunc)(struct Error **errp,
27 const char *src, int line, const char *func,
28 int win32_err, const char *fmt, ...)
29 GCC_FMT_ATTR(6, 7);
30 typedef struct ErrorSet {
31 ErrorSetFunc error_setg_win32;
32 struct Error **errp; /* restriction: must not be null */
33 } ErrorSet;
35 STDAPI requester_init(void);
36 STDAPI requester_deinit(void);
38 typedef void (*QGAVSSRequesterFunc)(int *, ErrorSet *);
39 void requester_freeze(int *num_vols, ErrorSet *errset);
40 void requester_thaw(int *num_vols, ErrorSet *errset);
42 #ifdef __cplusplus
44 #endif
46 #endif