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

Reviewed-by: Max Reitz <mre...@redhat.com>

Reply via email to