From c0c27eb5dc9c9f77cd5d500f36641647ee508d15 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Mon, 12 Jan 2009 20:04:40 +0100 Subject: Add a function to find a key node by its value. --- src/plist.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plist.c') diff --git a/src/plist.c b/src/plist.c index adee262..e5cf2db 100644 --- a/src/plist.c +++ b/src/plist.c @@ -194,6 +194,11 @@ plist_t plist_find_node(plist_t plist, plist_type type, void *value, uint64_t le return NULL; } +plist_t plist_find_node_by_key(plist_t plist, char *value) +{ + return plist_find_node(plist, PLIST_KEY, value, strlen(value)); +} + plist_t plist_find_node_by_string(plist_t plist, char *value) { return plist_find_node(plist, PLIST_STRING, value, strlen(value)); -- cgit v1.1-32-gdbae