diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2012-04-18 17:24:01 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-06-04 13:49:34 -0300 |
commit | 4e89978e2021c0431aad9898823eb9d3526e9018 (patch) | |
tree | 2bc9c129629d5b88c1e911589223cd13fe860e2f /qemu-option.h | |
parent | 384f2139ff681cd3c26de365417cff46c186b5f0 (diff) | |
download | qemu-4e89978e2021c0431aad9898823eb9d3526e9018.zip qemu-4e89978e2021c0431aad9898823eb9d3526e9018.tar.gz qemu-4e89978e2021c0431aad9898823eb9d3526e9018.tar.bz2 |
qemu-option: qemu_opts_from_qdict(): use error_set()
do_device_add() and do_netdev_add() call qerror_report_err() to maintain
their QError semantics.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-By: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'qemu-option.h')
-rw-r--r-- | qemu-option.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu-option.h b/qemu-option.h index c0e022b..951dec3 100644 --- a/qemu-option.h +++ b/qemu-option.h @@ -132,7 +132,8 @@ 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); +QemuOpts *qemu_opts_from_qdict(QemuOptsList *list, const QDict *qdict, + Error **errp); QDict *qemu_opts_to_qdict(QemuOpts *opts, QDict *qdict); typedef int (*qemu_opts_loopfunc)(QemuOpts *opts, void *opaque); |