Re: [Pyobjc-dev] Wrapping GetLocationID from IOUSBLib
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2009-06-23 08:53:26
|
On 23 Jun, 2009, at 10:48, Orestis Markou wrote: > On 23 Jun 2009, at 11:36, Ronald Oussoren wrote: > >> >> On 23 Jun, 2009, at 10:18, Brendan Simon (eTRIX) wrote: >> >>> Brendan Simon (eTRIX) wrote: >>>> If IOKit support was added to PyObjC that would be really really >>>> useful :) >>> Errrr, as previously stated, IOKit is written in C so PyObjC is not >>> relevant. Sorry -- my bad. >> >> That's not quite true: IOKit seems to expose an CoreFoundation based >> API, which is PyObjC territory. It's rather unlikely that I'll get >> around to adding IOKit support anytime soon though because I don't >> use >> IOKit myself and adding support will be a lot of work. > > Is there a way to make ctypes and CF play together? I think that if > this gets added to PyObjC then people needing to access low-level > stuff from Python could do it themselves (for the bits they need). > That's probably smaller in focus and more enabling than wrapping a C > based framework that only a few people will use. Accessing bit of CF from ctypes is not very hard (there is some code in Python2.6's urllib that does this). Making that interact properly with PyObjC is harder, and not something I've time to work on at the moment. Ronald |