summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plist.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c
index dd659b8..29dbfb7 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -618,6 +618,17 @@ PLIST_API void plist_dict_get_item_key(plist_t node, char **key)
618 } 618 }
619} 619}
620 620
621PLIST_API plist_t plist_dict_item_get_key(plist_t node)
622{
623 plist_t ret = NULL;
624 plist_t father = plist_get_parent(node);
625 if (PLIST_DICT == plist_get_node_type(father))
626 {
627 ret = (plist_t)node_prev_sibling(node);
628 }
629 return ret;
630}
631
621PLIST_API plist_t plist_dict_get_item(plist_t node, const char* key) 632PLIST_API plist_t plist_dict_get_item(plist_t node, const char* key)
622{ 633{
623 plist_t ret = NULL; 634 plist_t ret = NULL;