summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c
index 8c326af..143418d 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -195,6 +195,11 @@ plist_t plist_get_prev_sibling(plist_t node)
195 return (plist_t) g_node_prev_sibling((GNode *) node); 195 return (plist_t) g_node_prev_sibling((GNode *) node);
196} 196}
197 197
198plist_t plist_get_parent(plist_t node)
199{
200 return node ? (plist_t) ((GNode *) node)->parent : NULL;
201}
202
198plist_t plist_get_array_nth_el(plist_t node, uint32_t n) 203plist_t plist_get_array_nth_el(plist_t node, uint32_t n)
199{ 204{
200 plist_t ret = NULL; 205 plist_t ret = NULL;