I have a header file as below, I wanted to use mymodule() in python script,
to use the c library I thought of using cython. Header file name is:
myheader.h
typedef struct {
int arg1;
t2 *arg2;
enum1 arg3;
unsigned int arg4;
enum2 arg5;
} t1;
t1 *func1(int a, char b, unsigned int c);
cwrapper.pxd
cdef extern from "mylib/myheader.h":
ctypedef struct t1:
pass
t1 *func1(int a, char b, unsigned int c)
can somebody help me write pxd file. i am new to cython and python, it is
confusing for me how to declare __cinit__ etc basics.