From: Wei Liu Subject: Re: [PATCH v7 5/9] libxl IDL: generate code to parse libxl__json_object to libxl_FOO struct Date: Wed, 18 Jun 2014 16:12:23 +0100 Message-ID: <20140618151223.GK20819@zion.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> <1403103079.6568.72.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1403103079.6568.72.camel@kazak.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: Ian Campbell Cc: ian.jackson@eu.citrix.com, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Jun 18, 2014 at 03:51:19PM +0100, Ian Campbell wrote: > 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 > I see. I misunderstood. Thanks for clarification. Wei. > Ian.