This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients loewis, ndbecker
Date 2008-04-28.22:55:43
SpamBayes Score 0.028584894
Marked as misclassified No
Message-id <1209423344.83.0.2327186015.issue2712@psf.upfronthosting.co.za>
In-reply-to
Content
Passing structures is certainly possible. I'd try

args = struct.pack("iP", len(c), cast (pointer (c), c_void_p).value)
fcntl.ioctl(fd, request, args)

Alternatively,

args = eos_dl_args_t()
...
args_p = cast(pointer(args), c_void_ptr).value
fcntl.ioctl(fd, request, args_p)

should also work, IIUC.
History
Date User Action Args
2008-04-28 22:55:45loewissetspambayes_score: 0.0285849 -> 0.028584894
recipients: + loewis, ndbecker
2008-04-28 22:55:45loewissetspambayes_score: 0.0285849 -> 0.0285849
messageid: <1209423344.83.0.2327186015.issue2712@psf.upfronthosting.co.za>
2008-04-28 22:55:43loewislinkissue2712 messages
2008-04-28 22:55:43loewiscreate