summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2013-11-09 12:15:47 +0800
committerKevin Wolf <kwolf@redhat.com>2013-11-14 13:09:07 +0100
commit968854c8a106243eae7a68394ce1cb85dc138837 (patch)
tree81b295358ac5d9f05554a4a9e650d14b7dcf2fb0 /include
parentd48adddac7d1839c8d734506aba6fd39fb9c3834 (diff)
downloadqemu-968854c8a106243eae7a68394ce1cb85dc138837.tar.gz
qmp: access the local QemuOptsLists for drive option
Currently we have three QemuOptsList (qemu_common_drive_opts, qemu_legacy_drive_opts, and qemu_drive_opts), only qemu_drive_opts is added to vm_config_groups[]. This patch changes query-command-line-options to access three local QemuOptsLists for drive option, and merge the description items together. Signed-off-by: Amos Kong <akong@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/config-file.h1
-rw-r--r--include/sysemu/sysemu.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/qemu/config-file.h b/include/qemu/config-file.h
index ad4a9e5c3a..508428ff32 100644
--- a/include/qemu/config-file.h
+++ b/include/qemu/config-file.h
@@ -8,6 +8,7 @@
QemuOptsList *qemu_find_opts(const char *group);
QemuOptsList *qemu_find_opts_err(const char *group, Error **errp);
void qemu_add_opts(QemuOptsList *list);
+void qemu_add_drive_opts(QemuOptsList *list);
int qemu_set_option(const char *str);
int qemu_global_option(const char *str);
void qemu_add_globals(void);
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index cd5791eb74..495dae8c39 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -193,6 +193,8 @@ QemuOpts *qemu_get_machine_opts(void);
bool usb_enabled(bool default_usb);
+extern QemuOptsList qemu_legacy_drive_opts;
+extern QemuOptsList qemu_common_drive_opts;
extern QemuOptsList qemu_drive_opts;
extern QemuOptsList qemu_chardev_opts;
extern QemuOptsList qemu_device_opts;