summaryrefslogtreecommitdiffstats
path: root/include/plist
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-10-11 14:00:31 +0200
committerGravatar Jonathan Beck2009-10-11 14:00:31 +0200
commit583bb249458fcca6cdf2581896681e618cf4547e (patch)
treeb46b47170728b3b063cc2620c7ed7b7f987e0ad7 /include/plist
parent120b7348e7b9d4c92e463590de5a4de4e6bc1228 (diff)
downloadlibplist-583bb249458fcca6cdf2581896681e618cf4547e.tar.gz
libplist-583bb249458fcca6cdf2581896681e618cf4547e.tar.bz2
Add function to change a node's type.
Diffstat (limited to 'include/plist')
-rw-r--r--include/plist/plist.h8
1 files changed, 8 insertions, 0 deletions
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
@@ -411,6 +411,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
*