[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v7 5/9] libxl IDL: generate code to parse libxl__json_object to libxl_FOO struct



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
> <yajl.h>
> 
> 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.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.