summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/qt/qtscan.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-12-09 14:05:56 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-12-09 14:05:56 (GMT)
commit9cfea10bf2fbebd65a2f81e60bc48576c905ee9e (patch)
treefc00bb5ed9a16a9e76935ff81986474dfb277382 /Mac/Modules/qt/qtscan.py
parent232f3cd190720f2db408c5654a19496ba572c3fa (diff)
downloadcpython-9cfea10bf2fbebd65a2f81e60bc48576c905ee9e.zip
cpython-9cfea10bf2fbebd65a2f81e60bc48576c905ee9e.tar.gz
cpython-9cfea10bf2fbebd65a2f81e60bc48576c905ee9e.tar.bz2
It now actually works. Also, MovieInWindow and VerySimplePlayer
example programs translated to python and added.
Diffstat (limited to 'Mac/Modules/qt/qtscan.py')
-rw-r--r--Mac/Modules/qt/qtscan.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/Mac/Modules/qt/qtscan.py b/Mac/Modules/qt/qtscan.py
index 83683fe..020c487 100644
--- a/Mac/Modules/qt/qtscan.py
+++ b/Mac/Modules/qt/qtscan.py
@@ -6,7 +6,7 @@ from scantools import Scanner
LONG = "QuickTime"
SHORT = "qt"
-OBJECTS = ("Movie", "Track", "Media", "UserData", "TimeBase")
+OBJECTS = ("Movie", "Track", "Media", "UserData", "TimeBase", "MovieController")
def main():
input = "Movies.h"
@@ -38,6 +38,7 @@ class MyScanner(Scanner):
"DisposeTrackMedia", # ditto
"DisposeUserData", # ditto
"DisposeTimeBase", # ditto
+ "DisposeMovieController", # ditto
"GetMovieCreationTime", # type "unsigned long" in C, inparseable
"GetMovieModificationTime", # Ditto
"GetTrackCreationTime", # ditto
@@ -49,7 +50,6 @@ class MyScanner(Scanner):
"GetUserDataItem",
"SetUserDataItem",
"SetTextSampleData",
- "MCDoAction",
# bgen gets the argument in/out wrong..
"AddTextSample",
"AddTESample",
@@ -95,6 +95,17 @@ class MyScanner(Scanner):
def makerepairinstructions(self):
return [
([('FSSpec', '*', 'OutMode')], [('FSSpec_ptr', '*', 'InMode')]),
+
+ # Movie controller creation
+ ([('ComponentInstance', 'NewMovieController', 'ReturnMode')],
+ [('MovieController', '*', 'ReturnMode')]),
+
+ # NewMovieFromFile
+ ([('short', 'resId', 'OutMode'), ('StringPtr', 'resName', 'InMode')],
+ [('dummyshortptr', 'resId', 'InMode'), ('dummyStringPtr', 'resName', 'InMode')]),
+
+ # MCDoAction
+ ([('void', 'params', 'OutMode')], [('mcactionparams', 'params', 'InMode')]),
]
if __name__ == "__main__":