Commit 4a8c54e6 authored by Jack Jansen's avatar Jack Jansen

- Changed GestaltEqu.h to Gestalt.h

- Changed FragLoader.h to CodeFragments.h
- Removed Desk.h
- Regenerated bgen modules from new universal headers
- Changed some of the s# in PyArg_ParseTuple to m# (unfortunately:
  this should have been a different commit)
parent 6a528149
...@@ -146,54 +146,6 @@ static PyObject *CmpInstObj_GetComponentInstanceError(_self, _args) ...@@ -146,54 +146,6 @@ static PyObject *CmpInstObj_GetComponentInstanceError(_self, _args)
return _res; return _res;
} }
static PyObject *CmpInstObj_ComponentFunctionImplemented(_self, _args)
ComponentInstanceObject *_self;
PyObject *_args;
{
PyObject *_res = NULL;
long _rv;
short ftnNumber;
if (!PyArg_ParseTuple(_args, "h",
&ftnNumber))
return NULL;
_rv = ComponentFunctionImplemented(_self->ob_itself,
ftnNumber);
_res = Py_BuildValue("l",
_rv);
return _res;
}
static PyObject *CmpInstObj_GetComponentVersion(_self, _args)
ComponentInstanceObject *_self;
PyObject *_args;
{
PyObject *_res = NULL;
long _rv;
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetComponentVersion(_self->ob_itself);
_res = Py_BuildValue("l",
_rv);
return _res;
}
static PyObject *CmpInstObj_ComponentSetTarget(_self, _args)
ComponentInstanceObject *_self;
PyObject *_args;
{
PyObject *_res = NULL;
long _rv;
ComponentInstance target;
if (!PyArg_ParseTuple(_args, "O&",
CmpInstObj_Convert, &target))
return NULL;
_rv = ComponentSetTarget(_self->ob_itself,
target);
_res = Py_BuildValue("l",
_rv);
return _res;
}
static PyObject *CmpInstObj_SetComponentInstanceError(_self, _args) static PyObject *CmpInstObj_SetComponentInstanceError(_self, _args)
ComponentInstanceObject *_self; ComponentInstanceObject *_self;
PyObject *_args; PyObject *_args;
...@@ -270,17 +222,59 @@ static PyObject *CmpInstObj_SetComponentInstanceA5(_self, _args) ...@@ -270,17 +222,59 @@ static PyObject *CmpInstObj_SetComponentInstanceA5(_self, _args)
return _res; return _res;
} }
static PyObject *CmpInstObj_ComponentFunctionImplemented(_self, _args)
ComponentInstanceObject *_self;
PyObject *_args;
{
PyObject *_res = NULL;
long _rv;
short ftnNumber;
if (!PyArg_ParseTuple(_args, "h",
&ftnNumber))
return NULL;
_rv = ComponentFunctionImplemented(_self->ob_itself,
ftnNumber);
_res = Py_BuildValue("l",
_rv);
return _res;
}
static PyObject *CmpInstObj_GetComponentVersion(_self, _args)
ComponentInstanceObject *_self;
PyObject *_args;
{
PyObject *_res = NULL;
long _rv;
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetComponentVersion(_self->ob_itself);
_res = Py_BuildValue("l",
_rv);
return _res;
}
static PyObject *CmpInstObj_ComponentSetTarget(_self, _args)
ComponentInstanceObject *_self;
PyObject *_args;
{
PyObject *_res = NULL;
long _rv;
ComponentInstance target;
if (!PyArg_ParseTuple(_args, "O&",
CmpInstObj_Convert, &target))
return NULL;
_rv = ComponentSetTarget(_self->ob_itself,
target);
_res = Py_BuildValue("l",
_rv);
return _res;
}
static PyMethodDef CmpInstObj_methods[] = { static PyMethodDef CmpInstObj_methods[] = {
{"CloseComponent", (PyCFunction)CmpInstObj_CloseComponent, 1, {"CloseComponent", (PyCFunction)CmpInstObj_CloseComponent, 1,
"() -> None"}, "() -> None"},
{"GetComponentInstanceError", (PyCFunction)CmpInstObj_GetComponentInstanceError, 1, {"GetComponentInstanceError", (PyCFunction)CmpInstObj_GetComponentInstanceError, 1,
"() -> None"}, "() -> None"},
{"ComponentFunctionImplemented", (PyCFunction)CmpInstObj_ComponentFunctionImplemented, 1,
"(short ftnNumber) -> (long _rv)"},
{"GetComponentVersion", (PyCFunction)CmpInstObj_GetComponentVersion, 1,
"() -> (long _rv)"},
{"ComponentSetTarget", (PyCFunction)CmpInstObj_ComponentSetTarget, 1,
"(ComponentInstance target) -> (long _rv)"},
{"SetComponentInstanceError", (PyCFunction)CmpInstObj_SetComponentInstanceError, 1, {"SetComponentInstanceError", (PyCFunction)CmpInstObj_SetComponentInstanceError, 1,
"(OSErr theError) -> None"}, "(OSErr theError) -> None"},
{"GetComponentInstanceStorage", (PyCFunction)CmpInstObj_GetComponentInstanceStorage, 1, {"GetComponentInstanceStorage", (PyCFunction)CmpInstObj_GetComponentInstanceStorage, 1,
...@@ -291,6 +285,12 @@ static PyMethodDef CmpInstObj_methods[] = { ...@@ -291,6 +285,12 @@ static PyMethodDef CmpInstObj_methods[] = {
"() -> (long _rv)"}, "() -> (long _rv)"},
{"SetComponentInstanceA5", (PyCFunction)CmpInstObj_SetComponentInstanceA5, 1, {"SetComponentInstanceA5", (PyCFunction)CmpInstObj_SetComponentInstanceA5, 1,
"(long theA5) -> None"}, "(long theA5) -> None"},
{"ComponentFunctionImplemented", (PyCFunction)CmpInstObj_ComponentFunctionImplemented, 1,
"(short ftnNumber) -> (long _rv)"},
{"GetComponentVersion", (PyCFunction)CmpInstObj_GetComponentVersion, 1,
"() -> (long _rv)"},
{"ComponentSetTarget", (PyCFunction)CmpInstObj_ComponentSetTarget, 1,
"(ComponentInstance target) -> (long _rv)"},
{NULL, NULL, 0} {NULL, NULL, 0}
}; };
...@@ -609,13 +609,13 @@ static PyObject *Cm_RegisterComponentResource(_self, _args) ...@@ -609,13 +609,13 @@ static PyObject *Cm_RegisterComponentResource(_self, _args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Component _rv; Component _rv;
ComponentResourceHandle tr; ComponentResourceHandle cr;
short global; short global;
if (!PyArg_ParseTuple(_args, "O&h", if (!PyArg_ParseTuple(_args, "O&h",
ResObj_Convert, &tr, ResObj_Convert, &cr,
&global)) &global))
return NULL; return NULL;
_rv = RegisterComponentResource(tr, _rv = RegisterComponentResource(cr,
global); global);
_res = Py_BuildValue("O&", _res = Py_BuildValue("O&",
CmpObj_New, _rv); CmpObj_New, _rv);
...@@ -728,7 +728,7 @@ static PyObject *Cm_RegisterComponentResourceFile(_self, _args) ...@@ -728,7 +728,7 @@ static PyObject *Cm_RegisterComponentResourceFile(_self, _args)
static PyMethodDef Cm_methods[] = { static PyMethodDef Cm_methods[] = {
{"RegisterComponentResource", (PyCFunction)Cm_RegisterComponentResource, 1, {"RegisterComponentResource", (PyCFunction)Cm_RegisterComponentResource, 1,
"(ComponentResourceHandle tr, short global) -> (Component _rv)"}, "(ComponentResourceHandle cr, short global) -> (Component _rv)"},
{"FindNextComponent", (PyCFunction)Cm_FindNextComponent, 1, {"FindNextComponent", (PyCFunction)Cm_FindNextComponent, 1,
"(Component aComponent, ComponentDescription looking) -> (Component _rv)"}, "(Component aComponent, ComponentDescription looking) -> (Component _rv)"},
{"CountComponents", (PyCFunction)Cm_CountComponents, 1, {"CountComponents", (PyCFunction)Cm_CountComponents, 1,
......
...@@ -40,7 +40,17 @@ class MyScanner(Scanner): ...@@ -40,7 +40,17 @@ class MyScanner(Scanner):
def makeblacklistnames(self): def makeblacklistnames(self):
return [ return [
# "GetComponentInfo" # XXXX I dont know how the Handle args are expected... "OpenADefaultComponent",
"GetComponentTypeModSeed",
"OpenAComponentResFile",
"CallComponentUnregister",
"CallComponentTarget",
"CallComponentRegister",
"CallComponentVersion",
"CallComponentCanDo",
"CallComponentClose",
"CallComponentOpen",
"OpenAComponent",
] ]
def makeblacklisttypes(self): def makeblacklisttypes(self):
...@@ -54,6 +64,7 @@ class MyScanner(Scanner): ...@@ -54,6 +64,7 @@ class MyScanner(Scanner):
"ComponentParameters", "ComponentParameters",
"ComponentRoutineUPP", "ComponentRoutineUPP",
"ComponentMPWorkFunctionUPP",
] ]
def makerepairinstructions(self): def makerepairinstructions(self):
......
...@@ -269,7 +269,7 @@ ctbcm_write(self, args) ...@@ -269,7 +269,7 @@ ctbcm_write(self, args)
char *buf; char *buf;
ConnectionCompletionUPP cb_upp = NewConnectionCompletionProc(ctbcm_ctbcallback); ConnectionCompletionUPP cb_upp = NewConnectionCompletionProc(ctbcm_ctbcallback);
if (!PyArg_Parse(args, "(s#ili)", &buf, &ilen, &chan, &timeout, &flags)) if (!PyArg_Parse(args, "(m#ili)", &buf, &ilen, &chan, &timeout, &flags))
return NULL; return NULL;
len = ilen; len = ilen;
if ((err=CMWrite(self->hdl, (Ptr)buf, &len, (CMChannel)chan, if ((err=CMWrite(self->hdl, (Ptr)buf, &len, (CMChannel)chan,
......
...@@ -43,7 +43,6 @@ extern int BMObj_Convert(PyObject *, BitMapPtr *); ...@@ -43,7 +43,6 @@ extern int BMObj_Convert(PyObject *, BitMapPtr *);
extern PyObject *WinObj_WhichWindow(WindowPtr); extern PyObject *WinObj_WhichWindow(WindowPtr);
#include <Events.h> #include <Events.h>
#include <Desk.h>
#define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */ #define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */
......
...@@ -36,7 +36,6 @@ EventKind = Type("EventKind", "h") ...@@ -36,7 +36,6 @@ EventKind = Type("EventKind", "h")
includestuff = includestuff + """ includestuff = includestuff + """
#include <%s>""" % MACHEADERFILE + """ #include <%s>""" % MACHEADERFILE + """
#include <Desk.h>
#define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */ #define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */
""" """
......
...@@ -27,7 +27,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -27,7 +27,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "Python.h" #include "Python.h"
#include <Types.h> #include <Types.h>
#include <GestaltEqu.h> #include <Gestalt.h>
static PyObject * static PyObject *
gestalt_gestalt(self, args) gestalt_gestalt(self, args)
......
...@@ -824,7 +824,7 @@ mfs_RawFSSpec(self, args) ...@@ -824,7 +824,7 @@ mfs_RawFSSpec(self, args)
FSSpec *fssp; FSSpec *fssp;
int size; int size;
if (!PyArg_ParseTuple(args, "s#", &fssp, &size)) if (!PyArg_ParseTuple(args, "m#", &fssp, &size))
return NULL; return NULL;
if ( size != sizeof(FSSpec) ) { if ( size != sizeof(FSSpec) ) {
PyErr_SetString(PyExc_TypeError, "Incorrect size for FSSpec record"); PyErr_SetString(PyExc_TypeError, "Incorrect size for FSSpec record");
...@@ -842,7 +842,7 @@ mfs_RawAlias(self, args) ...@@ -842,7 +842,7 @@ mfs_RawAlias(self, args)
Handle h; Handle h;
int size; int size;
if (!PyArg_ParseTuple(args, "s#", &dataptr, &size)) if (!PyArg_ParseTuple(args, "m#", &dataptr, &size))
return NULL; return NULL;
h = NewHandle(size); h = NewHandle(size);
if ( h == NULL ) { if ( h == NULL ) {
......
...@@ -567,7 +567,7 @@ mac_write(self, args) ...@@ -567,7 +567,7 @@ mac_write(self, args)
{ {
int fd, size; int fd, size;
char *buffer; char *buffer;
if (!PyArg_Parse(args, "(is#)", &fd, &buffer, &size)) if (!PyArg_Parse(args, "(im#)", &fd, &buffer, &size))
return NULL; return NULL;
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
size = write(fd, buffer, size); size = write(fd, buffer, size);
......
...@@ -117,7 +117,7 @@ rf_write(self, args) ...@@ -117,7 +117,7 @@ rf_write(self, args)
PyErr_SetString(PyExc_ValueError, "Operation on closed file"); PyErr_SetString(PyExc_ValueError, "Operation on closed file");
return NULL; return NULL;
} }
if (!PyArg_ParseTuple(args, "s#", &buffer, &size)) if (!PyArg_ParseTuple(args, "m#", &buffer, &size))
return NULL; return NULL;
err = FSWrite(self->fRefNum, &size, buffer); err = FSWrite(self->fRefNum, &size, buffer);
if (err) { if (err) {
......
...@@ -25,7 +25,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -25,7 +25,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "Python.h" #include "Python.h"
#include <GestaltEqu.h> #include <Gestalt.h>
#include "Speech.h" #include "Speech.h"
#ifdef __MWERKS__ #ifdef __MWERKS__
...@@ -37,7 +37,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -37,7 +37,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#endif /* __MWERKS__ */ #endif /* __MWERKS__ */
#ifdef __powerc #ifdef __powerc
#include <FragLoad.h> #include <CodeFragments.h>
int lib_available; int lib_available;
#endif /* __powerc */ #endif /* __powerc */
...@@ -150,7 +150,7 @@ sc_SpeakText(self, args) ...@@ -150,7 +150,7 @@ sc_SpeakText(self, args)
char *str; char *str;
int len; int len;
if (!PyArg_Parse(args, "s#", &str, &len)) if (!PyArg_Parse(args, "m#", &str, &len))
return NULL; return NULL;
if ( self->curtext ) { if ( self->curtext ) {
StopSpeech(self->chan); StopSpeech(self->chan);
......
...@@ -43,7 +43,6 @@ extern int BMObj_Convert(PyObject *, BitMapPtr *); ...@@ -43,7 +43,6 @@ extern int BMObj_Convert(PyObject *, BitMapPtr *);
extern PyObject *WinObj_WhichWindow(WindowPtr); extern PyObject *WinObj_WhichWindow(WindowPtr);
#include <Devices.h> /* Defines OpenDeskAcc in universal headers */ #include <Devices.h> /* Defines OpenDeskAcc in universal headers */
#include <Desk.h> /* Defines OpenDeskAcc in old headers */
#include <Menus.h> #include <Menus.h>
#define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */ #define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */
......
...@@ -32,7 +32,6 @@ unsigned_char = Type('unsigned char', 'b') ...@@ -32,7 +32,6 @@ unsigned_char = Type('unsigned char', 'b')
includestuff = includestuff + """ includestuff = includestuff + """
#include <Devices.h> /* Defines OpenDeskAcc in universal headers */ #include <Devices.h> /* Defines OpenDeskAcc in universal headers */
#include <Desk.h> /* Defines OpenDeskAcc in old headers */
#include <%s>""" % MACHEADERFILE + """ #include <%s>""" % MACHEADERFILE + """
#define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */ #define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */
......
...@@ -43,7 +43,6 @@ extern int BMObj_Convert(PyObject *, BitMapPtr *); ...@@ -43,7 +43,6 @@ extern int BMObj_Convert(PyObject *, BitMapPtr *);
extern PyObject *WinObj_WhichWindow(WindowPtr); extern PyObject *WinObj_WhichWindow(WindowPtr);
#include <QuickDraw.h> #include <QuickDraw.h>
#include <Desk.h>
#define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */ #define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */
......
...@@ -55,7 +55,6 @@ PenState_ptr = StructInputBufferType('PenState') ...@@ -55,7 +55,6 @@ PenState_ptr = StructInputBufferType('PenState')
includestuff = includestuff + """ includestuff = includestuff + """
#include <%s>""" % MACHEADERFILE + """ #include <%s>""" % MACHEADERFILE + """
#include <Desk.h>
#define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */ #define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */
......
...@@ -5730,125 +5730,6 @@ static PyObject *Qt_RemoveMovieResource(_self, _args) ...@@ -5730,125 +5730,6 @@ static PyObject *Qt_RemoveMovieResource(_self, _args)
return _res; return _res;
} }
static PyObject *Qt_GetVideoMediaGraphicsMode(_self, _args)
PyObject *_self;
PyObject *_args;
{
PyObject *_res = NULL;
HandlerError _rv;
MediaHandler mh;
long graphicsMode;
RGBColor opColor;
if (!PyArg_ParseTuple(_args, "O&",
CmpInstObj_Convert, &mh))
return NULL;
_rv = GetVideoMediaGraphicsMode(mh,
&graphicsMode,
&opColor);
_res = Py_BuildValue("llO&",
_rv,
graphicsMode,
QdRGB_New, &opColor);
return _res;
}
static PyObject *Qt_SetVideoMediaGraphicsMode(_self, _args)
PyObject *_self;
PyObject *_args;
{
PyObject *_res = NULL;
HandlerError _rv;
MediaHandler mh;
long graphicsMode;
RGBColor opColor;
if (!PyArg_ParseTuple(_args, "O&lO&",
CmpInstObj_Convert, &mh,
&graphicsMode,
QdRGB_Convert, &opColor))
return NULL;
_rv = SetVideoMediaGraphicsMode(mh,
graphicsMode,
&opColor);
_res = Py_BuildValue("l",
_rv);
return _res;
}
static PyObject *Qt_GetSoundMediaBalance(_self, _args)
PyObject *_self;
PyObject *_args;
{
PyObject *_res = NULL;
HandlerError _rv;
MediaHandler mh;
short balance;
if (!PyArg_ParseTuple(_args, "O&",
CmpInstObj_Convert, &mh))
return NULL;
_rv = GetSoundMediaBalance(mh,
&balance);
_res = Py_BuildValue("lh",
_rv,
balance);
return _res;
}
static PyObject *Qt_SetSoundMediaBalance(_self, _args)
PyObject *_self;
PyObject *_args;
{
PyObject *_res = NULL;
HandlerError _rv;
MediaHandler mh;
short balance;
if (!PyArg_ParseTuple(_args, "O&h",
CmpInstObj_Convert, &mh,
&balance))
return NULL;
_rv = SetSoundMediaBalance(mh,
balance);
_res = Py_BuildValue("l",
_rv);
return _res;
}
static PyObject *Qt_FindNextText(_self, _args)
PyObject *_self;
PyObject *_args;
{
PyObject *_res = NULL;
ComponentResult _rv;
MediaHandler mh;
Ptr text;
long size;
short findFlags;
TimeValue startTime;
TimeValue foundTime;
TimeValue foundDuration;
long offset;
if (!PyArg_ParseTuple(_args, "O&slhl",
CmpInstObj_Convert, &mh,
&text,
&size,
&findFlags,
&startTime))
return NULL;
_rv = FindNextText(mh,
text,
size,
findFlags,
startTime,
&foundTime,
&foundDuration,
&offset);
_res = Py_BuildValue("llll",
_rv,
foundTime,
foundDuration,
offset);
return _res;
}
static PyObject *Qt_NewMovieFromScrap(_self, _args) static PyObject *Qt_NewMovieFromScrap(_self, _args)
PyObject *_self; PyObject *_self;
PyObject *_args; PyObject *_args;
...@@ -5963,16 +5844,6 @@ static PyMethodDef Qt_methods[] = { ...@@ -5963,16 +5844,6 @@ static PyMethodDef Qt_methods[] = {
"(short fRefNum, long fileOffset, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasChanged)"}, "(short fRefNum, long fileOffset, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasChanged)"},
{"RemoveMovieResource", (PyCFunction)Qt_RemoveMovieResource, 1, {"RemoveMovieResource", (PyCFunction)Qt_RemoveMovieResource, 1,
"(short resRefNum, short resId) -> None"}, "(short resRefNum, short resId) -> None"},
{"GetVideoMediaGraphicsMode", (PyCFunction)Qt_GetVideoMediaGraphicsMode, 1,
"(MediaHandler mh) -> (HandlerError _rv, long graphicsMode, RGBColor opColor)"},
{"SetVideoMediaGraphicsMode", (PyCFunction)Qt_SetVideoMediaGraphicsMode, 1,
"(MediaHandler mh, long graphicsMode, RGBColor opColor) -> (HandlerError _rv)"},
{"GetSoundMediaBalance", (PyCFunction)Qt_GetSoundMediaBalance, 1,
"(MediaHandler mh) -> (HandlerError _rv, short balance)"},
{"SetSoundMediaBalance", (PyCFunction)Qt_SetSoundMediaBalance, 1,
"(MediaHandler mh, short balance) -> (HandlerError _rv)"},
{"FindNextText", (PyCFunction)Qt_FindNextText, 1,
"(MediaHandler mh, Ptr text, long size, short findFlags, TimeValue startTime) -> (ComponentResult _rv, TimeValue foundTime, TimeValue foundDuration, long offset)"},
{"NewMovieFromScrap", (PyCFunction)Qt_NewMovieFromScrap, 1, {"NewMovieFromScrap", (PyCFunction)Qt_NewMovieFromScrap, 1,
"(long newMovieFlags) -> (Movie _rv)"}, "(long newMovieFlags) -> (Movie _rv)"},
{"NewTimeBase", (PyCFunction)Qt_NewTimeBase, 1, {"NewTimeBase", (PyCFunction)Qt_NewTimeBase, 1,
......
...@@ -56,6 +56,34 @@ class MyScanner(Scanner): ...@@ -56,6 +56,34 @@ class MyScanner(Scanner):
"AddTESample", "AddTESample",
"AddHiliteSample", "AddHiliteSample",
"HiliteTextSample", "HiliteTextSample",
# Missing in CW11 quicktime library
"SpriteMediaGetDisplayedSampleNumber",
"SpriteMediaGetIndImageDescription",
"SpriteMediaCountImages",
"SpriteMediaCountSprites",
"SpriteMediaHitTestSprites",
"SpriteMediaGetProperty",
"SpriteMediaSetProperty",
"TextMediaSetTextSampleData",
"TextMediaHiliteTextSample",
"TextMediaFindNextText",
"TextMediaAddHiliteSample",
"TextMediaAddTESample",
"TextMediaAddTextSample",
"VideoMediaGetStatistics",
"VideoMediaResetStatistics",
"EndFullScreen",
"NewMovieFromDataRef",
"MCPtInController",
"MCRemoveAMovie",
"MCRemoveAllMovies",
"MCInvalidate",
"InvalidateMovieRegion",
"GetMovieCompositeBufferFlags",
"SetMovieCompositeBufferFlags",
"SetTrackSoundLocalizationSettings",
"GetTrackSoundLocalizationSettings",
"GetMovieNaturalBoundsRect",
] ]
def makeblacklisttypes(self): def makeblacklisttypes(self):
...@@ -91,6 +119,9 @@ class MyScanner(Scanner): ...@@ -91,6 +119,9 @@ class MyScanner(Scanner):
"MCActionFilterWithRefConUPP", "MCActionFilterWithRefConUPP",
"GetMovieUPP", "GetMovieUPP",
"ModalFilterUPP", "ModalFilterUPP",
"QTAtomContainer",
"SpriteWorld",
"Sprite",
] ]
def makerepairinstructions(self): def makerepairinstructions(self):
...@@ -105,8 +136,9 @@ class MyScanner(Scanner): ...@@ -105,8 +136,9 @@ class MyScanner(Scanner):
([('short', 'resId', 'OutMode'), ('StringPtr', 'resName', 'InMode')], ([('short', 'resId', 'OutMode'), ('StringPtr', 'resName', 'InMode')],
[('dummyshortptr', 'resId', 'InMode'), ('dummyStringPtr', 'resName', 'InMode')]), [('dummyshortptr', 'resId', 'InMode'), ('dummyStringPtr', 'resName', 'InMode')]),
# MCDoAction # MCDoAction and more
([('void', 'params', 'OutMode')], [('mcactionparams', 'params', 'InMode')]), ([('void', '*', 'OutMode')], [('mcactionparams', '*', 'InMode')]),
] ]
if __name__ == "__main__": if __name__ == "__main__":
......
...@@ -69,6 +69,7 @@ PicHandle = OpaqueByValueType("PicHandle", "ResObj") ...@@ -69,6 +69,7 @@ PicHandle = OpaqueByValueType("PicHandle", "ResObj")
CTabHandle = OpaqueByValueType("CTabHandle", "ResObj") CTabHandle = OpaqueByValueType("CTabHandle", "ResObj")
PixMapHandle = OpaqueByValueType("PixMapHandle", "ResObj") PixMapHandle = OpaqueByValueType("PixMapHandle", "ResObj")
SampleDescriptionHandle = OpaqueByValueType("SampleDescriptionHandle", "ResObj") SampleDescriptionHandle = OpaqueByValueType("SampleDescriptionHandle", "ResObj")
ImageDescriptionHandle = OpaqueByValueType("ImageDescriptionHandle", "ResObj")
TEHandle = OpaqueByValueType("TEHandle", "ResObj") TEHandle = OpaqueByValueType("TEHandle", "ResObj")
# Silly Apple, passing an OStype by reference... # Silly Apple, passing an OStype by reference...
OSType_ptr = OpaqueType("OSType", "PyMac_BuildOSType", "PyMac_GetOSType") OSType_ptr = OpaqueType("OSType", "PyMac_BuildOSType", "PyMac_GetOSType")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment