more rendering corrections
[AROS.git] / workbench / libs / openurl / include / openurl_68k.c
blob13d8acd9ace3d46e04aaeb79678ac014babbfe64
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/openurl.h>
19 #include <proto/openurl.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(uint32 *regarray)
28 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
29 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)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, (uint32 (*)(uint32 *))stub_OpenPPC };
36 STATIC APTR stub_ClosePPC(uint32 *regarray)
38 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
39 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)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, (uint32 (*)(uint32 *))stub_ClosePPC };
46 STATIC APTR stub_ExpungePPC(uint32 *regarray UNUSED)
48 return NULL;
50 STATIC CONST struct EmuTrap stub_Expunge = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_ExpungePPC };
52 STATIC uint32 stub_ReservedPPC(uint32 *regarray UNUSED)
54 return 0;
56 STATIC CONST struct EmuTrap stub_Reserved = { TRAPINST, TRAPTYPE, stub_ReservedPPC };
58 static ULONG stub_URL_OpenAPPC(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 OpenURLIFace *Self = (struct OpenURLIFace *) ExtLib->MainIFace;
64 return Self->URL_OpenA(
65 (STRPTR)regarray[8],
66 (struct TagItem *)regarray[9]
69 STATIC CONST struct EmuTrap stub_URL_OpenA = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_URL_OpenAPPC };
71 static struct URL_Prefs * stub_URL_OldGetPrefsPPC(uint32 *regarray)
73 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
74 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
75 struct OpenURLIFace *Self = (struct OpenURLIFace *) ExtLib->MainIFace;
77 return Self->URL_OldGetPrefs(
80 STATIC CONST struct EmuTrap stub_URL_OldGetPrefs = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_URL_OldGetPrefsPPC };
82 static void stub_URL_OldFreePrefsPPC(uint32 *regarray)
84 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
85 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
86 struct OpenURLIFace *Self = (struct OpenURLIFace *) ExtLib->MainIFace;
88 Self->URL_OldFreePrefs(
89 (struct URL_Prefs *)regarray[8]
92 STATIC CONST struct EmuTrap stub_URL_OldFreePrefs = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_URL_OldFreePrefsPPC };
94 static ULONG stub_URL_OldSetPrefsPPC(uint32 *regarray)
96 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
97 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
98 struct OpenURLIFace *Self = (struct OpenURLIFace *) ExtLib->MainIFace;
100 return Self->URL_OldSetPrefs(
101 (struct URL_Prefs *)regarray[8],
102 (BOOL)convert_int16(regarray[0])
105 STATIC CONST struct EmuTrap stub_URL_OldSetPrefs = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_URL_OldSetPrefsPPC };
107 static struct URL_Prefs * stub_URL_OldGetDefaultPrefsPPC(uint32 *regarray)
109 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
110 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
111 struct OpenURLIFace *Self = (struct OpenURLIFace *) ExtLib->MainIFace;
113 return Self->URL_OldGetDefaultPrefs(
116 STATIC CONST struct EmuTrap stub_URL_OldGetDefaultPrefs = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_URL_OldGetDefaultPrefsPPC };
118 static ULONG stub_URL_OldLaunchPrefsAppPPC(uint32 *regarray)
120 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
121 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
122 struct OpenURLIFace *Self = (struct OpenURLIFace *) ExtLib->MainIFace;
124 return Self->URL_OldLaunchPrefsApp(
127 STATIC CONST struct EmuTrap stub_URL_OldLaunchPrefsApp = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_URL_OldLaunchPrefsAppPPC };
129 static struct URL_Prefs * stub_URL_GetPrefsAPPC(uint32 *regarray)
131 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
132 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
133 struct OpenURLIFace *Self = (struct OpenURLIFace *) ExtLib->MainIFace;
135 return Self->URL_GetPrefsA(
136 (struct TagItem *)regarray[8]
139 STATIC CONST struct EmuTrap stub_URL_GetPrefsA = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_URL_GetPrefsAPPC };
141 static void stub_URL_FreePrefsAPPC(uint32 *regarray)
143 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
144 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
145 struct OpenURLIFace *Self = (struct OpenURLIFace *) ExtLib->MainIFace;
147 Self->URL_FreePrefsA(
148 (struct URL_Prefs *)regarray[8],
149 (struct TagItem *)regarray[9]
152 STATIC CONST struct EmuTrap stub_URL_FreePrefsA = { TRAPINST, TRAPTYPENR, (uint32 (*)(uint32 *))stub_URL_FreePrefsAPPC };
154 static ULONG stub_URL_SetPrefsAPPC(uint32 *regarray)
156 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
157 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
158 struct OpenURLIFace *Self = (struct OpenURLIFace *) ExtLib->MainIFace;
160 return Self->URL_SetPrefsA(
161 (struct URL_Prefs *)regarray[8],
162 (struct TagItem *)regarray[9]
165 STATIC CONST struct EmuTrap stub_URL_SetPrefsA = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_URL_SetPrefsAPPC };
167 static ULONG stub_URL_LaunchPrefsAppAPPC(uint32 *regarray)
169 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
170 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
171 struct OpenURLIFace *Self = (struct OpenURLIFace *) ExtLib->MainIFace;
173 return Self->URL_LaunchPrefsAppA(
174 (struct TagItem *)regarray[8]
177 STATIC CONST struct EmuTrap stub_URL_LaunchPrefsAppA = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_URL_LaunchPrefsAppAPPC };
179 static ULONG stub_URL_GetAttrPPC(uint32 *regarray)
181 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
182 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
183 struct OpenURLIFace *Self = (struct OpenURLIFace *) ExtLib->MainIFace;
185 return Self->URL_GetAttr(
186 (ULONG)regarray[0],
187 (ULONG *)regarray[8]
190 STATIC CONST struct EmuTrap stub_URL_GetAttr = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_URL_GetAttrPPC };
192 CONST CONST_APTR VecTable68K[] =
194 &stub_Open,
195 &stub_Close,
196 &stub_Expunge,
197 &stub_Reserved,
198 &stub_URL_OpenA,
199 &stub_URL_OldGetPrefs,
200 &stub_URL_OldFreePrefs,
201 &stub_URL_OldSetPrefs,
202 &stub_URL_OldGetDefaultPrefs,
203 &stub_URL_OldLaunchPrefsApp,
204 &stub_Reserved,
205 &stub_URL_GetPrefsA,
206 &stub_URL_FreePrefsA,
207 &stub_URL_SetPrefsA,
208 &stub_URL_LaunchPrefsAppA,
209 &stub_URL_GetAttr,
210 (CONST_APTR)-1