search for: yajl_gen

Displaying 7 results from an estimated 7 matches for "yajl_gen".

Did you mean: yajl_get_
2012 Jan 15
2
[PATCH v3] libxl: add support for yajl 2.x
...tx.hand, (const unsigned char *)s, strlen(s)); if (status != yajl_status_ok) goto out; - status = yajl_parse_complete(yajl_ctx.hand); + status = yajl_complete_parse(yajl_ctx.hand); if (status != yajl_status_ok) goto out; @@ -834,14 +830,13 @@ static const char *yajl_gen_status_to_st char *libxl__object_to_json(libxl_ctx *ctx, const char *type, 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_le...
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 May 17
8
[PATCH] libxl: do not overwrite user supplied config when running bootloader
...-stubdom device model. */ }; - /* * Convenience macros. */ diff -r ac45608496cd -r cdb947baea10 tools/libxl/libxl_json.c --- a/tools/libxl/libxl_json.c Thu May 17 16:39:51 2012 +0100 +++ b/tools/libxl/libxl_json.c Thu May 17 17:51:32 2012 +0100 @@ -252,15 +252,6 @@ out: return s; } -yajl_gen_status libxl_file_reference_gen_json(yajl_gen hand, - libxl_file_reference *p) -{ - if (p->path) - return libxl__yajl_gen_asciiz(hand, p->path); - else - return yajl_gen_null(hand); -} - yajl_gen_status libxl__string_gen_json(y...
2012 Feb 09
7
[PATCH V2 0/3] Set VNC password to QEMU upstream
Anthony PERARD (3): libxl_qmp: Use GC instead of CTX as parameter for _initialize. Provide dm_vnc() as a in libxl helper. libxl: Set VNC password through QMP tools/libxl/libxl_create.c | 2 +- tools/libxl/libxl_dm.c | 32 ++++++++++++++---------- tools/libxl/libxl_internal.h | 7 ++++- tools/libxl/libxl_qmp.c | 55 ++++++++++++++++++++++++++++++----------- 4 files
2011 Dec 20
26
[PATCH v2] libxl: add support for yajl 2.x
...oto out; + +#ifdef HAVE_YAJL_V2 + status = yajl_complete_parse(yajl_ctx.hand); +#else + status = yajl_parse_complete(yajl_ctx.hand); +#endif - status = yajl_parse_complete(yajl_ctx.hand); if (status != yajl_status_ok) goto out; @@ -834,14 +857,25 @@ static const char *yajl_gen_status_to_st char *libxl__object_to_json(libxl_ctx *ctx, const char *type, libxl__gen_json_callback gen, void *p) { +#ifndef HAVE_YAJL_V2 yajl_gen_config conf = { 1, " " }; +#endif const unsigned char *buf; char *ret = NULL; +#ifdef HAVE_YA...
2012 Jul 04
53
[PATCH 00 of 10 v3] Automatic NUMA placement for xl
Hello, Third version of the NUMA placement series Xen 4.2. All the comments received during v2''s review have been addressed (more details in single changelogs). The most notable changes are the following: - the libxl_cpumap --> libxl_bitmap renaming has been rebased on top of the recent patches that allows us to allocate bitmaps of different sizes; - the heuristics for deciding
2012 Apr 04
10
[PATCH 0 of 2] libxl: add libxl_domain_config_init
The following series implements libxl_domain_config_init as per the libxl API requirement that each type has an init function. The first function does this in an open coded manner and is proposed for Xen 4.2. The second function is RFC only since it moves the definition of this type into the IDL and makes the required infrastructure updates to enable this. I think this is more 4.3 material at