Attempt to fix nightly build failure on 68k.
[AROS.git] / external / openurl / library / stubs-amigaos4.c
blob224cdd6386616891174af822441026923d9041da
1 /***************************************************************************
3 openurl.library - universal URL display and browser launcher library
4 Copyright (C) 1998-2005 by Troels Walsted Hansen, et al.
5 Copyright (C) 2005-2009 by openurl.library Open Source Team
7 This library is free software; it has been placed in the public domain
8 and you can freely redistribute it and/or modify it. Please note, however,
9 that some components may be under the LGPL or GPL license.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 openurl.library project: http://sourceforge.net/projects/openurllib/
17 $Id$
19 ***************************************************************************/
21 #include "lib.h"
23 #include "SDI_lib.h"
24 #include "SDI_stdarg.h"
26 LIBSTUB(URL_OpenA, ULONG, REG(a0, STRPTR url), REG(a1, struct TagItem *attrs))
28 return URL_OpenA(url, attrs);
31 LIBSTUBVA(URL_Open, ULONG, REG(a0, STRPTR url), ...)
33 ULONG res;
34 VA_LIST args;
36 VA_START(args, url);
37 res = URL_OpenA(url, VA_ARG(args, struct TagItem *));
38 VA_END(args);
40 return res;
43 LIBSTUB(URL_OldGetPrefs, struct URL_Prefs *)
45 return URL_OldGetPrefs();
48 LIBSTUB(URL_OldFreePrefs, void, REG(a0, struct URL_Prefs *up))
50 URL_OldFreePrefs( up );
53 LIBSTUB(URL_OldSetPrefs, ULONG, REG(a0, struct URL_Prefs *p), REG(d0, ULONG permanent))
55 return URL_OldSetPrefs(p, permanent);
58 LIBSTUB(URL_OldGetDefaultPrefs, struct URL_Prefs *)
60 return URL_OldGetDefaultPrefs();
63 LIBSTUB(URL_OldLaunchPrefsApp, ULONG)
65 return URL_OldLaunchPrefsApp();
68 LIBSTUB(dispatch, LONG, REG(a0, struct RexxMsg *msg), REG(a1, STRPTR *resPtr))
70 return dispatch(msg, resPtr);
73 LIBSTUB(URL_GetPrefsA, struct URL_Prefs *, REG(a0, struct TagItem *attrs))
75 return URL_GetPrefsA(attrs);
78 LIBSTUBVA(URL_GetPrefs, struct URL_Prefs *, ...)
80 struct URL_Prefs *res;
81 VA_LIST args;
83 VA_START(args, self);
84 res = URL_GetPrefsA(VA_ARG(args, struct TagItem *));
85 VA_END(args);
87 return res;
90 LIBSTUB(URL_FreePrefsA, void, REG(a0, struct URL_Prefs *up), REG(a1, struct TagItem *attrs))
92 URL_FreePrefsA(up, attrs);
95 LIBSTUBVA(URL_FreePrefs, void, REG(a0, struct URL_Prefs *up), ...)
97 VA_LIST args;
99 VA_START(args, up);
100 URL_FreePrefsA(up, VA_ARG(args, struct TagItem *));
101 VA_END(args);
104 LIBSTUB(URL_SetPrefsA, ULONG, REG(a0, struct URL_Prefs *p), REG(a1, struct TagItem *attrs))
106 return URL_SetPrefsA(p, attrs);
109 LIBSTUBVA(URL_SetPrefs, ULONG, REG(a0, struct URL_Prefs *p), ...)
111 ULONG res;
112 VA_LIST args;
114 VA_START(args, p);
115 res = URL_SetPrefsA(p, VA_ARG(args, struct TagItem *));
116 VA_END(args);
118 return res;
121 LIBSTUB(URL_LaunchPrefsAppA, ULONG, REG(a0, struct TagItem *attrs))
123 return URL_LaunchPrefsAppA(attrs);
126 LIBSTUBVA(URL_LaunchPrefsApp, ULONG, ...)
128 ULONG res;
129 VA_LIST args;
131 VA_START(args, self);
132 res = URL_LaunchPrefsAppA(VA_ARG(args, struct TagItem *));
133 VA_END(args);
135 return res;
138 LIBSTUB(URL_GetAttr, ULONG, REG(d0, ULONG attr), REG(a0, ULONG *storage))
140 return URL_GetAttr(attr, storage);