]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: json: Split out array->strinlist conversion from virJSONValueObjectGetStringArray
authorPeter Krempa <pkrempa@redhat.com>
Thu, 1 Dec 2022 12:32:07 +0000 (13:32 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 2 Dec 2022 15:18:37 +0000 (16:18 +0100)
commit6765bdeaf7e9cbdb4c39d47f3b77fb28a498408a
treeb241abac1b2716612dff388f0ba1d8c950947f55
parent962ce78175f010ce3a0947a89c63422af925ec14
util: json: Split out array->strinlist conversion from virJSONValueObjectGetStringArray

Introduce virJSONValueArrayToStringList which does only the conversion
from an array to a stringlist.

This will allow refactoring the callers to be more careful in case when
they want to handle the existance of the member in the parent object
differently.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/libvirt_private.syms
src/util/virjson.c
src/util/virjson.h