mirror of https://github.com/python/cpython
Updated for QuickTime 6.0, Universal Header 3.4.2.
This commit is contained in:
parent
ecd9129c94
commit
59f7dc9b40
File diff suppressed because it is too large
Load Diff
|
@ -8,7 +8,7 @@ from scantools import Scanner
|
|||
|
||||
LONG = "QuickTime"
|
||||
SHORT = "qt"
|
||||
OBJECTS = ("Movie", "Track", "Media", "UserData", "TimeBase", "MovieController")
|
||||
OBJECTS = ("Movie", "Track", "Media", "UserData", "TimeBase", "MovieController", "IdleManager")
|
||||
|
||||
def main():
|
||||
input = "Movies.h"
|
||||
|
@ -91,6 +91,10 @@ class MyScanner(Scanner):
|
|||
"MatrixRecord_ptr",
|
||||
"SampleReferencePtr",
|
||||
"QTTweener",
|
||||
"QTErrorReplacementPtr",
|
||||
"QTRestrictionSet",
|
||||
"QTUUID",
|
||||
"QTUUID_ptr",
|
||||
|
||||
# Routine pointers, not yet.
|
||||
"MoviesErrorUPP",
|
||||
|
@ -109,6 +113,7 @@ class MyScanner(Scanner):
|
|||
"MovieExecuteWiredActionsUPP",
|
||||
"QTBandwidthNotificationUPP",
|
||||
"DoMCActionUPP",
|
||||
"QTNextTaskNeededSoonerCallbackUPP",
|
||||
|
||||
"SampleReference64Ptr", # Don't know what this does, yet
|
||||
"QTRuntimeSpriteDescPtr",
|
||||
|
|
|
@ -115,6 +115,7 @@ Media = OpaqueByValueType('Media', 'MediaObj')
|
|||
UserData = OpaqueByValueType('UserData', 'UserDataObj')
|
||||
TimeBase = OpaqueByValueType('TimeBase', 'TimeBaseObj')
|
||||
MovieController = OpaqueByValueType('MovieController', 'MovieCtlObj')
|
||||
IdleManager = OpaqueByValueType('IdleManager', 'IdleManagerObj')
|
||||
|
||||
# Other opaque objects
|
||||
Component = OpaqueByValueType('Component', 'CmpObj')
|
||||
|
@ -230,6 +231,13 @@ class MovieCtlObjectDefinition(PEP253Mixin, GlobalObjectDefinition):
|
|||
def outputFreeIt(self, itselfname):
|
||||
Output("DisposeMovieController(%s);", itselfname)
|
||||
|
||||
class IdleManagerObjectDefinition(PEP253Mixin, GlobalObjectDefinition):
|
||||
def outputCheckNewArg(self):
|
||||
Output("""if (itself == NULL) {
|
||||
PyErr_SetString(Qt_Error,"Cannot create null IdleManager");
|
||||
return NULL;
|
||||
}""")
|
||||
|
||||
# From here on it's basically all boiler plate...
|
||||
|
||||
# Create the generator groups and link them
|
||||
|
@ -240,7 +248,9 @@ Media_object = MediaObjectDefinition('Media', 'MediaObj', 'Media')
|
|||
UserData_object = UserDataObjectDefinition('UserData', 'UserDataObj', 'UserData')
|
||||
TimeBase_object = TimeBaseObjectDefinition('TimeBase', 'TimeBaseObj', 'TimeBase')
|
||||
MovieController_object = MovieCtlObjectDefinition('MovieController', 'MovieCtlObj', 'MovieController')
|
||||
IdleManager_object = IdleManagerObjectDefinition('IdleManager', 'IdleManagerObj', 'IdleManager')
|
||||
|
||||
module.addobject(IdleManager_object)
|
||||
module.addobject(MovieController_object)
|
||||
module.addobject(TimeBase_object)
|
||||
module.addobject(UserData_object)
|
||||
|
@ -254,6 +264,7 @@ Method = OSErrWeakLinkMethodGenerator
|
|||
|
||||
# Create and populate the lists
|
||||
functions = []
|
||||
IdleManager_methods = []
|
||||
MovieController_methods = []
|
||||
TimeBase_methods = []
|
||||
UserData_methods = []
|
||||
|
|
Loading…
Reference in New Issue