diff options
author | Jonathan Beck | 2009-07-18 12:08:13 +0200 |
---|---|---|
committer | Jonathan Beck | 2009-07-18 12:08:13 +0200 |
commit | 07c1d3c90512f5fa057e7eff7d307cffe6258111 (patch) | |
tree | 8c16ba88eff9614a82c9b3089a4a5515e9004414 /swig/plist.i | |
parent | f605777d9739d2f8873b9ab65929e8aee1ebb64e (diff) | |
download | libplist-07c1d3c90512f5fa057e7eff7d307cffe6258111.tar.gz libplist-07c1d3c90512f5fa057e7eff7d307cffe6258111.tar.bz2 |
Add function to get parent node in API and python bindings.
Diffstat (limited to 'swig/plist.i')
-rw-r--r-- | swig/plist.i | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/swig/plist.i b/swig/plist.i index b6f9f78..7240817 100644 --- a/swig/plist.i +++ b/swig/plist.i @@ -141,6 +141,14 @@ typedef struct { return NULL; } + PListNode* get_parent() { + plist_t node = plist_get_parent( $self->node ); + if (node) { + return allocate_wrapper(node, 1); + } + return NULL; + } + %newobject as_key; char* as_key() { char* k = NULL; |