From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF8NN-0004cm-1r for qemu-devel@nongnu.org; Fri, 21 Sep 2012 14:54:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TF8NL-0005zE-U9 for qemu-devel@nongnu.org; Fri, 21 Sep 2012 14:54:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF8NL-0005z7-Kd for qemu-devel@nongnu.org; Fri, 21 Sep 2012 14:54:55 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8LIK7MN005725 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Sep 2012 14:20:07 -0400 Message-ID: <505CAFD4.2000708@redhat.com> Date: Fri, 21 Sep 2012 12:20:04 -0600 From: Eric Blake MIME-Version: 1.0 References: <1348239340-29021-1-git-send-email-lcapitulino@redhat.com> <1348239340-29021-3-git-send-email-lcapitulino@redhat.com> <505C965B.1050504@redhat.com> <20120921134234.5d836bc5@doriath.home> <20120921142634.2d4707c4@doriath.home> <505CAF7C.5040403@redhat.com> In-Reply-To: <505CAF7C.5040403@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig101ED64D5F63CF117F473493" Subject: Re: [Qemu-devel] [PATCH 2/3] qmp: qmp_send_key(): accept key codes in hex List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: avi@redhat.com, akong@redhat.com, qemu-devel@nongnu.org, Luiz Capitulino This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig101ED64D5F63CF117F473493 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 09/21/2012 12:18 PM, Eric Blake wrote: >> Any better ideas? >=20 > Maybe s/hex/number/, as in: >=20 > JSON: 'number':0x20 >=20 > C code: keylist->value->number =3D number; >=20 > that is, you are passing the value either as a keycode name, or as a nu= mber. Or even s/hex/int/ except that the C code would then have to use mangling (since the JSON name would match a C keyword). --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig101ED64D5F63CF117F473493 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQEcBAEBCAAGBQJQXK/UAAoJEKeha0olJ0NqNZkIAKS1QWHKtWx9Ugi+Sffx1qO9 cGgiXD9ipnNMbuoBbHIgeMMN+NZYrbVlM4Oh1qZD/CDgSRw5CPxVMpRHTyMrrXrI SYbDzAQJ/QSiDJz7b8y6z7QxMtkLio7gcI0nBttEU51fNzm72LHMOovvk6gYXA2h TI2mGpieEi5JL+CAS6qAChKMlCBSM0zy8uTBjuiihffnE1t7BkZdYGSuTXGibyQq ZNrUAPOT7iy8eXWfsJAyLZH4GRCo2dsmRJHgVt3vwxVECAJW9EXt53n0awNxN+2W qNgNC0nkdbobUcf/KS+yd578WaOt1macz59Bl2P8eUa51FQlxxVf5R4JoSkEQV0= =SM5+ -----END PGP SIGNATURE----- --------------enig101ED64D5F63CF117F473493--