Re: ctypes: nested structures and pointers

2010-01-18 Thread Gabriele Modena
On Mon, Jan 18, 2010 at 10:33 AM, Gabriele Modena wrote: >  1. what is the correct (pythonic) way to capture the prototype > definition of dev_callbacks and the relation between that structure > and dev_info? > >  2. is it correct to wrap "connect", "transceive&q

ctypes: nested structures and pointers

2010-01-18 Thread Gabriele Modena
Hi all, I am trying to learn ctypes and I am facing some problems In wrapping two nested structs. <--- begin C code > struct dev_callbacks;// Prototype the callback struct typedef struct { const struct dev_callbacks* pdc; char acName[DEVICE_NAME_LENGTH]; chip_type ct;