diff options
| author | 2011-09-26 17:16:51 +0200 | |
|---|---|---|
| committer | 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 @@ | |||
| 1 | cdef extern from "plist/plist.h": | 1 | cdef extern from "plist/plist.h": |
| 2 | ctypedef void *plist_t | 2 | ctypedef void *plist_t |
| 3 | ctypedef void *plist_dict_iter | 3 | ctypedef void *plist_dict_iter |
| 4 | void plist_free(plist_t node) | ||
| 4 | 5 | ||
| 5 | cdef class Node: | 6 | cdef class Node: |
| 6 | cdef plist_t _c_node | 7 | cdef plist_t _c_node |
| 7 | cdef bool _c_managed | 8 | cdef bool _c_managed |
| 8 | cpdef object __deepcopy__(self, memo=*) | 9 | cpdef object __deepcopy__(self, memo=*) |
| 9 | cpdef bytes to_xml(self) | 10 | cpdef unicode to_xml(self) |
| 10 | cpdef bytes to_bin(self) | 11 | cpdef bytes to_bin(self) |
| 11 | cpdef object copy(self) | 12 | cpdef object copy(self) |
| 12 | 13 | ||
| 13 | cdef class Bool(Node): | 14 | cdef class Bool(Node): |
| 14 | cpdef set_value(self, value) | 15 | cpdef set_value(self, object value) |
| 15 | cpdef bool get_value(self) | 16 | cpdef bool get_value(self) |
| 16 | 17 | ||
| 17 | cdef class Integer(Node): | 18 | cdef class Integer(Node): |
| 18 | cpdef set_value(self, value) | 19 | cpdef set_value(self, object value) |
| 19 | cpdef int get_value(self) | 20 | cpdef int get_value(self) |
| 20 | 21 | ||
| 21 | cdef class Real(Node): | 22 | cdef class Real(Node): |
| 22 | cpdef set_value(self, value) | 23 | cpdef set_value(self, object value) |
| 23 | cpdef float get_value(self) | 24 | cpdef float get_value(self) |
| 24 | 25 | ||
| 25 | cdef class String(Node): | 26 | cdef class String(Node): |
