From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrXzV-0002iw-3E for qemu-devel@nongnu.org; Fri, 13 Dec 2013 14:01:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrXzP-0000Au-4L for qemu-devel@nongnu.org; Fri, 13 Dec 2013 14:01:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrXzO-0000Ak-Qa for qemu-devel@nongnu.org; Fri, 13 Dec 2013 14:01:31 -0500 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 rBDJ1QuB019220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 13 Dec 2013 14:01:27 -0500 Date: Fri, 13 Dec 2013 20:01:21 +0100 From: Kevin Wolf Message-ID: <20131213190121.GT3916@dhcp-200-207.str.redhat.com> References: <1386954633-28905-1-git-send-email-mreitz@redhat.com> <1386954633-28905-5-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1386954633-28905-5-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5 04/22] qapi: extend qdict_flatten() for QLists List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Fam Zheng , qemu-devel@nongnu.org, Stefan Hajnoczi Am 13.12.2013 um 18:10 hat Max Reitz geschrieben: > Reversing qdict_array_split(), qdict_flatten() should flatten QLists as > well by interpreting them as QDicts where every entry's key is its > index. > > This allows bringing QDicts with QLists from QMP commands to the same > form as they would be given as command-line options, thereby allowing > them to be parsed the same way. > > Signed-off-by: Max Reitz Reviewed-by: Kevin Wolf