Re: [libvirt] [PATCH 10/15] qemu: capabilities: Add support for QMP schema introspection

2016-10-21 Thread Peter Krempa
On Thu, Oct 20, 2016 at 15:05:21 -0500, Eric Blake wrote: > On 10/20/2016 10:25 AM, Peter Krempa wrote: [...] > > +continue; > > +} else if (STREQ(metatype, "object")) { > > +if (**query == '+') > > +basename = virQEMUCapsQMPSchemaObjectGetType(*que

Re: [libvirt] [PATCH 10/15] qemu: capabilities: Add support for QMP schema introspection

2016-10-20 Thread Eric Blake
On 10/20/2016 10:25 AM, Peter Krempa wrote: > Allow detecting capabilities according to the qemu QMP schema. This is > necessary as sometimes the availability of certain options depends on > the presence of a field in the schema. > > This patch adds support for loading the QMP schema when detectin

[libvirt] [PATCH 10/15] qemu: capabilities: Add support for QMP schema introspection

2016-10-20 Thread Peter Krempa
Allow detecting capabilities according to the qemu QMP schema. This is necessary as sometimes the availability of certain options depends on the presence of a field in the schema. This patch adds support for loading the QMP schema when detecting qemu capabilities and adds a very simple query langu