From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mz48f-0005k6-QD for qemu-devel@nongnu.org; Sat, 17 Oct 2009 03:55:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mz48a-0005iI-8Z for qemu-devel@nongnu.org; Sat, 17 Oct 2009 03:55:44 -0400 Received: from [199.232.76.173] (port=40189 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mz48a-0005iF-2A for qemu-devel@nongnu.org; Sat, 17 Oct 2009 03:55:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27669) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mz48Z-0001x3-Gx for qemu-devel@nongnu.org; Sat, 17 Oct 2009 03:55:39 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9H7tcwF025753 for ; Sat, 17 Oct 2009 03:55:38 -0400 Received: from localhost.localdomain (vpn1-5-47.ams2.redhat.com [10.36.5.47]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9H7taRd019772 for ; Sat, 17 Oct 2009 03:55:37 -0400 From: Paolo Bonzini Date: Sat, 17 Oct 2009 09:55:29 +0200 Message-Id: <1255766136-3028-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/7] Add JSON enconding and formatted printing to QObject List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This patch adds to the QObject system a method to encode JSON objects. It also adds printf-like capabilities where you can write %{a.b} in a format string and the method will walk a QDict to find the "a" first and "b" in a QDict inside that one (and then print what's found). Since QEMU does not have (or I could not find...) a variable-length string buffer object, I added that to QString, thus making it mutable. I talked to Luiz and he mentioned that QString were immutable not by design, but rather due to not having the need so far. Paolo Bonzini (7): add qemu_memdup allow passing NULL to qobject_type forward declare all QObject subclasses in qobject.h add mutable qstring functions add json encoder for qobjects add testsuite for qobject json encoder add formatted printing of QObjects