Received: from eggs.gnu.org ([2001:4830:134:3::10]:49995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bth4H-00054s-Tf for qemu-devel@nongnu.org; Mon, 10 Oct 2016 16:21:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bth4D-0006rv-M9 for qemu-devel@nongnu.org; Mon, 10 Oct 2016 16:21:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bth4D-0006r4-DM for qemu-devel@nongnu.org; Mon, 10 Oct 2016 16:20:57 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ADCEE2E6CF2 for ; Mon, 10 Oct 2016 20:20:56 +0000 (UTC) References: <20161010092301.14974-1-marcandre.lureau@redhat.com> <20161010092301.14974-4-marcandre.lureau@redhat.com> From: Eric Blake Message-ID: Date: Mon, 10 Oct 2016 15:20:55 -0500 MIME-Version: 1.0 In-Reply-To: <20161010092301.14974-4-marcandre.lureau@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aipBhWSdOj0eiHKV2gjhuGGt1Ak3smQIL" Subject: Re: [Qemu-devel] [PATCH 03/24] qmp: teach qmp_dispatch() to take a pre-filled QDict List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , qemu-devel@nongnu.org Cc: berrange@redhat.com, armbru@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --aipBhWSdOj0eiHKV2gjhuGGt1Ak3smQIL From: Eric Blake To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , qemu-devel@nongnu.org Cc: berrange@redhat.com, armbru@redhat.com Message-ID: Subject: Re: [PATCH 03/24] qmp: teach qmp_dispatch() to take a pre-filled QDict References: <20161010092301.14974-1-marcandre.lureau@redhat.com> <20161010092301.14974-4-marcandre.lureau@redhat.com> In-Reply-To: <20161010092301.14974-4-marcandre.lureau@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/10/2016 04:22 AM, Marc-Andr=C3=A9 Lureau wrote: > Give an optionnal qdict for the dispatch call to be used for the s/optionnal/optional/ > reply. The qemu monitor has the request "id" pre-filled, simplifying a > bit the code. simplifying the code a bit >=20 > Signed-off-by: Marc-Andr=C3=A9 Lureau > --- > monitor.c | 26 +++++++++++--------------- > qapi/qmp-dispatch.c | 5 ++--- > qga/main.c | 2 +- > tests/test-qmp-commands.c | 8 ++++---- > include/qapi/qmp/dispatch.h | 2 +- > 5 files changed, 19 insertions(+), 24 deletions(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --aipBhWSdOj0eiHKV2gjhuGGt1Ak3smQIL 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/ iQEcBAEBCAAGBQJX+/gnAAoJEKeha0olJ0NqhoYIAITeGnbzyJRxkA+AgO44ghLa pYZbtYIAxYDAZ427qjaSNNohbK+8UGHHUWFnRDRFvVIDPa3R66ZzBNEmobyBW4NU Qq5jryeUx4W7yRl3tMzIGVU6XvxvEfeZpSMsl1aQSxYkuCwFPs3Ql/6+9jFgwvJP H9g+el0leA9v4KSn08nwDvFSXfwj+pO7fGzACWNiX+osMTNSwpnhhdQoXM9rLchd 3ZXT4A8SDLGbvTZpRlt69flSc0Me+8m31Il0IejXVYH/tzUzXJTcDb0hijvJW7yb O7dfR/qSaSRFYgcbnIFiHLB8zVvS+XusQmy5kjjERIBOz/TkYq8EFVKh9q1Um54= =jwHZ -----END PGP SIGNATURE----- --aipBhWSdOj0eiHKV2gjhuGGt1Ak3smQIL--