Received: from eggs.gnu.org ([2001:4830:134:3::10]:36445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnZdb-000257-HB for qemu-devel@nongnu.org; Wed, 29 Apr 2015 17:35:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnZdW-0004L8-II for qemu-devel@nongnu.org; Wed, 29 Apr 2015 17:35:23 -0400 Received: from resqmta-po-07v.sys.comcast.net ([96.114.154.166]:39341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnZdW-0004Km-D9 for qemu-devel@nongnu.org; Wed, 29 Apr 2015 17:35:18 -0400 From: Eric Blake Date: Wed, 29 Apr 2015 15:35:03 -0600 Message-Id: <1430343306-6152-1-git-send-email-eblake@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/3] parse 'null' literal in QMP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, armbru@redhat.com, lcapitulino@redhat.com Here's my attempt to merge the best points of Markus' approach [1] (patches 16-18 of that series - benefit of smaller patches and fewer malloc calls) and my approach [2] (benefit of a testsuite addition and more detailed commit messages), while fixing the typos that both of us had in v1. [1]https://lists.gnu.org/archive/html/qemu-devel/2015-04/msg00342.html [2]https://lists.gnu.org/archive/html/qemu-devel/2015-04/msg00623.html Eric Blake (1): json-parser: Accept 'null' in QMP Markus Armbruster (2): qobject: Clean up around qtype_code qobject: Add a special null QObject block/qapi.c | 3 --- include/hw/qdev-core.h | 2 +- include/qapi/qmp/qobject.h | 13 +++++++++++-- qobject/Makefile.objs | 2 +- qobject/json-parser.c | 2 ++ qobject/qjson.c | 6 ++++-- qobject/qnull.c | 29 +++++++++++++++++++++++++++++ tests/check-qjson.c | 15 +++++++++++++-- 8 files changed, 61 insertions(+), 11 deletions(-) create mode 100644 qobject/qnull.c -- 2.1.0