qemu-ga: fixes for win32 build of qemu-ga
[qemu.git] / qga / commands-win32.c
blobd96f1adec6348a6e1f06c2cd22caa55e12844ca8
1 /*
2 * QEMU Guest Agent win32-specific command implementations
4 * Copyright IBM Corp. 2012
6 * Authors:
7 * Michael Roth <mdroth@linux.vnet.ibm.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 #include <glib.h>
14 #include "qga/guest-agent-core.h"
15 #include "qga-qmp-commands.h"
16 #include "qerror.h"
18 void qmp_guest_shutdown(bool has_mode, const char *mode, Error **err)
20 error_set(err, QERR_UNSUPPORTED);
23 int64_t qmp_guest_file_open(const char *path, bool has_mode, const char *mode, Error **err)
25 error_set(err, QERR_UNSUPPORTED);
26 return 0;
29 void qmp_guest_file_close(int64_t handle, Error **err)
31 error_set(err, QERR_UNSUPPORTED);
34 GuestFileRead *qmp_guest_file_read(int64_t handle, bool has_count,
35 int64_t count, Error **err)
37 error_set(err, QERR_UNSUPPORTED);
38 return 0;
41 GuestFileWrite *qmp_guest_file_write(int64_t handle, const char *buf_b64,
42 bool has_count, int64_t count, Error **err)
44 error_set(err, QERR_UNSUPPORTED);
45 return 0;
48 GuestFileSeek *qmp_guest_file_seek(int64_t handle, int64_t offset,
49 int64_t whence, Error **err)
51 error_set(err, QERR_UNSUPPORTED);
52 return 0;
55 void qmp_guest_file_flush(int64_t handle, Error **err)
57 error_set(err, QERR_UNSUPPORTED);
61 * Return status of freeze/thaw
63 GuestFsfreezeStatus qmp_guest_fsfreeze_status(Error **err)
65 error_set(err, QERR_UNSUPPORTED);
66 return 0;
70 * Walk list of mounted file systems in the guest, and freeze the ones which
71 * are real local file systems.
73 int64_t qmp_guest_fsfreeze_freeze(Error **err)
75 error_set(err, QERR_UNSUPPORTED);
76 return 0;
80 * Walk list of frozen file systems in the guest, and thaw them.
82 int64_t qmp_guest_fsfreeze_thaw(Error **err)
84 error_set(err, QERR_UNSUPPORTED);
85 return 0;
88 /* register init/cleanup routines for stateful command groups */
89 void ga_command_state_init(GAState *s, GACommandState *cs)