Passing a packed C structure to a c module

Philippe Martin pmartin at snakecard.com
Fri Apr 14 13:25:16 EDT 2006


Well,

The call actually is an IOCtl: depending on the control code, the structure
has a different format.

Although the number of control codes/structures is finite, it would make the
wrapper function fairly large.

You seem to think that building the structure from python would be a
mistake: why is that ?

PS: the wrapper also has to work under multiple OSs

Regards,

Philippe





"Martin v. Löwis" wrote:

> Philippe Martin wrote:
>> It's a pretty big structure: painfull to pass each item as a param.
> 
> So how else would you like to pass them? Define the API you want,
> and then just implement it. It still shouldn't require to define
> the layout in Python.
> 
> Regards,
> Martin




More information about the Python-list mailing list