Displaying 3 results from an estimated 3 matches for "yajl_gen_alloc".
2012 Jan 15
2
[PATCH v3] libxl: add support for yajl 2.x
...ype,
libxl__gen_json_callback gen, void *p)
{
- yajl_gen_config conf = { 1, " " };
const unsigned char *buf;
char *ret = NULL;
- unsigned int len = 0;
+ libxl_yajl_length len = 0;
yajl_gen_status s;
yajl_gen hand;
- hand = yajl_gen_alloc(&conf, NULL);
+ hand = libxl__yajl_gen_alloc(NULL);
if (!hand)
return NULL;
diff -r cd47dde439e6 -r a1986ef30b7d tools/libxl/libxl_json.h
--- a/tools/libxl/libxl_json.h Sat Jan 14 19:04:48 2012 +0100
+++ b/tools/libxl/libxl_json.h Sun Jan 15 06:56:00 2012 +0100
@@ -16,8 +16,5...
2011 Dec 20
26
[PATCH v2] libxl: add support for yajl 2.x
...+#ifndef HAVE_YAJL_V2
yajl_gen_config conf = { 1, " " };
+#endif
const unsigned char *buf;
char *ret = NULL;
+#ifdef HAVE_YAJL_V2
+ size_t len = 0;
+#else
unsigned int len = 0;
+#endif
yajl_gen_status s;
yajl_gen hand;
+#ifdef HAVE_YAJL_V2
+ hand = yajl_gen_alloc(NULL);
+#else
hand = yajl_gen_alloc(&conf, NULL);
+#endif
+
if (!hand)
return NULL;
diff -r f72b99fccfca -r 716d6d48e647 tools/libxl/libxl_json.h
--- a/tools/libxl/libxl_json.h Tue Dec 20 08:31:40 2011 +0100
+++ b/tools/libxl/libxl_json.h Tue Dec 20 13:52:55 2011 +0100
@@ -...
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: