search for: callback_id_pair

Displaying 3 results from an estimated 3 matches for "callback_id_pair".

2013 Nov 15
1
[PATCH v2 OPW] libxl: change most remaining LIBXL_LOG to LOG in libxl_qmp.c
...<TAB>s tools/libxl/libxl_qmp.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c index db40126..a671f12 100644 --- a/tools/libxl/libxl_qmp.c +++ b/tools/libxl/libxl_qmp.c @@ -260,7 +260,7 @@ static callback_id_pair *qmp_get_callback_from_id(libxl__qmp_handler *qmp, return NULL; } -static void qmp_handle_error_response(libxl__qmp_handler *qmp, +static void qmp_handle_error_response(libxl__gc *gc, libxl__qmp_handler *qmp, const libxl__json_object *resp) { cal...
2012 Jan 15
2
[PATCH v3] libxl: add support for yajl 2.x
...t callback, void *opaque, qmp_request_context *context) { - yajl_gen_config conf = { 0, NULL }; const unsigned char *buf = NULL; char *ret = NULL; - unsigned int len = 0; + libxl_yajl_length len = 0; yajl_gen_status s; yajl_gen hand; callback_id_pair *elm = NULL; - hand = yajl_gen_alloc(&conf, NULL); + hand = libxl__yajl_gen_alloc(NULL); + if (!hand) { return NULL; }
2011 Dec 20
26
[PATCH v2] libxl: add support for yajl 2.x
...qmp_request_context *context) { +#ifndef HAVE_YAJL_V2 yajl_gen_config conf = { 0, NULL }; +#endif const unsigned char *buf = NULL; char *ret = NULL; +#ifdef HAVE_YAJL_V2 + size_t len = 0; +#else unsigned int len = 0; +#endif yajl_gen_status s; yajl_gen hand; callback_id_pair *elm = NULL; +#ifdef HAVE_YAJL_V2 + hand = yajl_gen_alloc(NULL); +#else hand = yajl_gen_alloc(&conf, NULL); +#endif + if (!hand) { return NULL; }