diff options
Diffstat (limited to 'Mac/Modules/qt/qtsupport.py')
-rw-r--r-- | Mac/Modules/qt/qtsupport.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Mac/Modules/qt/qtsupport.py b/Mac/Modules/qt/qtsupport.py index 2e26888..063a79a 100644 --- a/Mac/Modules/qt/qtsupport.py +++ b/Mac/Modules/qt/qtsupport.py @@ -253,6 +253,21 @@ f = Function(void, 'MoviesTask', ) functions.append(f) +# Add manual routines for testing quicktime availability +available_body = """ +void *ptr; + +if ( !PyArg_ParseTuple(_args, "") ) + return NULL; +ptr = (void *)&EnterMovies; +return Py_BuildValue("i", ((long)ptr != 0)); +""" + +f = ManualGenerator("available", available_body) +f.docstring = lambda : "Return true if Quicktime is available" + +functions.append(f) + # add the populated lists to the generator groups # (in a different wordl the scan program would generate this) |