From 9555e71d9887d0d5caf87341dc47d9ad313bb609 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 19 May 2019 01:22:04 +0200 Subject: Add plist_array_item_remove() to allow removing an array's child node without relying on the index --- include/plist/plist.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/plist/plist.h b/include/plist/plist.h index 63e9d84..bba735d 100644 --- a/include/plist/plist.h +++ b/include/plist/plist.h @@ -287,6 +287,14 @@ extern "C" */ void plist_array_remove_item(plist_t node, uint32_t n); + /** + * Remove a node that is a child node of a #PLIST_ARRAY node. + * node will be freed using #plist_free. + * + * @param node The node to be removed from its #PLIST_ARRAY parent. + */ + void plist_array_item_remove(plist_t node); + /** * Create an iterator of a #PLIST_ARRAY node. * The allocated iterator should be freed with the standard free function. -- cgit v1.1-32-gdbae