1 |
|
/* |
2 |
|
* thunks.h - Thunks to share data and code with MacOS |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2002 Christian Bauer and Marc Hellwig |
4 |
> |
* SheepShaver (C) 1997-2008 Christian Bauer and Marc Hellwig |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
32 |
|
NATIVE_VIDEO_INSTALL_ACCEL, |
33 |
|
NATIVE_VIDEO_VBL, |
34 |
|
NATIVE_VIDEO_DO_DRIVER_IO, |
35 |
+ |
NATIVE_ETHER_AO_GET_HWADDR, |
36 |
+ |
NATIVE_ETHER_AO_ADD_MULTI, |
37 |
+ |
NATIVE_ETHER_AO_DEL_MULTI, |
38 |
+ |
NATIVE_ETHER_AO_SEND_PACKET, |
39 |
|
NATIVE_ETHER_IRQ, |
40 |
|
NATIVE_ETHER_INIT, |
41 |
|
NATIVE_ETHER_TERM, |
57 |
|
NATIVE_R_GET_RESOURCE, |
58 |
|
NATIVE_MAKE_EXECUTABLE, |
59 |
|
NATIVE_CHECK_LOAD_INVOC, |
60 |
< |
NATIVE_SYNC_HOOK, |
61 |
< |
NATIVE_BITBLT_HOOK, |
62 |
< |
NATIVE_FILLRECT_HOOK, |
63 |
< |
NATIVE_BITBLT, |
64 |
< |
NATIVE_INVRECT, |
65 |
< |
NATIVE_FILLRECT, |
60 |
> |
NATIVE_NQD_SYNC_HOOK, |
61 |
> |
NATIVE_NQD_BITBLT_HOOK, |
62 |
> |
NATIVE_NQD_FILLRECT_HOOK, |
63 |
> |
NATIVE_NQD_UNKNOWN_HOOK, |
64 |
> |
NATIVE_NQD_BITBLT, |
65 |
> |
NATIVE_NQD_INVRECT, |
66 |
> |
NATIVE_NQD_FILLRECT, |
67 |
> |
NATIVE_NAMED_CHECK_LOAD_INVOC, |
68 |
> |
NATIVE_GET_NAMED_RESOURCE, |
69 |
> |
NATIVE_GET_1_NAMED_RESOURCE, |
70 |
|
NATIVE_OP_MAX |
71 |
|
}; |
72 |
|
|
174 |
|
return mac_proc; |
175 |
|
} |
176 |
|
|
177 |
+ |
#define BUILD_SHEEPSHAVER_PROCEDURE(PROC) \ |
178 |
+ |
static uint32 PROC = 0; \ |
179 |
+ |
if (PROC == 0) \ |
180 |
+ |
PROC = SheepProc(PROC##_template, sizeof(PROC##_template)) |
181 |
+ |
|
182 |
|
class SheepVar |
183 |
|
{ |
184 |
|
uint32 m_base; |