]>
git.proxmox.com Git - qemu.git/blob - qga/commands-win32.c
2 * QEMU Guest Agent win32-specific command implementations
4 * Copyright IBM Corp. 2012
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.
14 #include "qga/guest-agent-core.h"
15 #include "qga-qmp-commands.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
);
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
);
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
);
48 GuestFileSeek
*qmp_guest_file_seek(int64_t handle
, int64_t offset
,
49 int64_t whence
, Error
**err
)
51 error_set(err
, QERR_UNSUPPORTED
);
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
);
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
);
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
);
88 /* register init/cleanup routines for stateful command groups */
89 void ga_command_state_init(GAState
*s
, GACommandState
*cs
)