summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-01-11 20:44:33 +0100
committerGravatar Jonathan Beck2009-01-11 20:44:33 +0100
commit74dae54b1b092aca744b4df6668569d6fc1153b5 (patch)
tree46d0e9ade9da94d12a57a06032f4fe81716ff8f5 /src/plist.c
parented5f0b7154a5f653c240e6962098ae7b28ab61e5 (diff)
downloadlibplist-74dae54b1b092aca744b4df6668569d6fc1153b5.tar.gz
libplist-74dae54b1b092aca744b4df6668569d6fc1153b5.tar.bz2
Add a pythyon binding to the library (using SWIG).
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 640bbe5..adee262 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_string(plist_t plist, char *value)
+{
+ return plist_find_node(plist, PLIST_STRING, value, strlen(value));
+}
+
void plist_get_type_and_value(plist_t node, plist_type * type, void *value, uint64_t * length)
{
if (!node)