From 07c1d3c90512f5fa057e7eff7d307cffe6258111 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Sat, 18 Jul 2009 12:08:13 +0200 Subject: Add function to get parent node in API and python bindings. --- include/plist/plist.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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 @@ -147,6 +147,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. * -- cgit v1.1-32-gdbae