[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v11 5/6] qapi: add a QmpInputVisitor that does s
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] [PATCH v11 5/6] qapi: add a QmpInputVisitor that does string conversion |
Date: |
Mon, 12 Sep 2016 17:30:53 +0100 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
On Mon, Sep 12, 2016 at 05:23:47PM +0100, Daniel P. Berrange wrote:
> On Mon, Sep 12, 2016 at 06:21:32PM +0200, Markus Armbruster wrote:
> > "Daniel P. Berrange" <address@hidden> writes:
> >
> > > 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.
> > >
> > > Reviewed-by: Marc-André Lureau <address@hidden>
> > > Signed-off-by: Daniel P. Berrange <address@hidden>
> >
> > Ignorant question: is this used by the next patch?
>
> Yes indeed :-)
>
> We use the qdict_crumpl() method to turn the command line QemuOpts
> into a QDict, and then this new mode for QmpInputVisitor for the
> visiting this QDict, thus eliminating need to use OptsVisitor in
> QOM.
Oh and obviously my commit message needs fixing to say
QObjectInputVisitor not QmpInputVisitor now :-)
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
- [Qemu-devel] [PATCH v11 0/6] QAPI/QOM work for non-scalar object properties, Daniel P. Berrange, 2016/09/05
- [Qemu-devel] [PATCH v11 2/6] option: make parse_option_bool/number non-static, Daniel P. Berrange, 2016/09/05
- [Qemu-devel] [PATCH v11 1/6] qdict: implement a qdict_crumple method for un-flattening a dict, Daniel P. Berrange, 2016/09/05
- [Qemu-devel] [PATCH v11 5/6] qapi: add a QmpInputVisitor that does string conversion, Daniel P. Berrange, 2016/09/05
- Re: [Qemu-devel] [PATCH v11 5/6] qapi: add a QmpInputVisitor that does string conversion, Eric Blake, 2016/09/12
- Re: [Qemu-devel] [PATCH v11 5/6] qapi: add a QmpInputVisitor that does string conversion, Markus Armbruster, 2016/09/13
Re: [Qemu-devel] [PATCH v11 5/6] qapi: add a QmpInputVisitor that does string conversion, Kevin Wolf, 2016/09/14
[Qemu-devel] [PATCH v11 3/6] qapi: rename QmpInputVisitor to QObjectInputVisitor, Daniel P. Berrange, 2016/09/05