qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 01/13] qdict: Add qdict_array_entries()


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH v2 01/13] qdict: Add qdict_array_entries()
Date: Fri, 12 Jun 2015 16:07:49 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

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 <address@hidden>
---
  include/qapi/qmp/qdict.h |  1 +
  qobject/qdict.c          | 78 +++++++++++++++++++++++++++++++++++++++++++++---
  2 files changed, 75 insertions(+), 4 deletions(-)

Reviewed-by: Max Reitz <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]