Displaying 2 results from an estimated 2 matches for "yajl_ctx".
Did you mean:
call_ctx
2012 Jan 15
2
[PATCH v3] libxl: add support for yajl 2.x
...n.c Sun Jan 15 06:56:00 2012 +0100
@@ -519,7 +519,7 @@ static bool is_decimal(const char *s, un
return false;
}
-static int json_callback_number(void *opaque, const char *s, unsigned int len)
+static int json_callback_number(void *opaque, const char *s, libxl_yajl_length len)
{
libxl__yajl_ctx *ctx = opaque;
libxl__json_object *obj = NULL;
@@ -576,7 +576,7 @@ out:
}
static int json_callback_string(void *opaque, const unsigned char *str,
- unsigned int len)
+ libxl_yajl_length len)
{
libxl__yajl_ctx *ctx = opaque...
2011 Dec 20
26
[PATCH v2] libxl: add support for yajl 2.x
...11 +0100
@@ -519,7 +519,11 @@ static bool is_decimal(const char *s, un
return false;
}
+#ifdef HAVE_YAJL_V2
+static int json_callback_number(void *opaque, const char *s, size_t len)
+#else
static int json_callback_number(void *opaque, const char *s, unsigned int len)
+#endif
{
libxl__yajl_ctx *ctx = opaque;
libxl__json_object *obj = NULL;
@@ -575,8 +579,13 @@ out:
return 1;
}
+#ifdef HAVE_YAJL_V2
+static int json_callback_string(void *opaque, const unsigned char *str,
+ size_t len)
+#else
static int json_callback_string(void *opaque, const un...