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/
19 ***************************************************************************/
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
), ...)
37 res
= URL_OpenA(url
, VA_ARG(args
, struct TagItem
*));
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
;
84 res
= URL_GetPrefsA(VA_ARG(args
, struct TagItem
*));
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
), ...)
100 URL_FreePrefsA(up
, VA_ARG(args
, struct TagItem
*));
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
), ...)
115 res
= URL_SetPrefsA(p
, VA_ARG(args
, struct TagItem
*));
121 LIBSTUB(URL_LaunchPrefsAppA
, ULONG
, REG(a0
, struct TagItem
*attrs
))
123 return URL_LaunchPrefsAppA(attrs
);
126 LIBSTUBVA(URL_LaunchPrefsApp
, ULONG
, ...)
131 VA_START(args
, self
);
132 res
= URL_LaunchPrefsAppA(VA_ARG(args
, struct TagItem
*));
138 LIBSTUB(URL_GetAttr
, ULONG
, REG(d0
, ULONG attr
), REG(a0
, ULONG
*storage
))
140 return URL_GetAttr(attr
, storage
);