]> xenbits.xensource.com Git - libvirt.git/commit
nss: convert findLeases to use json-c
authorJán Tomko <jtomko@redhat.com>
Wed, 14 Aug 2024 13:38:23 +0000 (15:38 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 24 Sep 2024 06:24:00 +0000 (08:24 +0200)
commita8d828c88bbdaf83ae78dc06cdd84d5667fcc424
tree3b82bbe17e9798339abbb40e51f4b87ed3cbe0fb
parent9e6555fd90988948a05e83466b1903bb95b36f39
nss: convert findLeases to use json-c

While the parsing is still done by 1K buffers, the results
are no longer filtered during the parsing, but the whole JSON
has to live in memory at once, which was also the case before
the NSS plugin dropped its dependency on libvirt_util.

Also, the new parser might be more forgiving of missing elements.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tools/nss/libvirt_nss_leases.c