Nov-03-2018, 02:32 AM
hi,
i want to wrap a C header into ctypes
but, as the header file is large, (lots of structs, callbacks etc), i don't want to put most of my effort on writing the ctypes wrapper by hand
is there any way of parsing the header and generate the ctypes wrapper?
i have seen pycparser, but i don't know how to generate ctypes wrappers with it.
thanks
i want to wrap a C header into ctypes
but, as the header file is large, (lots of structs, callbacks etc), i don't want to put most of my effort on writing the ctypes wrapper by hand
is there any way of parsing the header and generate the ctypes wrapper?
i have seen pycparser, but i don't know how to generate ctypes wrappers with it.
thanks