]> git.proxmox.com Git - qemu.git/blob - qga/commands-win32.c
qemu-ga: fixes for win32 build of qemu-ga
[qemu.git] / qga / commands-win32.c
1 /*
2 * QEMU Guest Agent win32-specific command implementations
3 *
4 * Copyright IBM Corp. 2012
5 *
6 * Authors:
7 * Michael Roth <mdroth@linux.vnet.ibm.com>
8 *
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.
11 */
12
13 #include <glib.h>
14 #include "qga/guest-agent-core.h"
15 #include "qga-qmp-commands.h"
16 #include "qerror.h"
17
18 void qmp_guest_shutdown(bool has_mode, const char *mode, Error **err)
19 {
20 error_set(err, QERR_UNSUPPORTED);
21 }
22
23 int64_t qmp_guest_file_open(const char *path, bool has_mode, const char *mode, Error **err)
24 {
25 error_set(err, QERR_UNSUPPORTED);
26 return 0;
27 }
28
29 void qmp_guest_file_close(int64_t handle, Error **err)
30 {
31 error_set(err, QERR_UNSUPPORTED);
32 }
33
34 GuestFileRead *qmp_guest_file_read(int64_t handle, bool has_count,
35 int64_t count, Error **err)
36 {
37 error_set(err, QERR_UNSUPPORTED);
38 return 0;
39 }
40
41 GuestFileWrite *qmp_guest_file_write(int64_t handle, const char *buf_b64,
42 bool has_count, int64_t count, Error **err)
43 {
44 error_set(err, QERR_UNSUPPORTED);
45 return 0;
46 }
47
48 GuestFileSeek *qmp_guest_file_seek(int64_t handle, int64_t offset,
49 int64_t whence, Error **err)
50 {
51 error_set(err, QERR_UNSUPPORTED);
52 return 0;
53 }
54
55 void qmp_guest_file_flush(int64_t handle, Error **err)
56 {
57 error_set(err, QERR_UNSUPPORTED);
58 }
59
60 /*
61 * Return status of freeze/thaw
62 */
63 GuestFsfreezeStatus qmp_guest_fsfreeze_status(Error **err)
64 {
65 error_set(err, QERR_UNSUPPORTED);
66 return 0;
67 }
68
69 /*
70 * Walk list of mounted file systems in the guest, and freeze the ones which
71 * are real local file systems.
72 */
73 int64_t qmp_guest_fsfreeze_freeze(Error **err)
74 {
75 error_set(err, QERR_UNSUPPORTED);
76 return 0;
77 }
78
79 /*
80 * Walk list of frozen file systems in the guest, and thaw them.
81 */
82 int64_t qmp_guest_fsfreeze_thaw(Error **err)
83 {
84 error_set(err, QERR_UNSUPPORTED);
85 return 0;
86 }
87
88 /* register init/cleanup routines for stateful command groups */
89 void ga_command_state_init(GAState *s, GACommandState *cs)
90 {
91 }