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
10 #ifndef __NOGLOBALIFACE__
11 #define __NOGLOBALIFACE__
14 #include <exec/interfaces.h>
15 #include <exec/libraries.h>
16 #include <exec/emulation.h>
17 #include <interfaces/exec.h>
18 #include <interfaces/scalosplugin.h>
19 #include <proto/scalosplugin.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
;
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
;
44 STATIC CONST
struct EmuTrap stub_Close
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_ClosePPC
};
46 STATIC APTR
stub_ExpungePPC(ULONG
*regarray
__attribute__((unused
)))
50 STATIC CONST
struct EmuTrap stub_Expunge
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_ExpungePPC
};
52 STATIC ULONG
stub_ReservedPPC(ULONG
*regarray
__attribute__((unused
)))
56 STATIC CONST
struct EmuTrap stub_Reserved
= { TRAPINST
, TRAPTYPE
, stub_ReservedPPC
};
58 static const struct ScaClassInfo
* stub_SCAGetClassInfoPPC(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 ScalosPluginIFace
*Self
= (struct ScalosPluginIFace
*) ExtLib
->MainIFace
;
64 return Self
->SCAGetClassInfo(
67 STATIC CONST
struct EmuTrap stub_SCAGetClassInfo
= { TRAPINST
, TRAPTYPE
, (uint32 (*)(uint32
*))stub_SCAGetClassInfoPPC
};
69 CONST CONST_APTR VecTable68K
[] =
75 &stub_SCAGetClassInfo
,