From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJEoy-0005O1-Um for qemu-devel@nongnu.org; Tue, 23 Jun 2009 18:50:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJEou-0005Ip-6A for qemu-devel@nongnu.org; Tue, 23 Jun 2009 18:50:32 -0400 Received: from [199.232.76.173] (port=51290 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJEot-0005Ia-OX for qemu-devel@nongnu.org; Tue, 23 Jun 2009 18:50:27 -0400 Received: from e32.co.us.ibm.com ([32.97.110.150]:60778) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MJEot-0005Ik-Ax for qemu-devel@nongnu.org; Tue, 23 Jun 2009 18:50:27 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e32.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n5NMkYVn029888 for ; Tue, 23 Jun 2009 16:46:34 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n5NMoPRx243974 for ; Tue, 23 Jun 2009 16:50:25 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n5NMoPRl030566 for ; Tue, 23 Jun 2009 16:50:25 -0600 Message-ID: <4A415C30.7030301@us.ibm.com> Date: Tue, 23 Jun 2009 17:50:24 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 01/11] QMP: Introduce specification file References: <20090623012811.53a62493@doriath> <20090623144521.GA614@snarc.org> <4A40FB11.8090100@redhat.com> <4A40FB26.2040702@us.ibm.com> <4A40FD1A.1040303@redhat.com> <4A40FE31.2010007@us.ibm.com> <4A40FFB0.2070905@redhat.com> <4A411FC5.7050701@us.ibm.com> <4A412339.5000109@redhat.com> <4A412659.1080803@us.ibm.com> <20090623220204.GA5612@snarc.org> In-Reply-To: <20090623220204.GA5612@snarc.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vincent Hanquez Cc: ehabkost@redhat.com, jan.kiszka@siemens.com, dlaor@redhat.com, qemu-devel@nongnu.org, Luiz Capitulino , Avi Kivity Vincent Hanquez wrote: > On Tue, Jun 23, 2009 at 02:00:41PM -0500, Anthony Liguori wrote: > >> Avi Kivity wrote: >> >>> It looks brittle to me. What if you want to add an array? Some >>> structure that contains a nested structure? >>> >> Can you give me concrete examples? >> >> The typical way this would be handled in an RPC library in C is to >> introduce complex types. For instance, you could have a MonitorList and >> a corresponding MON_LIST type. FWIW, is there a jsonrpc library for C >> that's actually maintained? >> >> > > this one is mentioned on the website and has been changed recently (may 2009): > > http://fara.cs.uni-potsdam.de/~jsg/json_parser/ > That's not a jsonrpc library, that's just a json parser. -- Regards, Anthony Liguori