summaryrefslogtreecommitdiffstats
path: root/swig
diff options
context:
space:
mode:
Diffstat (limited to 'swig')
-rw-r--r--swig/plist.i8
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;