search for: json_string_length

Displaying 6 results from an estimated 6 matches for "json_string_length".

2020 Jul 22
1
回复: 回复: bug report
...;nbsp;    I use /bin/virt-copy-in  failed , virt-copy-in  have no diff with other nomarl machine(work well ) ,         /bin/virt-copy-in: symbol lookup error: /lib64/libguestfs.so.0: undefined symbol: json_string_length       here are the message  , Thanks for you help .  # uname  -a Linux sh-op-offline-vmhost01.sh.sftcwl.com 4.19.8-1.el7.elrepo.x86_64 #1 SMP Sat Dec 8 10:07:47 EST 2018 x86_64 x86_64 x86_64 GNU/Linux # cat /etc/redhat-release Cen...
2018 Feb 13
1
[PATCH] build: mandate Jansson >= 2.7
Since we use APIs added in Jansson 2.7 (e.g. json_string_length), then raise the minimum version required to that version. Fixes commit bd1c5c9f4dcf38458099db8a0bf4659a07ef055d. --- docs/guestfs-building.pod | 2 +- m4/guestfs-libraries.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guestfs-building.pod b/docs/guestfs-buildin...
2018 Feb 12
0
[PATCH v2 1/1] Switch from YAJL to Jansson
...dup"); - - yajl_tree_free (tree); - - return ret; - } + if ((flags & GET_STRING_NULL_TO_EMPTY) && json_is_null (node)) + ret = strdup (""); + else { + str = json_string_value (node); + if (str == NULL) + goto bad_type; + ret = strndup (str, json_string_length (node)); } + if (ret == NULL) + reply_with_perror ("strdup"); + + json_decref (tree); + + return ret; bad_type: reply_with_error ("output of '%s' was not a JSON object " "containing a key '%s' of type string", cmd, k...
2017 Nov 23
0
[PATCH 1/1] Switch from YAJL to Jansson
...dup"); - - yajl_tree_free (tree); - - return ret; - } + if ((flags & GET_STRING_NULL_TO_EMPTY) && json_is_null (node)) + ret = strdup (""); + else { + str = json_string_value (node); + if (str == NULL) + goto bad_type; + ret = strndup (str, json_string_length (node)); } + if (ret == NULL) + reply_with_perror ("strdup"); + + json_decref (tree); + + return ret; bad_type: reply_with_error ("output of '%s' was not a JSON object " "containing a key '%s' of type string", cmd, k...
2018 Feb 12
2
[PATCH v2 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
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