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

Re: [Xen-devel] [PATCH RFC V2 03/10] libxl_internal: make JSON_* types bit-field



On Thu, 2014-04-17 at 12:13 +0100, Wei Liu wrote:
> Libxl can generate number as type JSON_INTEGER, JSON_DOUBLE or
> JSON_NUMBER, string as type JSON_STRING or JSON_NULL (if string is
> null).
> 
> So make JSON_* type a bit-field and use it in libxl__json_map_get. This is
> useful when parsing a libxl__json_object to libxl_FOO struct. We can
> enforce type checking on libxl__json_object in an easy way.
> 
> Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>

Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

Although, minor nit, "types a bit-field" in the subject would be better.




_______________________________________________
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®.