From: Ian Campbell Subject: Re: [PATCH v7 5/9] libxl IDL: generate code to parse libxl__json_object to libxl_FOO struct Date: Wed, 18 Jun 2014 15:51:19 +0100 Message-ID: <1403103079.6568.72.camel@kazak.uk.xensource.com> References: <1402997549-23136-1-git-send-email-wei.liu2@citrix.com> <1402997549-23136-6-git-send-email-wei.liu2@citrix.com> <1403101333.6568.46.camel@kazak.uk.xensource.com> <20140618144522.GG20819@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140618144522.GG20819@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-06-18 at 15:45 +0100, Wei Liu wrote: > > and the second into just regular _libxl_types.h (it doesn't > > require the application to opt into using yajl so it doesn't have to go > > into _libxl_types_json.h) > > > > I don't think it can work without YAJL. It takes a const char * and returns a libxl device. The *application* has no need to see any yajl, only libxl does, which is the distinction here. IOW from_json can be used by an application without ever #including Contrast the libxl_foo_gen_json functions which take a "yajl_gen hand" and therefore require that the application be using yajl itself Ian.