[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v7 3/7] qapi: add a QmpInputVisitor that does st
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v7 3/7] qapi: add a QmpInputVisitor that does string conversion |
Date: |
Wed, 13 Jul 2016 19:34:20 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 07/05/2016 07:11 AM, Daniel P. Berrange wrote:
> Currently the QmpInputVisitor assumes that all scalar
> values are directly represented as their final types.
> ie it assumes an 'int' is using QInt, and a 'bool' is
> using QBool.
>
> This adds an alternative constructor for QmpInputVisitor
> that will set it up such that it expects a QString for
> all scalar types instead.
>
> This makes it possible to use QmpInputVisitor with a
> QDict produced from QemuOpts, where everything is in
> string format.
This is almost what I need for my netdev_add fallback on my qapi subset
F series, except that I want to have a hybrid mode that accepts BOTH
native type and string. I'll take this patch and tweak it for my
series, and we can compare the difference.
>
> Reviewed-by: Marc-André Lureau <address@hidden>
> Signed-off-by: Daniel P. Berrange <address@hidden>
> ---
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v7 0/7] Provide a QOM-based authorization API, Daniel P. Berrange, 2016/07/05
- [Qemu-devel] [PATCH v7 2/7] option: make parse_option_bool/number non-static, Daniel P. Berrange, 2016/07/05
- [Qemu-devel] [PATCH v7 1/7] qdict: implement a qdict_crumple method for un-flattening a dict, Daniel P. Berrange, 2016/07/05
- [Qemu-devel] [PATCH v7 3/7] qapi: add a QmpInputVisitor that does string conversion, Daniel P. Berrange, 2016/07/05
- Re: [Qemu-devel] [PATCH v7 3/7] qapi: add a QmpInputVisitor that does string conversion,
Eric Blake <=
- [Qemu-devel] [PATCH v7 5/7] util: add QAuthZ object as an authorization base class, Daniel P. Berrange, 2016/07/05
- [Qemu-devel] [PATCH v7 4/7] qom: support arbitrary non-scalar properties with -object, Daniel P. Berrange, 2016/07/05
- [Qemu-devel] [PATCH v7 6/7] util: add QAuthZSimple object type for a simple access control list, Daniel P. Berrange, 2016/07/05
- [Qemu-devel] [PATCH v7 7/7] acl: delete existing ACL implementation, Daniel P. Berrange, 2016/07/05