Hey,
i'm trying to create an instance of a struct from an external header:
cdef exern from "api.h":
ctypedef struct foo_config:
int member_1
...
cdef class Session:
foo_config config
def __init__(self):
self.config = foo_config()
Also, I need to create a void pointer for a struct and pass that into the c
library so it can create an instance of a struct in the memory, I can't see
a way of doing this.. when i try and assign None to an uninitialised
variable the cython compiler complains about a type mismatch.
Any help would be greatly appreciated :)
David
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev