#ifndef DEFINES_OPENURL_PROTOS_H
#define DEFINES_OPENURL_PROTOS_H

/*
    *** Automatically generated from 'openurl.conf'. Edits will be lost. ***
    Copyright © 1995-2008, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Defines for openurl
*/

#include <aros/libcall.h>
#include <exec/types.h>
#include <aros/preprocessor/variadic/cast2iptr.hpp>


#define __URL_OpenA_WB(__OpenURLBase, __arg1, __arg2) \
        AROS_LC2(ULONG, URL_OpenA, \
                  AROS_LCA(STRPTR,(__arg1),A0), \
                  AROS_LCA(struct TagItem *,(__arg2),A1), \
        struct Library *, (__OpenURLBase), 5, Openurl)

#define URL_OpenA(arg1, arg2) \
    __URL_OpenA_WB(OpenURLBase, (arg1), (arg2))

#if !defined(NO_INLINE_STDARG) && !defined(OPENURL_NO_INLINE_STDARG)
#define URL_Open(arg1, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    URL_OpenA((arg1), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

#define __URL_GetPrefsA_WB(__OpenURLBase, __arg1) \
        AROS_LC1(struct URL_Prefs *, URL_GetPrefsA, \
                  AROS_LCA(struct TagItem *,(__arg1),A0), \
        struct Library *, (__OpenURLBase), 12, Openurl)

#define URL_GetPrefsA(arg1) \
    __URL_GetPrefsA_WB(OpenURLBase, (arg1))

#if !defined(NO_INLINE_STDARG) && !defined(OPENURL_NO_INLINE_STDARG)
#define URL_GetPrefs(...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    URL_GetPrefsA((struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

#define __URL_FreePrefsA_WB(__OpenURLBase, __arg1, __arg2) \
        AROS_LC2NR(VOID, URL_FreePrefsA, \
                  AROS_LCA(struct URL_Prefs *,(__arg1),A0), \
                  AROS_LCA(struct TagItem *,(__arg2),A1), \
        struct Library *, (__OpenURLBase), 13, Openurl)

#define URL_FreePrefsA(arg1, arg2) \
    __URL_FreePrefsA_WB(OpenURLBase, (arg1), (arg2))

#if !defined(NO_INLINE_STDARG) && !defined(OPENURL_NO_INLINE_STDARG)
#define URL_FreePrefs(arg1, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    URL_FreePrefsA((arg1), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

#define __URL_SetPrefsA_WB(__OpenURLBase, __arg1, __arg2) \
        AROS_LC2(ULONG, URL_SetPrefsA, \
                  AROS_LCA(struct URL_Prefs *,(__arg1),A0), \
                  AROS_LCA(struct TagItem *,(__arg2),A1), \
        struct Library *, (__OpenURLBase), 14, Openurl)

#define URL_SetPrefsA(arg1, arg2) \
    __URL_SetPrefsA_WB(OpenURLBase, (arg1), (arg2))

#if !defined(NO_INLINE_STDARG) && !defined(OPENURL_NO_INLINE_STDARG)
#define URL_SetPrefs(arg1, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    URL_SetPrefsA((arg1), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

#define __URL_LaunchPrefsAppA_WB(__OpenURLBase, __arg1) \
        AROS_LC1(ULONG, URL_LaunchPrefsAppA, \
                  AROS_LCA(struct TagItem *,(__arg1),A0), \
        struct Library *, (__OpenURLBase), 15, Openurl)

#define URL_LaunchPrefsAppA(arg1) \
    __URL_LaunchPrefsAppA_WB(OpenURLBase, (arg1))

#if !defined(NO_INLINE_STDARG) && !defined(OPENURL_NO_INLINE_STDARG)
#define URL_LaunchPrefsApp(...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    URL_LaunchPrefsAppA((struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

#define __URL_GetAttr_WB(__OpenURLBase, __arg1, __arg2) \
        AROS_LC2(ULONG, URL_GetAttr, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(IPTR *,(__arg2),A0), \
        struct Library *, (__OpenURLBase), 16, Openurl)

#define URL_GetAttr(arg1, arg2) \
    __URL_GetAttr_WB(OpenURLBase, (arg1), (arg2))

#endif /* DEFINES_OPENURL_PROTOS_H*/
