summaryrefslogtreecommitdiffstats
path: root/cython/plist.pyx
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-05-13 19:38:22 +0200
committerGravatar Nikias Bassen2024-05-13 19:38:22 +0200
commit1327c87bf92f1d51286e3172c1047a8a47c5ee3a (patch)
tree8edf522f2d5b749027810c73b55270a3d3477dc3 /cython/plist.pyx
parent06877b5ecb9704baded1160a149912fad8141a39 (diff)
downloadlibplist-1327c87bf92f1d51286e3172c1047a8a47c5ee3a.tar.gz
libplist-1327c87bf92f1d51286e3172c1047a8a47c5ee3a.tar.bz2
Revert "Change API around #PLIST_DATA to use uint8_t instead of char arrays"
This reverts commit a91f5740d100414a76959714b819422ee5b2d8a8.
Diffstat (limited to 'cython/plist.pyx')
-rw-r--r--cython/plist.pyx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx
index a16e7be..b5f4ef6 100644
--- a/cython/plist.pyx
+++ b/cython/plist.pyx
@@ -48,9 +48,9 @@ cdef extern from *:
void plist_get_string_val(plist_t node, char **val)
void plist_set_string_val(plist_t node, char *val)
- plist_t plist_new_data(uint8_t *val, uint64_t length)
- void plist_get_data_val(plist_t node, uint8_t **val, uint64_t * length)
- void plist_set_data_val(plist_t node, uint8_t *val, uint64_t length)
+ plist_t plist_new_data(char *val, uint64_t length)
+ void plist_get_data_val(plist_t node, char **val, uint64_t * length)
+ void plist_set_data_val(plist_t node, char *val, uint64_t length)
plist_t plist_new_null();
@@ -579,7 +579,7 @@ cdef class Data(Node):
cpdef bytes get_value(self):
cdef:
- uint8_t* val = NULL
+ char* val = NULL
uint64_t length = 0
plist_get_data_val(self._c_node, &val, &length)