search for: yajl_parse

Displaying 4 results from an estimated 4 matches for "yajl_parse".

2011 Sep 30
13
[PATCH] tools/check: check for yajl (needed by libxl)
# HG changeset patch # User Ian Campbell <ian.campbell@citrix.com> # Date 1317367995 -3600 # Node ID 4b98868690218126b90620d9b43fdd4140145a43 # Parent e50da6b98e3d5933b9c98e8f43096fd3ebbae00d tools/check: check for yajl (needed by libxl) Signed-off-by: Ian Campbell <ian.campbell@citrix.com> --- (note to committer, ensure the new file is executable) diff -r e50da6b98e3d -r
2012 Jan 15
2
[PATCH v3] libxl: add support for yajl 2.x
...unsigned int len) + libxl_yajl_length len) { libxl__yajl_ctx *ctx = opaque; char *t = NULL; @@ -772,17 +772,13 @@ libxl__json_object *libxl__json_parse(li DEBUG_GEN_ALLOC(&yajl_ctx); if (yajl_ctx.hand == NULL) { - yajl_parser_config cfg = { - .allowComments = 1, - .checkUTF8 = 1, - }; - yajl_ctx.hand = yajl_alloc(&callbacks, &cfg, NULL, &yajl_ctx); + yajl_ctx.hand = libxl__yajl_alloc(&callbacks, NULL, &yajl_ctx); } status = yajl_parse(yajl_ctx.han...
2013 May 14
5
tools/libxl: fix compilation and link errors on NetBSD
commit cad172d7b88bd443c81d865051297875ce2551bc Author: Christoph Egger <chegger@amazon.de> Date: Thu Feb 7 14:42:29 2013 +0000 tools/libxl: fix compilation and link errors on NetBSD - Fix testidl link error that libyajl is not found - Make linking of xl and testidl consistent - fix error: array subscript has type ''char'' Signed-off-by:
2011 Dec 20
26
[PATCH v2] libxl: add support for yajl 2.x
...libxl__yajl_ctx *ctx = opaque; char *t = NULL; @@ -772,17 +786,26 @@ libxl__json_object *libxl__json_parse(li DEBUG_GEN_ALLOC(&yajl_ctx); if (yajl_ctx.hand == NULL) { +#ifdef HAVE_YAJL_V2 + yajl_ctx.hand = yajl_alloc(&callbacks, NULL, &yajl_ctx); +#else yajl_parser_config cfg = { .allowComments = 1, .checkUTF8 = 1, }; yajl_ctx.hand = yajl_alloc(&callbacks, &cfg, NULL, &yajl_ctx); +#endif } status = yajl_parse(yajl_ctx.hand, (const unsigned char *)s, strlen(s)); if (status != yajl_status_o...