|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [PATCH V7 6/7] libxl: Introduce JSON parsing stuff.
On Wed, 2011-07-20 at 22:24 +0100, Anthony PERARD wrote:
> + /* parse the input */
> + if (yajl_ctx.hand == NULL) {
> + /* allow comments */
> + yajl_parser_config cfg = { 1, 1 };
Looks like YALJ v2 has enums for these config values but v1 doesn't.
However
yajl_parse_config cfg = {
.allowComments = 1,
.checkUTF8 = 1,
};
is a bit more self documenting.
(supporting yajl 1 and 2 is going to be a pain. but lets cross that
bridge when we come to it...)
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH V7 2/7] libxl: Add get/set_default_namespace in libxltypes.py., (continued)
- [Xen-devel] [PATCH V7 2/7] libxl: Add get/set_default_namespace in libxltypes.py., Anthony PERARD
- [Xen-devel] [PATCH V7 4/7] libxl, Introduce libxl__realloc., Anthony PERARD
- [Xen-devel] [PATCH V7 6/7] libxl: Introduce JSON parsing stuff., Anthony PERARD
- [Xen-devel] [PATCH V7 0/7] Introduce a QMP client, Anthony PERARD
- [Xen-devel] [PATCH V7 1/7] libxl: Rename libxl.idl to libxl_types.idl., Anthony PERARD
- [Xen-devel] [PATCH V7 5/7] libxl, Intruduce libxl__strndup., Anthony PERARD
- [Xen-devel] [PATCH V7 3/7] libxl: Introduce libxl_internal_types.idl., Anthony PERARD
- [Xen-devel] [PATCH V7 7/7] libxl, Introduce a QMP client, Anthony PERARD
|
|
|
|
|