Re: [libvirt] [PATCH 01/14] Introduce a simple API for handling JSON data

2009-12-07 Thread Daniel P. Berrange
On Thu, Dec 03, 2009 at 03:41:08PM +0100, Paolo Bonzini wrote: > On 12/03/2009 01:11 PM, Daniel Veillard wrote: > > hum ... that becomes an external library, one more dependancy > >on the other hand we don't have to track bug fixes > > What about using submodules + static linking of libyajl?

Re: [libvirt] [PATCH 01/14] Introduce a simple API for handling JSON data

2009-12-03 Thread Paolo Bonzini
On 12/03/2009 01:11 PM, Daniel Veillard wrote: hum ... that becomes an external library, one more dependancy on the other hand we don't have to track bug fixes What about using submodules + static linking of libyajl? That would fix the "dependency" part and make bug tracking a bit hard

Re: [libvirt] [PATCH 01/14] Introduce a simple API for handling JSON data

2009-12-03 Thread Daniel Veillard
On Thu, Dec 03, 2009 at 12:56:32PM +, Daniel P. Berrange wrote: > On Thu, Dec 03, 2009 at 01:50:59PM +0100, Daniel Veillard wrote: > > > > http://lloyd.github.com/yajl/ > > > > The licence is BSD ... but with what looks like an advertizing clause > > see point 2. below: > > > > ---

Re: [libvirt] [PATCH 01/14] Introduce a simple API for handling JSON data

2009-12-03 Thread Daniel P. Berrange
On Thu, Dec 03, 2009 at 01:50:59PM +0100, Daniel Veillard wrote: > > http://lloyd.github.com/yajl/ > > The licence is BSD ... but with what looks like an advertizing clause > see point 2. below: > > > Copyright 2007-2009

Re: [libvirt] [PATCH 01/14] Introduce a simple API for handling JSON data

2009-12-03 Thread Daniel Veillard
On Thu, Dec 03, 2009 at 12:41:24PM +, Daniel P. Berrange wrote: > On Thu, Dec 03, 2009 at 01:11:19PM +0100, Daniel Veillard wrote: > > On Thu, Nov 26, 2009 at 06:27:19PM +, Daniel P. Berrange wrote: > > > > > > This uses the YAJL library for parsing/formatting from > > > > > > http://llo

Re: [libvirt] [PATCH 01/14] Introduce a simple API for handling JSON data

2009-12-03 Thread Daniel P. Berrange
On Thu, Dec 03, 2009 at 01:11:19PM +0100, Daniel Veillard wrote: > On Thu, Nov 26, 2009 at 06:27:19PM +, Daniel P. Berrange wrote: > > > > This uses the YAJL library for parsing/formatting from > > > > http://lloyd.github.com/yajl/ > > > * src/util/json.h, src/util/json.c: Data structures a

Re: [libvirt] [PATCH 01/14] Introduce a simple API for handling JSON data

2009-12-03 Thread Daniel Veillard
On Thu, Nov 26, 2009 at 06:27:19PM +, Daniel P. Berrange wrote: > This introduces simple API for handling JSON data. There is > an internal data structure 'virJSONValuePtr' which stores a > arbitrary nested JSON value (number, string, array, object, > nul, etc). There are APIs for constructing

Re: [libvirt] [PATCH 01/14] Introduce a simple API for handling JSON data

2009-12-02 Thread Matthias Bolte
2009/11/26 Daniel P. Berrange : > This introduces simple API for handling JSON data. There is > an internal data structure 'virJSONValuePtr' which stores a > arbitrary nested JSON value (number, string, array, object, > nul, etc).  There are APIs for constructing/querying objects > and APIs for par

[libvirt] [PATCH 01/14] Introduce a simple API for handling JSON data

2009-11-26 Thread Daniel P. Berrange
This introduces simple API for handling JSON data. There is an internal data structure 'virJSONValuePtr' which stores a arbitrary nested JSON value (number, string, array, object, nul, etc). There are APIs for constructing/querying objects and APIs for parsing/formatting string formatted JSON data