diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-01-27 19:54:54 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-01 14:45:01 -0600 |
commit | 4f6dd9af9cf0a0138ff7733f45568c4e20b3bad1 (patch) | |
tree | 0cdbeb4a93e759bd209434e360d1e831746da8d4 /qemu-option.h | |
parent | 4e4fa398db69e22dcad23114eb7e33b4d89b10c4 (diff) |
qemu-option: Introduce default mechanism
This adds qemu_opts_set_defaults, an interface provide default values
for a QemuOpts set. Default options are parsed from a string and then
prepended to the list of existing options, or they serve as the sole
QemuOpts set.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-option.h')
-rw-r--r-- | qemu-option.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu-option.h b/qemu-option.h index 07958e4e90..e6f61e6e35 100644 --- a/qemu-option.h +++ b/qemu-option.h @@ -125,6 +125,8 @@ void qemu_opts_del(QemuOpts *opts); int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc); int qemu_opts_do_parse(QemuOpts *opts, const char *params, const char *firstname); QemuOpts *qemu_opts_parse(QemuOptsList *list, const char *params, int permit_abbrev); +void qemu_opts_set_defaults(QemuOptsList *list, const char *params, + int permit_abbrev); QemuOpts *qemu_opts_from_qdict(QemuOptsList *list, const QDict *qdict); QDict *qemu_opts_to_qdict(QemuOpts *opts, QDict *qdict); |