Commit 80b5e50a authored by Nikias Bassen's avatar Nikias Bassen

added PLIST_KEY support to cython bindings

parent aea4cf6c
...@@ -19,6 +19,10 @@ cdef class Integer(Node): ...@@ -19,6 +19,10 @@ cdef class Integer(Node):
cpdef set_value(self, object value) cpdef set_value(self, object value)
cpdef int get_value(self) cpdef int get_value(self)
cdef class Key(Node):
cpdef set_value(self, object value)
cpdef int get_value(self)
cdef class Real(Node): cdef class Real(Node):
cpdef set_value(self, object value) cpdef set_value(self, object value)
cpdef float get_value(self) cpdef float get_value(self)
......
...@@ -716,6 +716,8 @@ cdef object plist_t_to_node(plist_t c_plist, bint managed=True): ...@@ -716,6 +716,8 @@ cdef object plist_t_to_node(plist_t c_plist, bint managed=True):
return Bool_factory(c_plist, managed) return Bool_factory(c_plist, managed)
if t == PLIST_UINT: if t == PLIST_UINT:
return Integer_factory(c_plist, managed) return Integer_factory(c_plist, managed)
if t == PLIST_KEY:
return Integer_factory(c_plist, managed)
if t == PLIST_REAL: if t == PLIST_REAL:
return Real_factory(c_plist, managed) return Real_factory(c_plist, managed)
if t == PLIST_STRING: if t == PLIST_STRING:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment