[Python-checkins] CVS: python/dist/src/Include pymactoolbox.h,1.3,1.4

Jack Jansen jackjansen@users.sourceforge.net
2001年11月05日 06:39:24 -0800


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv23432/python/Include
Modified Files:
	pymactoolbox.h 
Log Message:
Make the CoreFoundation object _New and _Convert routines available to other modules. Idea by Donovan Preston, implementaion by me.
Index: pymactoolbox.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pymactoolbox.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pymactoolbox.h	2001年09月10日 22:09:30	1.3
--- pymactoolbox.h	2001年11月05日 14:39:22	1.4
***************
*** 16,19 ****
--- 16,25 ----
 #include <Movies.h>
 #include <Errors.h>
+ #include <CFBase.h>
+ #include <CFArray.h>
+ #include <CFData.h>
+ #include <CFDictionary.h>
+ #include <CFString.h>
+ #include <CFURL.h>
 #else
 #include <Carbon/Carbon.h>
***************
*** 168,171 ****
--- 174,195 ----
 extern PyObject *WinObj_WhichWindow(WindowPtr);
 
+ /* CF exports */
+ extern PyObject *CFTypeRefObj_New(CFTypeRef);
+ extern int CFTypeRefObj_Convert(PyObject *, CFTypeRef *);
+ extern PyObject *CFStringRefObj_New(CFStringRef);
+ extern int CFStringRefObj_Convert(PyObject *, CFStringRef *);
+ extern PyObject *CFMutableStringRefObj_New(CFMutableStringRef);
+ extern int CFMutableStringRefObj_Convert(PyObject *, CFMutableStringRef *);
+ extern PyObject *CFArrayRefObj_New(CFArrayRef);
+ extern int CFArrayRefObj_Convert(PyObject *, CFArrayRef *);
+ extern PyObject *CFMutableArrayRefObj_New(CFMutableArrayRef);
+ extern int CFMutableArrayRefObj_Convert(PyObject *, CFMutableArrayRef *);
+ extern PyObject *CFDictionaryRefObj_New(CFDictionaryRef);
+ extern int CFDictionaryRefObj_Convert(PyObject *, CFDictionaryRef *);
+ extern PyObject *CFMutableDictionaryRefObj_New(CFMutableDictionaryRef);
+ extern int CFMutableDictionaryRefObj_Convert(PyObject *, CFMutableDictionaryRef *);
+ extern PyObject *CFURLRefObj_New(CFURLRef);
+ extern int CFURLRefObj_Convert(PyObject *, CFURLRef *);
+ extern int OptionalCFURLRefObj_Convert(PyObject *, CFURLRef *);
 
 #ifdef __cplusplus

AltStyle によって変換されたページ (->オリジナル) /