summaryrefslogtreecommitdiffstats
path: root/cython
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-03-18 01:54:46 +0100
committerGravatar Nikias Bassen2013-03-18 01:54:46 +0100
commit80b5e50a7b6f23093e46020975c63de62e13b569 (patch)
treeb5ec1ec5798470d3141264a7d424017a5c24ab53 /cython
parentaea4cf6cad522946018c6df85a01dfa6c5dfde60 (diff)
downloadlibplist-80b5e50a7b6f23093e46020975c63de62e13b569.tar.gz
libplist-80b5e50a7b6f23093e46020975c63de62e13b569.tar.bz2
added PLIST_KEY support to cython bindings
Diffstat (limited to 'cython')
-rw-r--r--cython/plist.pxd4
-rw-r--r--cython/plist.pyx2
2 files changed, 6 insertions, 0 deletions
diff --git a/cython/plist.pxd b/cython/plist.pxd
index a31419d..05f3e16 100644
--- a/cython/plist.pxd
+++ b/cython/plist.pxd
@@ -19,6 +19,10 @@ cdef class Integer(Node):
19 cpdef set_value(self, object value) 19 cpdef set_value(self, object value)
20 cpdef int get_value(self) 20 cpdef int get_value(self)
21 21
22cdef class Key(Node):
23 cpdef set_value(self, object value)
24 cpdef int get_value(self)
25
22cdef class Real(Node): 26cdef class Real(Node):
23 cpdef set_value(self, object value) 27 cpdef set_value(self, object value)
24 cpdef float get_value(self) 28 cpdef float get_value(self)
diff --git a/cython/plist.pyx b/cython/plist.pyx
index 3716a9c..9b7eec9 100644
--- a/cython/plist.pyx
+++ b/cython/plist.pyx
@@ -716,6 +716,8 @@ cdef object plist_t_to_node(plist_t c_plist, bint managed=True):
716 return Bool_factory(c_plist, managed) 716 return Bool_factory(c_plist, managed)
717 if t == PLIST_UINT: 717 if t == PLIST_UINT:
718 return Integer_factory(c_plist, managed) 718 return Integer_factory(c_plist, managed)
719 if t == PLIST_KEY:
720 return Integer_factory(c_plist, managed)
719 if t == PLIST_REAL: 721 if t == PLIST_REAL:
720 return Real_factory(c_plist, managed) 722 return Real_factory(c_plist, managed)
721 if t == PLIST_STRING: 723 if t == PLIST_STRING: