]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: json: add helper to iterate JSON object key=value pairs
authorPeter Krempa <pkrempa@redhat.com>
Tue, 13 Jan 2015 15:43:30 +0000 (16:43 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Sat, 31 Jan 2015 07:53:21 +0000 (08:53 +0100)
commita6f277a67bc6912a2cbb79a00ffd856599d989ef
treee7b1ec097b07f111ff61c9e840010ccae6981c01
parent58f61d24a46948e01771b4ec2b1eaed8d35c6bf7
util: json: add helper to iterate JSON object key=value pairs

This helper eases iterating all key=value pairs stored in a JSON
object. Usually we pick only certain known keys from a JSON object, but
this will allow to walk complete objects and have the callback act on
those.
src/libvirt_private.syms
src/util/virjson.c
src/util/virjson.h