Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/function_ptr.pyx

raw
1 from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t
2 from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t
3 cdef extern from *:
4 ctypedef bint bool
5 ctypedef struct va_list
6
7 cdef extern from *:
8
9 ctypedef void (*MyCallback)(uintptr_t a, uintptr_t b);
10
11 ctypedef void (*MyOtherCallback)(uintptr_t a,
12 uintptr_t lot,
13 uintptr_t of,
14 uintptr_t args,
15 uintptr_t and_then_some);
16
17 void my_function(MyCallback a, MyOtherCallback b);