diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-09 22:09:31 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-09 22:09:31 (GMT) |
commit | 0d202b740399241d332c21960611943a0789190a (patch) | |
tree | ff6414ac6cc25160f0b74619a0cd1332a5e729d5 /Mac/Modules/qt | |
parent | 42181dba8ecf9736ae0ec2384aa4307533c835e1 (diff) | |
download | cpython-0d202b740399241d332c21960611943a0789190a.zip cpython-0d202b740399241d332c21960611943a0789190a.tar.gz cpython-0d202b740399241d332c21960611943a0789190a.tar.bz2 |
Various tweaks to make it everything build and compile again under carbon. Mainly greylisted functions.
Diffstat (limited to 'Mac/Modules/qt')
-rw-r--r-- | Mac/Modules/qt/Qtmodule.c | 60 | ||||
-rw-r--r-- | Mac/Modules/qt/qtscan.py | 10 |
2 files changed, 70 insertions, 0 deletions
diff --git a/Mac/Modules/qt/Qtmodule.c b/Mac/Modules/qt/Qtmodule.c index 69347da..20f10cc 100644 --- a/Mac/Modules/qt/Qtmodule.c +++ b/Mac/Modules/qt/Qtmodule.c @@ -5733,6 +5733,8 @@ static PyObject *MovieObj_GetMovieDefaultDataRef(_self, _args) return _res; } +#if !TARGET_API_MAC_CARBON + static PyObject *MovieObj_SetMovieAnchorDataRef(_self, _args) MovieObject *_self; PyObject *_args; @@ -5753,6 +5755,9 @@ static PyObject *MovieObj_SetMovieAnchorDataRef(_self, _args) _res = Py_None; return _res; } +#endif + +#if !TARGET_API_MAC_CARBON static PyObject *MovieObj_GetMovieAnchorDataRef(_self, _args) MovieObject *_self; @@ -5776,6 +5781,7 @@ static PyObject *MovieObj_GetMovieAnchorDataRef(_self, _args) outFlags); return _res; } +#endif static PyObject *MovieObj_SetMovieColorTable(_self, _args) MovieObject *_self; @@ -5974,6 +5980,8 @@ static PyObject *MovieObj_GetMovieStatus(_self, _args) return _res; } +#if !TARGET_API_MAC_CARBON + static PyObject *MovieObj_GetMovieLoadState(_self, _args) MovieObject *_self; PyObject *_args; @@ -5987,6 +5995,7 @@ static PyObject *MovieObj_GetMovieLoadState(_self, _args) _rv); return _res; } +#endif static PyObject *MovieObj_NewMovieController(_self, _args) MovieObject *_self; @@ -6287,10 +6296,16 @@ static PyMethodDef MovieObj_methods[] = { "(Handle dataRef, OSType dataRefType) -> None"}, {"GetMovieDefaultDataRef", (PyCFunction)MovieObj_GetMovieDefaultDataRef, 1, "() -> (Handle dataRef, OSType dataRefType)"}, + +#if !TARGET_API_MAC_CARBON {"SetMovieAnchorDataRef", (PyCFunction)MovieObj_SetMovieAnchorDataRef, 1, "(Handle dataRef, OSType dataRefType) -> None"}, +#endif + +#if !TARGET_API_MAC_CARBON {"GetMovieAnchorDataRef", (PyCFunction)MovieObj_GetMovieAnchorDataRef, 1, "() -> (Handle dataRef, OSType dataRefType, long outFlags)"}, +#endif {"SetMovieColorTable", (PyCFunction)MovieObj_SetMovieColorTable, 1, "(CTabHandle ctab) -> None"}, {"GetMovieColorTable", (PyCFunction)MovieObj_GetMovieColorTable, 1, @@ -6309,8 +6324,11 @@ static PyMethodDef MovieObj_methods[] = { "(TimeValue time, TimeValue duration) -> (RgnHandle _rv)"}, {"GetMovieStatus", (PyCFunction)MovieObj_GetMovieStatus, 1, "() -> (ComponentResult _rv, Track firstProblemTrack)"}, + +#if !TARGET_API_MAC_CARBON {"GetMovieLoadState", (PyCFunction)MovieObj_GetMovieLoadState, 1, "() -> (long _rv)"}, +#endif {"NewMovieController", (PyCFunction)MovieObj_NewMovieController, 1, "(Rect movieRect, long someFlags) -> (MovieController _rv)"}, {"PutMovieOnScrap", (PyCFunction)MovieObj_PutMovieOnScrap, 1, @@ -6510,6 +6528,8 @@ static PyObject *Qt_GetDataHandler(_self, _args) return _res; } +#if !TARGET_API_MAC_CARBON + static PyObject *Qt_OpenADataHandler(_self, _args) PyObject *_self; PyObject *_args; @@ -6543,6 +6563,7 @@ static PyObject *Qt_OpenADataHandler(_self, _args) CmpInstObj_New, dh); return _res; } +#endif static PyObject *Qt_PasteHandleIntoMovie(_self, _args) PyObject *_self; @@ -8330,6 +8351,8 @@ static PyObject *Qt_FlashMediaFrameLabelToMovieTime(_self, _args) return _res; } +#if !TARGET_API_MAC_CARBON + static PyObject *Qt_MovieMediaGetCurrentMovieProperty(_self, _args) PyObject *_self; PyObject *_args; @@ -8351,6 +8374,9 @@ static PyObject *Qt_MovieMediaGetCurrentMovieProperty(_self, _args) _rv); return _res; } +#endif + +#if !TARGET_API_MAC_CARBON static PyObject *Qt_MovieMediaGetCurrentTrackProperty(_self, _args) PyObject *_self; @@ -8376,6 +8402,9 @@ static PyObject *Qt_MovieMediaGetCurrentTrackProperty(_self, _args) _rv); return _res; } +#endif + +#if !TARGET_API_MAC_CARBON static PyObject *Qt_MovieMediaGetChildMovieDataReference(_self, _args) PyObject *_self; @@ -8410,6 +8439,9 @@ static PyObject *Qt_MovieMediaGetChildMovieDataReference(_self, _args) dataRefIndexOut); return _res; } +#endif + +#if !TARGET_API_MAC_CARBON static PyObject *Qt_MovieMediaSetChildMovieDataReference(_self, _args) PyObject *_self; @@ -8435,6 +8467,9 @@ static PyObject *Qt_MovieMediaSetChildMovieDataReference(_self, _args) _rv); return _res; } +#endif + +#if !TARGET_API_MAC_CARBON static PyObject *Qt_MovieMediaLoadChildMovieFromDataReference(_self, _args) PyObject *_self; @@ -8454,6 +8489,7 @@ static PyObject *Qt_MovieMediaLoadChildMovieFromDataReference(_self, _args) _rv); return _res; } +#endif static PyObject *Qt_Media3DGetCurrentGroup(_self, _args) PyObject *_self; @@ -8678,6 +8714,8 @@ static PyObject *Qt_Media3DGetCameraRange(_self, _args) return _res; } +#if !TARGET_API_MAC_CARBON + static PyObject *Qt_Media3DGetViewObject(_self, _args) PyObject *_self; PyObject *_args; @@ -8696,6 +8734,7 @@ static PyObject *Qt_Media3DGetViewObject(_self, _args) _rv); return _res; } +#endif static PyObject *Qt_NewTimeBase(_self, _args) PyObject *_self; @@ -8886,8 +8925,11 @@ static PyMethodDef Qt_methods[] = { "(long flags) -> (Movie _rv)"}, {"GetDataHandler", (PyCFunction)Qt_GetDataHandler, 1, "(Handle dataRef, OSType dataHandlerSubType, long flags) -> (Component _rv)"}, + +#if !TARGET_API_MAC_CARBON {"OpenADataHandler", (PyCFunction)Qt_OpenADataHandler, 1, "(Handle dataRef, OSType dataHandlerSubType, Handle anchorDataRef, OSType anchorDataRefType, TimeBase tb, long flags) -> (ComponentInstance dh)"}, +#endif {"PasteHandleIntoMovie", (PyCFunction)Qt_PasteHandleIntoMovie, 1, "(Handle h, OSType handleType, Movie theMovie, long flags, ComponentInstance userComp) -> None"}, {"GetMovieImporterForDataRef", (PyCFunction)Qt_GetMovieImporterForDataRef, 1, @@ -9037,16 +9079,31 @@ static PyMethodDef Qt_methods[] = { "(MediaHandler mh, long flashFrameNumber) -> (ComponentResult _rv, TimeValue movieTime)"}, {"FlashMediaFrameLabelToMovieTime", (PyCFunction)Qt_FlashMediaFrameLabelToMovieTime, 1, "(MediaHandler mh, Ptr theLabel) -> (ComponentResult _rv, TimeValue movieTime)"}, + +#if !TARGET_API_MAC_CARBON {"MovieMediaGetCurrentMovieProperty", (PyCFunction)Qt_MovieMediaGetCurrentMovieProperty, 1, "(MediaHandler mh, OSType whichProperty, void * value) -> (ComponentResult _rv)"}, +#endif + +#if !TARGET_API_MAC_CARBON {"MovieMediaGetCurrentTrackProperty", (PyCFunction)Qt_MovieMediaGetCurrentTrackProperty, 1, "(MediaHandler mh, long trackID, OSType whichProperty, void * value) -> (ComponentResult _rv)"}, +#endif + +#if !TARGET_API_MAC_CARBON {"MovieMediaGetChildMovieDataReference", (PyCFunction)Qt_MovieMediaGetChildMovieDataReference, 1, "(MediaHandler mh, QTAtomID dataRefID, short dataRefIndex) -> (ComponentResult _rv, OSType dataRefType, Handle dataRef, QTAtomID dataRefIDOut, short dataRefIndexOut)"}, +#endif + +#if !TARGET_API_MAC_CARBON {"MovieMediaSetChildMovieDataReference", (PyCFunction)Qt_MovieMediaSetChildMovieDataReference, 1, "(MediaHandler mh, QTAtomID dataRefID, OSType dataRefType, Handle dataRef) -> (ComponentResult _rv)"}, +#endif + +#if !TARGET_API_MAC_CARBON {"MovieMediaLoadChildMovieFromDataReference", (PyCFunction)Qt_MovieMediaLoadChildMovieFromDataReference, 1, "(MediaHandler mh, QTAtomID dataRefID) -> (ComponentResult _rv)"}, +#endif {"Media3DGetCurrentGroup", (PyCFunction)Qt_Media3DGetCurrentGroup, 1, "(MediaHandler mh, void * group) -> (ComponentResult _rv)"}, {"Media3DTranslateNamedObjectTo", (PyCFunction)Qt_Media3DTranslateNamedObjectTo, 1, @@ -9067,8 +9124,11 @@ static PyMethodDef Qt_methods[] = { "(MediaHandler mh, void * tQ3CameraRange) -> (ComponentResult _rv)"}, {"Media3DGetCameraRange", (PyCFunction)Qt_Media3DGetCameraRange, 1, "(MediaHandler mh, void * tQ3CameraRange) -> (ComponentResult _rv)"}, + +#if !TARGET_API_MAC_CARBON {"Media3DGetViewObject", (PyCFunction)Qt_Media3DGetViewObject, 1, "(MediaHandler mh, void * tq3viewObject) -> (ComponentResult _rv)"}, +#endif {"NewTimeBase", (PyCFunction)Qt_NewTimeBase, 1, "() -> (TimeBase _rv)"}, {"ConvertTime", (PyCFunction)Qt_ConvertTime, 1, diff --git a/Mac/Modules/qt/qtscan.py b/Mac/Modules/qt/qtscan.py index 9dd120b..45ef428 100644 --- a/Mac/Modules/qt/qtscan.py +++ b/Mac/Modules/qt/qtscan.py @@ -68,6 +68,16 @@ class MyScanner(Scanner): ('#if !TARGET_API_MAC_CARBON', [ 'SpriteMediaGetIndImageProperty', # XXXX Why isn't this in carbon? 'CheckQuickTimeRegistration', + 'SetMovieAnchorDataRef', + 'GetMovieAnchorDataRef', + 'GetMovieLoadState', + 'OpenADataHandler', + 'MovieMediaGetCurrentMovieProperty', + 'MovieMediaGetCurrentTrackProperty', + 'MovieMediaGetChildMovieDataReference', + 'MovieMediaSetChildMovieDataReference', + 'MovieMediaLoadChildMovieFromDataReference', + 'Media3DGetViewObject', ])] def makeblacklisttypes(self): |