Hey,<br><br><br>i'm trying to create an instance of a struct from an external header:<br><br>cdef exern from "api.h":<br> ctypedef struct foo_config:<br> int member_1<br> ...<br><br><br>cdef class Session:<br>
foo_config config<br> <br> def __init__(self):<br> self.config = foo_config()<br><br><br><br><br>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.<br>
<br>Any help would be greatly appreciated :)<br><br><br>David<br>