From 583bb249458fcca6cdf2581896681e618cf4547e Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Sun, 11 Oct 2009 14:00:31 +0200 Subject: Add function to change a node's type. --- 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 bfd934f..55ae9e7 100644 --- a/include/plist/plist.h +++ b/include/plist/plist.h @@ -410,6 +410,14 @@ extern "C" { * * ********************************************/ +/** + * Forces type of node. Changing type of structured nodes is only allowed if node is empty. + * Reset value of node; + * @param node the node + * @param type the key value + */ + PLIST_API void plist_set_type(plist_t node, plist_type type); + /** * Set the value of a node. * Forces type of node to #PLIST_KEY -- cgit v1.1-32-gdbae