From 80b5e50a7b6f23093e46020975c63de62e13b569 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 18 Mar 2013 01:54:46 +0100 Subject: added PLIST_KEY support to cython bindings --- cython/plist.pxd | 4 ++++ cython/plist.pyx | 2 ++ 2 files changed, 6 insertions(+) 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): cpdef set_value(self, object value) cpdef int get_value(self) +cdef class Key(Node): + cpdef set_value(self, object value) + cpdef int get_value(self) + cdef class Real(Node): cpdef set_value(self, object value) 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): return Bool_factory(c_plist, managed) if t == PLIST_UINT: return Integer_factory(c_plist, managed) + if t == PLIST_KEY: + return Integer_factory(c_plist, managed) if t == PLIST_REAL: return Real_factory(c_plist, managed) if t == PLIST_STRING: -- cgit v1.1-32-gdbae