diff options
Diffstat (limited to 'cython/plist.pxd')
| -rw-r--r-- | cython/plist.pxd | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/cython/plist.pxd b/cython/plist.pxd index a31419d..5a41bf8 100644 --- a/cython/plist.pxd +++ b/cython/plist.pxd @@ -1,3 +1,5 @@ +from libc.stdint cimport * + cdef extern from "plist/plist.h": ctypedef void *plist_t ctypedef void *plist_dict_iter @@ -14,10 +16,19 @@ cdef class Node: cdef class Bool(Node): cpdef set_value(self, object value) cpdef bint get_value(self) - + cdef class Integer(Node): cpdef set_value(self, object value) - cpdef int get_value(self) + cpdef get_value(self) + cpdef bint is_negative(self) + +cdef class Uid(Node): + cpdef set_value(self, object value) + cpdef uint64_t get_value(self) + +cdef class Key(Node): + cpdef set_value(self, object value) + cpdef unicode get_value(self) cdef class Real(Node): cpdef set_value(self, object value) @@ -59,5 +70,10 @@ cdef class Array(Node): cpdef object from_xml(xml) cpdef object from_bin(bytes bin) +cpdef object load(fp, fmt=*, use_builtin_types=*, dict_type=*) +cpdef object loads(data, fmt=*, use_builtin_types=*, dict_type=*) +cpdef object dump(value, fp, fmt=*, sort_keys=*, skipkeys=*) +cpdef object dumps(value, fmt=*, sort_keys=*, skipkeys=*) + cdef object plist_t_to_node(plist_t c_plist, bint managed=*) cdef plist_t native_to_plist_t(object native) |
