Re: call Mac gcc -framework from CTypes how

2006-10-25 Thread p . lavarre
can I somehow call the IONotificationPortCreate in the Framework that Apple built instead, $ cd /System/Library/Frameworks/ $ cd IOKit.framework/Versions/Current/ $ file IOKit ... Mach-O dynamically linked shared library ... $ nm -m IOKit | grep IONotificationPortCreate ... (__TEXT,__text)

Re: call Mac gcc -framework from CTypes how

2006-10-25 Thread p . lavarre
can I somehow call the IONotificationPortCreate in the Framework that Apple built instead, $ cd /System/Library/Frameworks/ $ cd IOKit.framework/Versions/Current/ $ file IOKit Also ctypes.util.find_library('CoreFoundation') -- http://mail.python.org/mailman/listinfo/python-list

call Mac gcc -framework from CTypes how

2006-10-18 Thread p . lavarre
gcc -dynamiclib -framework CoreFoundation builds C code for Mac OS X that I call from Py code. Can I somehow get rid of the C, such as: #include CoreFoundation/CoreFoundation.h void const * kCFTypeDictionaryKeyCallBacks_p(void) { return kCFTypeDictionaryKeyCallBacks; } ? Thanks in