From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGuX5-0005Gj-9y for qemu-devel@nongnu.org; Fri, 21 Feb 2014 13:09:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGuWz-0006L2-AA for qemu-devel@nongnu.org; Fri, 21 Feb 2014 13:09:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGuWz-0006Ku-1H for qemu-devel@nongnu.org; Fri, 21 Feb 2014 13:09:01 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s1LI90vN029829 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Feb 2014 13:09:00 -0500 From: Max Reitz Date: Fri, 21 Feb 2014 19:11:38 +0100 Message-Id: <1393006301-22514-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] Extract non-QDicts in qdict_array_split() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz Currently, qdict_array_split() splits a QDict like { "0.a": 42, "1": 23, "2.b": 84 } into the QList [ { "a": 42 } ] with the QDict still being { "1": 23, "2.b": 84 } However, it makes more sense to create the QList [ { "a": 42 }, 23, { "b": 84 } ] and having emptied the QDict. This is implemented by this series. Max Reitz (3): qemu-config: Sections must consist of keys qdict: Extract non-QDicts in qdict_array_split() check-qdict: Adjust test for qdict_array_split() qobject/qdict.c | 60 ++++++++++++++++++++++++++++++++++++++++------------- tests/check-qdict.c | 22 ++++++++++++++------ util/qemu-config.c | 6 ++++++ 3 files changed, 68 insertions(+), 20 deletions(-) -- 1.9.0