summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/plist/plist.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h
index a075fc6..6388603 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -148,6 +148,13 @@ extern "C" {
PLIST_API plist_t plist_get_prev_sibling(plist_t node);
/**
+ * Get the parent of a node
+ *
+ * @param node the parent (NULL if node is root)
+ */
+ PLIST_API plist_t plist_get_parent(plist_t node);
+
+/**
* Get the nth child of a #PLIST_ARRAY node.
*
* @param node the node of type #PLIST_ARRAY