On 12/19/2013 12:47 PM, Max Reitz wrote:
> This function basically parses command-line options given as a QDict
> replacing a config file.
> 
> For instance, the QDict {"section.opt1": 42, "section.opt2": 23}
> corresponds to the config file:
> 
> [section]
> opt1 = 42
> opt2 = 23

Thanks for the examples; that helped in looking at the code.

> Signed-off-by: Max Reitz <mre...@redhat.com>
> ---
>  include/qemu/config-file.h |  6 +++
>  util/qemu-config.c         | 95 
> ++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 101 insertions(+)

> +
> +static void config_parse_qdict_section(QDict *options, QemuOptsList *opts,
> +                                       Error **errp)
> +{

> +
> +    subopts = qemu_opts_create_nofail(opts);

You need to rebase this on top of Peter's patches that removed this
function in favor of &error_abort.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to