From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a49dE-00052y-J2 for qemu-devel@nongnu.org; Wed, 02 Dec 2015 10:47:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a49dB-0001zW-6N for qemu-devel@nongnu.org; Wed, 02 Dec 2015 10:47:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a49dA-0001zL-SP for qemu-devel@nongnu.org; Wed, 02 Dec 2015 10:47:45 -0500 References: <1448040300-968-1-git-send-email-eblake@redhat.com> <1448040300-968-13-git-send-email-eblake@redhat.com> <87h9k7byqi.fsf@blackfin.pond.sub.org> <565E20C5.804@redhat.com> <87k2ox1ctq.fsf@blackfin.pond.sub.org> From: Eric Blake Message-ID: <565F129B.4080907@redhat.com> Date: Wed, 2 Dec 2015 08:47:39 -0700 MIME-Version: 1.0 In-Reply-To: <87k2ox1ctq.fsf@blackfin.pond.sub.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="V1QRagq6pH4Jr0XDS6CkJFs8lwFDuUShx" Subject: Re: [Qemu-devel] [PATCH v13 12/14] qapi: Enforce (or whitelist) case conventions on qapi members List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, Michael Roth This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --V1QRagq6pH4Jr0XDS6CkJFs8lwFDuUShx Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 12/02/2015 01:20 AM, Markus Armbruster wrote: > Hmm, this shows my use of "qapi-introspect.py -u" to find the externall= y > visible part of QAPI is flawed. >=20 > To make it work, we'd need QOM introspection, which we might want > anyway. >=20 > Additionally, a way to output just JSON rather than JSON encoded in C > would be nice. 'qapi-introspect.py -u' is already for debugging purposes. Would it be sufficient to have it do this in qmp-introspect.c? const char qmp_schema_json[] =3D "[" "{\"arg-type\": \":obj-ACPI_DVICE_OST-arg\", \"meta-type\": \"event\", \"name\": \"ACPI_DEVICE_OST\"}, " =2E.. "; /* The same, as straight JSON: [ {"arg-type": ":obj-ACPI_DVICE_OST-arg", "meta-type": "event", "name": "ACPI_DEVICE_OST"}, =2E.. ] */ If so, that's an easy patch (just visit things twice under -u mode). --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --V1QRagq6pH4Jr0XDS6CkJFs8lwFDuUShx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWXxKbAAoJEKeha0olJ0NquN0H/1R1gS3Rg22KM44Zzp0GJiI4 1o85VboIxt3+XJTfJi2xG1LeYbMqbmN3/PCWr3wvi8URV6zF8sGK8ho8tFMI5uvi 1EJtENH+ggTUdk0+5TNSd1yEtGjzb3qMtko66c4Swo7JeFk5bYJvndNbt6BtigiG D0jveH5wViO+laFfvW72RCKqTxq2GnPUJO5q7Ge0vX6QCGDnxxlVSvKVdYNfyXrb gOjcqtDtQ/N6+HrHeI5T/CxqHAotQ8OW9Y8qaOQcI0X1yZpwtb8Enx17irvGNbdH 8rbdGxw2jnEFTZm5LJ0Uj49cme29erxZm7zniEvNHCxm/KYwtbBodjZvpcGnHPk= =iA4C -----END PGP SIGNATURE----- --V1QRagq6pH4Jr0XDS6CkJFs8lwFDuUShx--