1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-27 18:03:50 +03:00
Eric Blake 547a7c778a json: support removing a value from an object
In an upcoming patch, I need the way to safely transfer a nested
virJSON object out of its parent container for independent use,
even after the parent is freed.

* src/util/virjson.h (virJSONValueObjectRemoveKey): New function.
(_virJSONObject, _virJSONArray): Use correct type.
* src/util/virjson.c (virJSONValueObjectRemoveKey): Implement it.
* src/libvirt_private.syms (virjson.h): Export it.
* tests/jsontest.c (mymain): Test it.

Signed-off-by: Eric Blake <eblake@redhat.com>
2013-05-13 15:15:54 -06:00
..
2012-04-02 09:33:54 -06:00
2012-09-17 14:59:37 -04:00
2013-05-13 17:24:18 +08:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2013-05-13 17:24:18 +08:00
2013-03-19 13:13:28 -06:00
2013-03-19 13:13:28 -06:00
2011-07-11 09:21:37 -06:00
2012-12-21 11:19:49 +00:00
2013-04-16 07:13:43 -04:00
2013-02-12 09:00:15 -07:00