Displaying 2 results from an estimated 2 matches for "json_auto_t".
2017 Nov 23
1
Re: [PATCH 1/1] Switch from YAJL to Jansson
...eanup(cleanup_json_t_decref)))
>
> static void
>-cleanup_yajl_tree_free (void *ptr)
>+cleanup_json_t_decref (void *ptr)
> {
>- yajl_tree_free (* (yajl_val *) ptr);
>+ json_decref (* (json_t **) ptr);
> }
>
Looks like you don't need to do this, there already is 'json_auto_t' type that
has attribute cleanup with json_decref already.
2017 Nov 23
4
[PATCH 0/1] RFC: switch from YAJL to Jansson
Hi,
recently, there was a discussion in the development list of libvirt on
switching to a different JSON library than YAJL [1]. Since we use YAJL,
and the points there IMHO apply to libguestfs as well, I decided to give
a try in switching to Jansson [2].
The result IMHO is nice, with the additional APIs of Jansson that
simplify some of our code. Unlike with YAJL, I did not set a minimum