I am trying to wrap a C library in Python using ctypes library.
I wrap structs this way
file.c
typedef struct {
int x;
int y;
} Point;
file.py
import ctypes
class Point(ctypes.Structure):
_fields_ = [("x": ctypes.c_int), ("y", ctypes.c_int)]
But I have a statement like this and cannot find out how to wrap it and get the type MyFucntion.
typedef char* (*MyFunction)(char*);