revert between 56095 -> 55830 in arch
[AROS.git] / external / openurl / developer / C / include / defines / openurl.h
blob59f7806683ca4eb2399e3d76a01d23e744239917
1 /* Automatically generated header (sfdc 1.4)! Do not edit! */
3 #ifndef _INLINE_OPENURL_H
4 #define _INLINE_OPENURL_H
6 #ifndef _SFDC_VARARG_DEFINED
7 #define _SFDC_VARARG_DEFINED
8 #ifdef __HAVE_IPTR_ATTR__
9 typedef APTR _sfdc_vararg __attribute__((iptr));
10 #else
11 typedef ULONG _sfdc_vararg;
12 #endif /* __HAVE_IPTR_ATTR__ */
13 #endif /* _SFDC_VARARG_DEFINED */
15 #ifndef AROS_LIBCALL_H
16 #include <aros/libcall.h>
17 #endif /* !AROS_LIBCALL_H */
19 #ifndef OPENURL_BASE_NAME
20 #define OPENURL_BASE_NAME OpenURLBase
21 #endif /* !OPENURL_BASE_NAME */
23 #define URL_OpenA(___url, ___tags) \
24 AROS_LC2(ULONG, URL_OpenA, \
25 AROS_LCA(STRPTR, (___url), A0), \
26 AROS_LCA(struct TagItem *, (___tags), A1), \
27 struct Library *, OPENURL_BASE_NAME, 5, Openurl)
29 #ifndef NO_INLINE_STDARG
30 #define URL_Open(___url, ___last, ...) \
31 ({_sfdc_vararg _tags[] = { ___last, __VA_ARGS__ }; URL_OpenA((___url), (struct TagItem *) _tags); })
32 #endif /* !NO_INLINE_STDARG */
34 #define URL_OldGetPrefs() \
35 AROS_LC0(struct URL_Prefs *, URL_OldGetPrefs, \
36 struct Library *, OPENURL_BASE_NAME, 6, Openurl)
38 #define URL_OldFreePrefs(___up) \
39 AROS_LC1NR(void, URL_OldFreePrefs, \
40 AROS_LCA(struct URL_Prefs *, (___up), A0), \
41 struct Library *, OPENURL_BASE_NAME, 7, Openurl)
43 #define URL_OldSetPrefs(___up, ___permanent) \
44 AROS_LC2(ULONG, URL_OldSetPrefs, \
45 AROS_LCA(struct URL_Prefs *, (___up), A0), \
46 AROS_LCA(BOOL, (___permanent), D0), \
47 struct Library *, OPENURL_BASE_NAME, 8, Openurl)
49 #define URL_OldGetDefaultPrefs() \
50 AROS_LC0(struct URL_Prefs *, URL_OldGetDefaultPrefs, \
51 struct Library *, OPENURL_BASE_NAME, 9, Openurl)
53 #define URL_OldLaunchPrefsApp() \
54 AROS_LC0(ULONG, URL_OldLaunchPrefsApp, \
55 struct Library *, OPENURL_BASE_NAME, 10, Openurl)
57 #define URL_GetPrefsA(___tags) \
58 AROS_LC1(struct URL_Prefs *, URL_GetPrefsA, \
59 AROS_LCA(struct TagItem *, (___tags), A0), \
60 struct Library *, OPENURL_BASE_NAME, 12, Openurl)
62 #ifndef NO_INLINE_STDARG
63 #define URL_GetPrefs(___last, ...) \
64 ({_sfdc_vararg _tags[] = { ___last, __VA_ARGS__ }; URL_GetPrefsA((struct TagItem *) _tags); })
65 #endif /* !NO_INLINE_STDARG */
67 #define URL_FreePrefsA(___prefs, ___tags) \
68 AROS_LC2NR(void, URL_FreePrefsA, \
69 AROS_LCA(struct URL_Prefs *, (___prefs), A0), \
70 AROS_LCA(struct TagItem *, (___tags), A1), \
71 struct Library *, OPENURL_BASE_NAME, 13, Openurl)
73 #ifndef NO_INLINE_STDARG
74 #define URL_FreePrefs(___prefs, ___last, ...) \
75 ({_sfdc_vararg _tags[] = { ___last, __VA_ARGS__ }; URL_FreePrefsA((___prefs), (struct TagItem *) _tags); })
76 #endif /* !NO_INLINE_STDARG */
78 #define URL_SetPrefsA(___up, ___tags) \
79 AROS_LC2(ULONG, URL_SetPrefsA, \
80 AROS_LCA(struct URL_Prefs *, (___up), A0), \
81 AROS_LCA(struct TagItem *, (___tags), A1), \
82 struct Library *, OPENURL_BASE_NAME, 14, Openurl)
84 #ifndef NO_INLINE_STDARG
85 #define URL_SetPrefs(___up, ___last, ...) \
86 ({_sfdc_vararg _tags[] = { ___last, __VA_ARGS__ }; URL_SetPrefsA((___up), (struct TagItem *) _tags); })
87 #endif /* !NO_INLINE_STDARG */
89 #define URL_LaunchPrefsAppA(___tags) \
90 AROS_LC1(ULONG, URL_LaunchPrefsAppA, \
91 AROS_LCA(struct TagItem *, (___tags), A0), \
92 struct Library *, OPENURL_BASE_NAME, 15, Openurl)
94 #ifndef NO_INLINE_STDARG
95 #define URL_LaunchPrefsApp(___last, ...) \
96 ({_sfdc_vararg _tags[] = { ___last, __VA_ARGS__ }; URL_LaunchPrefsAppA((struct TagItem *) _tags); })
97 #endif /* !NO_INLINE_STDARG */
99 #define URL_GetAttr(___attr, ___storage) \
100 AROS_LC2(ULONG, URL_GetAttr, \
101 AROS_LCA(ULONG, (___attr), D0), \
102 AROS_LCA(ULONG *, (___storage), A0), \
103 struct Library *, OPENURL_BASE_NAME, 16, Openurl)
105 #endif /* !_INLINE_OPENURL_H */