From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3Pco-0003Zn-Qq for qemu-devel@nongnu.org; Fri, 12 Jun 2015 10:08:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3Pcn-0003DI-Tr for qemu-devel@nongnu.org; Fri, 12 Jun 2015 10:08:02 -0400 Message-ID: <557AE7B5.5070402@redhat.com> Date: Fri, 12 Jun 2015 16:07:49 +0200 From: Max Reitz MIME-Version: 1.0 References: <1433944027-28533-1-git-send-email-kwolf@redhat.com> <1433944027-28533-2-git-send-email-kwolf@redhat.com> In-Reply-To: <1433944027-28533-2-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 01/13] qdict: Add qdict_array_entries() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: berto@igalia.com, armbru@redhat.com, qemu-devel@nongnu.org On 10.06.2015 15:46, Kevin Wolf wrote: > This counts the entries in a flattened array in a QDict without > actually splitting the QDict into a QList. > > bdrv_open_image() doesn't take a QList, but rather a QDict and a key > prefix string, so this is more convenient for block drivers which have a > dynamically sized list of child nodes (e.g. Quorum) and are to be > converted to using bdrv_open_image() as the standard interface for > opening child nodes. > > Signed-off-by: Kevin Wolf > --- > include/qapi/qmp/qdict.h | 1 + > qobject/qdict.c | 78 +++++++++++++++++++++++++++++++++++++++++++++--- > 2 files changed, 75 insertions(+), 4 deletions(-) Reviewed-by: Max Reitz