make sure "S" is generated.
[AROS-Contrib.git] / scalos / main / scalos-aos4-68kstubs.c
blob399761dd3fea341af2abebd9c346977130fc1f20
1 /*
2 ** This file was automatically generated by fdtrans 52.1.
3 ** Do not edit it by hand. Instead, edit the sfd file
4 ** that was used to generate this file
5 */
7 #ifdef __USE_INLINE__
8 #undef __USE_INLINE__
9 #endif
10 #ifndef __NOGLOBALIFACE__
11 #define __NOGLOBALIFACE__
12 #endif
14 #include <exec/interfaces.h>
15 #include <exec/libraries.h>
16 #include <exec/emulation.h>
17 #include <interfaces/exec.h>
18 #include <interfaces/scalos.h>
19 #include <proto/scalos.h>
22 static inline int8 convert_int8 (uint32 x) { return x; }
23 static inline int16 convert_int16(uint32 x) { return x; }
26 STATIC struct Library * stub_OpenPPC(ULONG *regarray)
28 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
29 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((ULONG)Base + Base->lib_PosSize);
30 struct LibraryManagerInterface *Self = (struct LibraryManagerInterface *) ExtLib->ILibrary;
32 return Self->Open(0);
34 STATIC CONST struct EmuTrap stub_Open = { TRAPINST, TRAPTYPE, (ULONG (*)(ULONG *))stub_OpenPPC };
36 STATIC APTR stub_ClosePPC(ULONG *regarray)
38 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
39 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((ULONG)Base + Base->lib_PosSize);
40 struct LibraryManagerInterface *Self = (struct LibraryManagerInterface *) ExtLib->ILibrary;
42 return Self->Close();
44 STATIC CONST struct EmuTrap stub_Close = { TRAPINST, TRAPTYPE, (ULONG (*)(ULONG *))stub_ClosePPC };
46 STATIC APTR stub_ExpungePPC(ULONG *regarray __attribute__((unused)))
48 return NULL;
50 STATIC CONST struct EmuTrap stub_Expunge = { TRAPINST, TRAPTYPE, (ULONG (*)(ULONG *))stub_ExpungePPC };
52 STATIC ULONG stub_ReservedPPC(ULONG *regarray __attribute__((unused)))
54 return 0UL;
56 STATIC CONST struct EmuTrap stub_Reserved = { TRAPINST, TRAPTYPE, stub_ReservedPPC };
58 static BOOL stub_SCA_WBStartPPC(uint32 *regarray)
60 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
61 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
62 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
64 return Self->SCA_WBStart(
65 (APTR)regarray[8],
66 (CONST struct TagItem *)regarray[9],
67 (ULONG)regarray[0]
70 STATIC CONST struct EmuTrap stub_SCA_WBStart = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_WBStartPPC };
72 static VOID stub_SCA_SortNodesPPC(uint32 *regarray)
74 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
75 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
76 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
78 Self->SCA_SortNodes(
79 (struct ScalosNodeList *)regarray[8],
80 (struct Hook *)regarray[9],
81 (ULONG)regarray[0]
84 STATIC CONST struct EmuTrap stub_SCA_SortNodes = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_SortNodesPPC };
86 static struct AppObject * stub_SCA_NewAddAppIconPPC(uint32 *regarray)
88 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
89 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
90 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
92 return Self->SCA_NewAddAppIcon(
93 (ULONG)regarray[0],
94 (ULONG)regarray[1],
95 (Object *)regarray[8],
96 (struct MsgPort *)regarray[9],
97 (CONST struct TagItem *)regarray[10]
100 STATIC CONST struct EmuTrap stub_SCA_NewAddAppIcon = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_NewAddAppIconPPC };
102 static BOOL stub_SCA_RemoveAppObjectPPC(uint32 *regarray)
104 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
105 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
106 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
108 return Self->SCA_RemoveAppObject(
109 (struct AppObject *)regarray[8]
112 STATIC CONST struct EmuTrap stub_SCA_RemoveAppObject = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_RemoveAppObjectPPC };
114 static struct AppObject * stub_SCA_NewAddAppWindowPPC(uint32 *regarray)
116 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
117 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
118 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
120 return Self->SCA_NewAddAppWindow(
121 (ULONG)regarray[0],
122 (ULONG)regarray[1],
123 (struct Window *)regarray[8],
124 (struct MsgPort *)regarray[9],
125 (CONST struct TagItem *)regarray[10]
128 STATIC CONST struct EmuTrap stub_SCA_NewAddAppWindow = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_NewAddAppWindowPPC };
130 static struct AppObject * stub_SCA_NewAddAppMenuItemPPC(uint32 *regarray)
132 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
133 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
134 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
136 return Self->SCA_NewAddAppMenuItem(
137 (ULONG)regarray[0],
138 (ULONG)regarray[1],
139 (CONST_STRPTR)regarray[8],
140 (struct MsgPort *)regarray[9],
141 (CONST struct TagItem *)regarray[10]
144 STATIC CONST struct EmuTrap stub_SCA_NewAddAppMenuItem = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_NewAddAppMenuItemPPC };
146 static struct MinNode * stub_SCA_AllocStdNodePPC(uint32 *regarray)
148 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
149 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
150 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
152 return Self->SCA_AllocStdNode(
153 (struct ScalosNodeList *)regarray[8],
154 (ULONG)regarray[0]
157 STATIC CONST struct EmuTrap stub_SCA_AllocStdNode = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_AllocStdNodePPC };
159 static struct MinNode * stub_SCA_AllocNodePPC(uint32 *regarray)
161 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
162 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
163 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
165 return Self->SCA_AllocNode(
166 (struct ScalosNodeList *)regarray[8],
167 (ULONG)regarray[0]
170 STATIC CONST struct EmuTrap stub_SCA_AllocNode = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_AllocNodePPC };
172 static VOID stub_SCA_FreeNodePPC(uint32 *regarray)
174 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
175 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
176 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
178 Self->SCA_FreeNode(
179 (struct ScalosNodeList *)regarray[8],
180 (struct MinNode *)regarray[9]
183 STATIC CONST struct EmuTrap stub_SCA_FreeNode = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_FreeNodePPC };
185 static VOID stub_SCA_FreeAllNodesPPC(uint32 *regarray)
187 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
188 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
189 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
191 Self->SCA_FreeAllNodes(
192 (struct ScalosNodeList *)regarray[8]
195 STATIC CONST struct EmuTrap stub_SCA_FreeAllNodes = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_FreeAllNodesPPC };
197 static VOID stub_SCA_MoveNodePPC(uint32 *regarray)
199 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
200 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
201 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
203 Self->SCA_MoveNode(
204 (struct ScalosNodeList *)regarray[8],
205 (struct ScalosNodeList *)regarray[9],
206 (struct MinNode *)regarray[0]
209 STATIC CONST struct EmuTrap stub_SCA_MoveNode = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_MoveNodePPC };
211 static VOID stub_SCA_SwapNodesPPC(uint32 *regarray)
213 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
214 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
215 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
217 Self->SCA_SwapNodes(
218 (struct MinNode *)regarray[8],
219 (struct MinNode *)regarray[9],
220 (struct ScalosNodeList *)regarray[10]
223 STATIC CONST struct EmuTrap stub_SCA_SwapNodes = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_SwapNodesPPC };
225 static BOOL stub_SCA_OpenIconWindowPPC(uint32 *regarray)
227 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
228 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
229 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
231 return Self->SCA_OpenIconWindow(
232 (CONST struct TagItem *)regarray[8]
235 STATIC CONST struct EmuTrap stub_SCA_OpenIconWindow = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_OpenIconWindowPPC };
237 static struct ScaWindowList * stub_SCA_LockWindowListPPC(uint32 *regarray)
239 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
240 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
241 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
243 return Self->SCA_LockWindowList(
244 (LONG)regarray[0]
247 STATIC CONST struct EmuTrap stub_SCA_LockWindowList = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_LockWindowListPPC };
249 static VOID stub_SCA_UnLockWindowListPPC(uint32 *regarray)
251 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
252 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
253 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
255 Self->SCA_UnLockWindowList(
258 STATIC CONST struct EmuTrap stub_SCA_UnLockWindowList = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_UnLockWindowListPPC };
260 static struct ScalosMessage * stub_SCA_AllocMessagePPC(uint32 *regarray)
262 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
263 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
264 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
266 return Self->SCA_AllocMessage(
267 (ULONG)regarray[0],
268 (UWORD)(regarray[1] & 0xffff)
271 STATIC CONST struct EmuTrap stub_SCA_AllocMessage = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_AllocMessagePPC };
273 static VOID stub_SCA_FreeMessagePPC(uint32 *regarray)
275 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
276 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
277 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
279 Self->SCA_FreeMessage(
280 (struct ScalosMessage *)regarray[9]
283 STATIC CONST struct EmuTrap stub_SCA_FreeMessage = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_FreeMessagePPC };
285 static struct DragHandle * stub_SCA_InitDragPPC(uint32 *regarray)
287 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
288 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
289 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
291 return Self->SCA_InitDrag(
292 (struct Screen *)regarray[8]
295 STATIC CONST struct EmuTrap stub_SCA_InitDrag = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_InitDragPPC };
297 static VOID stub_SCA_EndDragPPC(uint32 *regarray)
299 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
300 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
301 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
303 Self->SCA_EndDrag(
304 (struct DragHandle *)regarray[8]
307 STATIC CONST struct EmuTrap stub_SCA_EndDrag = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_EndDragPPC };
309 static BOOL stub_SCA_AddBobPPC(uint32 *regarray)
311 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
312 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
313 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
315 return Self->SCA_AddBob(
316 (struct DragHandle *)regarray[8],
317 (struct BitMap *)regarray[9],
318 (APTR)regarray[10],
319 (ULONG)regarray[0],
320 (ULONG)regarray[1],
321 (LONG)regarray[2],
322 (LONG)regarray[3]
325 STATIC CONST struct EmuTrap stub_SCA_AddBob = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_AddBobPPC };
327 static VOID stub_SCA_DrawDragPPC(uint32 *regarray)
329 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
330 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
331 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
333 Self->SCA_DrawDrag(
334 (struct DragHandle *)regarray[8],
335 (LONG)regarray[0],
336 (LONG)regarray[1],
337 (ULONG)regarray[2]
340 STATIC CONST struct EmuTrap stub_SCA_DrawDrag = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_DrawDragPPC };
342 static VOID stub_SCA_UpdateIconPPC(uint32 *regarray)
344 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
345 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
346 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
348 Self->SCA_UpdateIcon(
349 (UBYTE)(regarray[0] & 0xff),
350 (APTR)regarray[8],
351 (ULONG)regarray[1]
354 STATIC CONST struct EmuTrap stub_SCA_UpdateIcon = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_UpdateIconPPC };
356 static ULONG stub_SCA_MakeWBArgsPPC(uint32 *regarray)
358 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
359 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
360 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
362 return Self->SCA_MakeWBArgs(
363 (struct WBArg *)regarray[8],
364 (struct ScaIconNode *)regarray[9],
365 (ULONG)regarray[0]
368 STATIC CONST struct EmuTrap stub_SCA_MakeWBArgs = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_MakeWBArgsPPC };
370 static VOID stub_SCA_FreeWBArgsPPC(uint32 *regarray)
372 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
373 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
374 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
376 Self->SCA_FreeWBArgs(
377 (struct WBArg *)regarray[8],
378 (ULONG)regarray[0],
379 (ULONG)regarray[1]
382 STATIC CONST struct EmuTrap stub_SCA_FreeWBArgs = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_FreeWBArgsPPC };
384 static VOID stub_SCA_RemapBitmapPPC(uint32 *regarray)
386 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
387 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
388 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
390 Self->SCA_RemapBitmap(
391 (struct BitMap *)regarray[8],
392 (struct BitMap *)regarray[9],
393 (APTR)regarray[10]
396 STATIC CONST struct EmuTrap stub_SCA_RemapBitmap = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_RemapBitmapPPC };
398 static VOID stub_SCA_ScreenTitleMsgPPC(uint32 *regarray)
400 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
401 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
402 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
404 Self->SCA_ScreenTitleMsg(
405 (CONST_STRPTR)regarray[8],
406 (APTR)regarray[9]
409 STATIC CONST struct EmuTrap stub_SCA_ScreenTitleMsg = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_ScreenTitleMsgPPC };
411 static struct ScalosClass * stub_SCA_MakeScalosClassPPC(uint32 *regarray)
413 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
414 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
415 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
417 return Self->SCA_MakeScalosClass(
418 (CONST_STRPTR)regarray[8],
419 (CONST_STRPTR)regarray[9],
420 (UWORD)(regarray[0] & 0xffff),
421 (APTR)regarray[10]
424 STATIC CONST struct EmuTrap stub_SCA_MakeScalosClass = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_MakeScalosClassPPC };
426 static BOOL stub_SCA_FreeScalosClassPPC(uint32 *regarray)
428 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
429 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
430 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
432 return Self->SCA_FreeScalosClass(
433 (struct ScalosClass *)regarray[8]
436 STATIC CONST struct EmuTrap stub_SCA_FreeScalosClass = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_FreeScalosClassPPC };
438 static Object * stub_SCA_NewScalosObjectPPC(uint32 *regarray)
440 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
441 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
442 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
444 return Self->SCA_NewScalosObject(
445 (CONST_STRPTR)regarray[8],
446 (CONST struct TagItem *)regarray[9]
449 STATIC CONST struct EmuTrap stub_SCA_NewScalosObject = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_NewScalosObjectPPC };
451 static VOID stub_SCA_DisposeScalosObjectPPC(uint32 *regarray)
453 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
454 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
455 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
457 Self->SCA_DisposeScalosObject(
458 (Object *)regarray[8]
461 STATIC CONST struct EmuTrap stub_SCA_DisposeScalosObject = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_SCA_DisposeScalosObjectPPC };
463 static ULONG stub_SCA_ScalosControlAPPC(uint32 *regarray)
465 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
466 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
467 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
469 return Self->SCA_ScalosControlA(
470 (CONST_STRPTR)regarray[8],
471 (CONST struct TagItem *)regarray[9]
474 STATIC CONST struct EmuTrap stub_SCA_ScalosControlA = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_ScalosControlAPPC };
476 static Object * stub_SCA_GetDefIconObjectPPC(uint32 *regarray)
478 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
479 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
480 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
482 return Self->SCA_GetDefIconObject(
483 (BPTR)regarray[8],
484 (CONST_STRPTR)regarray[9]
487 STATIC CONST struct EmuTrap stub_SCA_GetDefIconObject = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_GetDefIconObjectPPC };
489 static struct ScaWindowStruct * stub_SCA_OpenDrawerByNamePPC(uint32 *regarray)
491 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
492 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
493 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
495 return Self->SCA_OpenDrawerByName(
496 (CONST_STRPTR)regarray[8],
497 (struct TagItem *)regarray[9]
500 STATIC CONST struct EmuTrap stub_SCA_OpenDrawerByName = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_OpenDrawerByNamePPC };
502 static ULONG stub_SCA_CountWBArgsPPC(uint32 *regarray)
504 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
505 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
506 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
508 return Self->SCA_CountWBArgs(
509 (struct ScaIconNode *)regarray[8]
512 STATIC CONST struct EmuTrap stub_SCA_CountWBArgs = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_CountWBArgsPPC };
514 static Object * stub_SCA_GetDefIconObjectAPPC(uint32 *regarray)
516 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
517 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
518 struct ScalosIFace *Self = (struct ScalosIFace *) ExtLib->MainIFace;
520 return Self->SCA_GetDefIconObjectA(
521 (BPTR)regarray[8],
522 (CONST_STRPTR)regarray[9],
523 (struct TagItem *)regarray[10]
526 STATIC CONST struct EmuTrap stub_SCA_GetDefIconObjectA = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCA_GetDefIconObjectAPPC };
528 CONST CONST_APTR VecTable68K[] =
530 &stub_Open,
531 &stub_Close,
532 &stub_Expunge,
533 &stub_Reserved,
534 &stub_SCA_WBStart,
535 &stub_SCA_SortNodes,
536 &stub_SCA_NewAddAppIcon,
537 &stub_SCA_RemoveAppObject,
538 &stub_SCA_NewAddAppWindow,
539 &stub_SCA_NewAddAppMenuItem,
540 &stub_SCA_AllocStdNode,
541 &stub_SCA_AllocNode,
542 &stub_SCA_FreeNode,
543 &stub_SCA_FreeAllNodes,
544 &stub_SCA_MoveNode,
545 &stub_SCA_SwapNodes,
546 &stub_SCA_OpenIconWindow,
547 &stub_SCA_LockWindowList,
548 &stub_SCA_UnLockWindowList,
549 &stub_SCA_AllocMessage,
550 &stub_SCA_FreeMessage,
551 &stub_SCA_InitDrag,
552 &stub_SCA_EndDrag,
553 &stub_SCA_AddBob,
554 &stub_SCA_DrawDrag,
555 &stub_SCA_UpdateIcon,
556 &stub_SCA_MakeWBArgs,
557 &stub_SCA_FreeWBArgs,
558 &stub_SCA_RemapBitmap,
559 &stub_SCA_ScreenTitleMsg,
560 &stub_SCA_MakeScalosClass,
561 &stub_SCA_FreeScalosClass,
562 &stub_SCA_NewScalosObject,
563 &stub_SCA_DisposeScalosObject,
564 &stub_SCA_ScalosControlA,
565 &stub_SCA_GetDefIconObject,
566 &stub_SCA_OpenDrawerByName,
567 &stub_SCA_CountWBArgs,
568 &stub_SCA_GetDefIconObjectA,
569 (CONST_APTR)-1