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 -- http://mail.python.org/mailman/listinfo/python-list