summaryrefslogtreecommitdiff
path: root/src/portal/cpy/str.pxd
blob: 77cd0932150dc4bc9163cd74e050ecc1555bea2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
include "types.pxd"

cdef extern from "<al/str.h>":
     ctypedef struct str:
         u32 length
         u32 alloc
         char *data

     void al_str_from(str *s, const char *str)
     char *al_str_to_c_str(str *s)

cdef extern from "<al/wstr.h>":
     ctypedef struct wstr:
         u32 length
         u32 alloc
         wchar_t *data

     void al_wstr_from_cstr(wstr *s, const char *str)