6 #define KS13WRAPPER_DEBUG 0
8 #include <dos/dosextens.h>
9 #include <exec/ports.h>
10 #include <exec/execbase.h>
11 #include <intuition/intuition.h>
16 LONG
wrapper_stackswap(LONG (*func
)(struct ExecBase
*), struct ExecBase
*);
17 void FixStartupPacket(struct DosPacket
*pkt
, struct globaldata
*g
);
20 #define MatchPatternNoCase(pat, str) W_MatchPatternNoCase(pat, str, g)
21 #define MakeDosEntry(name, type) W_MakeDosEntry(name, type, g)
22 #define RemDosEntry(dlist) W_RemDosEntry(dlist, g)
23 #define FreeDosEntry(dlist) W_FreeDosEntry(dlist, g)
24 #define AddDosEntry(dlist) W_AddDosEntry(dlist, g)
25 #define ErrorReport(code, type, arg1, device) W_ErrorReport(code, type, arg1, device, g)
27 BOOL
W_MatchPatternNoCase(CONST_STRPTR pat
, CONST_STRPTR str
, struct globaldata
*g
);
28 STRPTR
FilePart(CONST_STRPTR path
);
29 STRPTR
PathPart(CONST_STRPTR path
);
30 struct DosList
*W_MakeDosEntry(CONST_STRPTR name
, LONG type
, struct globaldata
*g
);
31 LONG
W_RemDosEntry(struct DosList
*dlist
, struct globaldata
*g
);
32 void W_FreeDosEntry(struct DosList
*dlist
, struct globaldata
*g
);
33 LONG
W_AddDosEntry(struct DosList
*list
, struct globaldata
*g
);
34 BOOL
W_ErrorReport(LONG code
, LONG type
, IPTR arg1
, struct MsgPort
*device
, struct globaldata
*g
);
37 #define AllocVec(size, flags) W_AllocVec(size, flags, g)
38 #define FreeVec(mem) W_FreeVec(mem, g)
39 #define CreateIORequest(ioReplyPort, size) W_CreateIORequest(ioReplyPort, size, g)
40 #define DeleteIORequest(iorequest) W_DeleteIORequest(iorequest, g)
41 #define CreateMsgPort() W_CreateMsgPort(g)
42 #define DeleteMsgPort(port) W_DeleteMsgPort(port, g)
44 APTR
W_AllocVec(ULONG size
, ULONG flags
, struct globaldata
*g
);
45 void W_FreeVec(APTR mem
, struct globaldata
*g
);
46 APTR
W_CreateIORequest(struct MsgPort
*ioReplyPort
, ULONG size
, struct globaldata
*g
);
47 void W_DeleteIORequest(APTR iorequest
, struct globaldata
*g
);
48 struct MsgPort
*W_CreateMsgPort(struct globaldata
*g
);
49 void W_DeleteMsgPort(struct MsgPort
*port
, struct globaldata
*g
);
52 IPTR
CallHookPkt(struct Hook
*hook
, APTR object
, APTR paramPacket
);
55 #define EasyRequestArgs(window, easyStruct, IDCMP_ptr, argList) W_EasyRequestArgs(window, easyStruct, IDCMP_ptr, argList, g)
56 #define BuildEasyRequestArgs(RefWindow, easyStruct, IDCMP, Args) W_BuildEasyRequestArgs(RefWindow, easyStruct, IDCMP, Args, g)
57 #define SysReqHandler(window, IDCMPFlagsPtr, WaitInput) W_SysReqHandler(window, IDCMPFlagsPtr, WaitInput, g)
59 LONG
W_EasyRequestArgs(struct Window
*window
, struct EasyStruct
*easyStruct
, ULONG
*IDCMP_ptr
, APTR argList
, struct globaldata
*g
);
60 struct Window
*W_BuildEasyRequestArgs(struct Window
*RefWindow
, struct EasyStruct
*easyStruct
, ULONG IDCMP
, APTR Args
, struct globaldata
*g
);
61 LONG
W_SysReqHandler(struct Window
*window
, ULONG
*IDCMPFlagsPtr
, BOOL WaitInput
, struct globaldata
*g
);
63 void DebugPutStr(register const char *buff
);
64 void DebugPutDec(const char *what
, ULONG val
);
65 void DebugPutHex(const char *what
, IPTR val
);
66 void DebugPutHexVal(ULONG val
);