blob: d96f1adec6348a6e1f06c2cd22caa55e12844ca8 [file] [log] [blame]
Michael Rothd8ca6852012-01-19 22:04:34 -06001/*
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
18void qmp_guest_shutdown(bool has_mode, const char *mode, Error **err)
19{
20 error_set(err, QERR_UNSUPPORTED);
21}
22
23int64_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
29void qmp_guest_file_close(int64_t handle, Error **err)
30{
31 error_set(err, QERR_UNSUPPORTED);
32}
33
34GuestFileRead *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
41GuestFileWrite *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
48GuestFileSeek *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
55void 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 */
63GuestFsfreezeStatus 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 */
73int64_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 */
82int64_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 */
89void ga_command_state_init(GAState *s, GACommandState *cs)
90{
91}