diff options
author | Bryan Forbes | 2011-09-26 17:16:51 +0200 |
---|---|---|
committer | Nikias Bassen | 2011-09-26 17:16:51 +0200 |
commit | 89900d6decbfe805720a9cbce65655ec31086f94 (patch) | |
tree | ffb49d65295387d9ab024c977fae25e227a7acda /cython/plist.pxd | |
parent | 3ceae531d868f6c1341cf916bcb0ae1248d688cd (diff) | |
download | libplist-89900d6decbfe805720a9cbce65655ec31086f94.tar.gz libplist-89900d6decbfe805720a9cbce65655ec31086f94.tar.bz2 |
Fixed some memory leaks and unicode handling.
Diffstat (limited to 'cython/plist.pxd')
-rw-r--r-- | cython/plist.pxd | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cython/plist.pxd b/cython/plist.pxd index daafd78..6a96817 100644 --- a/cython/plist.pxd +++ b/cython/plist.pxd @@ -1,25 +1,26 @@ cdef extern from "plist/plist.h": ctypedef void *plist_t ctypedef void *plist_dict_iter + void plist_free(plist_t node) cdef class Node: cdef plist_t _c_node cdef bool _c_managed cpdef object __deepcopy__(self, memo=*) - cpdef bytes to_xml(self) + cpdef unicode to_xml(self) cpdef bytes to_bin(self) cpdef object copy(self) cdef class Bool(Node): - cpdef set_value(self, value) + cpdef set_value(self, object value) cpdef bool get_value(self) cdef class Integer(Node): - cpdef set_value(self, value) + cpdef set_value(self, object value) cpdef int get_value(self) cdef class Real(Node): - cpdef set_value(self, value) + cpdef set_value(self, object value) cpdef float get_value(self) cdef class String(Node): |