Displaying 3 results from an estimated 3 matches for "ada4cf03c".
2017 Nov 23
1
Re: [PATCH 1/1] Switch from YAJL to Jansson
...qemu.c | 64 +++++++-------------
> m4/guestfs-libraries.m4 | 4 +-
> 13 files changed, 170 insertions(+), 234 deletions(-)
>
This is nice, just one idea below that might be useful to you.
>diff --git a/lib/info.c b/lib/info.c
>index f7378adfd..ada4cf03c 100644
>--- a/lib/info.c
>+++ b/lib/info.c
>@@ -38,53 +38,46 @@
> #include <sys/resource.h>
> #endif
>
>-#include <yajl/yajl_tree.h>
>+#include <jansson.h>
>
> #include "guestfs.h"
> #include "guestfs-internal.h"
> #include &...
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
2017 Nov 23
0
[PATCH 1/1] Switch from YAJL to Jansson
.../liberrnostring.la \
@@ -152,7 +152,7 @@ libguestfs_la_LIBADD = \
$(PCRE_LIBS) \
$(LIBVIRT_LIBS) $(LIBXML2_LIBS) \
$(SELINUX_LIBS) \
- $(YAJL_LIBS) \
+ $(JANSSON_LIBS) \
../gnulib/lib/libgnu.la \
$(GETADDRINFO_LIB) \
$(HOSTENT_LIB) \
diff --git a/lib/info.c b/lib/info.c
index f7378adfd..ada4cf03c 100644
--- a/lib/info.c
+++ b/lib/info.c
@@ -38,53 +38,46 @@
#include <sys/resource.h>
#endif
-#include <yajl/yajl_tree.h>
+#include <jansson.h>
#include "guestfs.h"
#include "guestfs-internal.h"
#include "guestfs-internal-actions.h"
#ifde...