I've done a lot of research and nothing came up... I'm new to Python and Ctypes and I'm trying to call functions from a shared library. So far so good, but these functions take as parameter specifics datatypes from structures defined inside the .so
my question is, I've seen examples of how to declare the "class Structure" in Python, but this is what I have in the .so
typedef struct noPDDE
{
void *x;
struct noPDDE *y;
struct noPDDE *z;
}NoPDDE,*pNoPDDE;
typedef struct PDDE
{
int tam;
pNoPDDE sup;
}PDDE;
I have no idea how to pass the PDDE pointer to the functions.
Any help is useful. thanks a lot.
PDDEis a struct, not a pointer. Do you mean "pass a pointer to a PDDE struct"?