#ifndef DEFINES_IDENTIFY_H
#define DEFINES_IDENTIFY_H

/*
    *** Automatically generated from '/home/aros/ABIv0/Build/20110803/AROS/workbench/libs/identify/identify.conf'. Edits will be lost. ***
    Copyright © 1995-2011, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Defines for identify
*/

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

__BEGIN_DECLS


#define __IdExpansion_WB(__IdentifyBase, __arg1) \
        AROS_LC1(LONG, IdExpansion, \
                  AROS_LCA(struct TagItem *,(__arg1),A0), \
        struct Library *, (__IdentifyBase), 5, Identify)

#define IdExpansion(arg1) \
    __IdExpansion_WB(IdentifyBase, (arg1))

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

#define __IdHardware_WB(__IdentifyBase, __arg1, __arg2) \
        AROS_LC2(CONST_STRPTR, IdHardware, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(struct TagItem *,(__arg2),A0), \
        struct Library *, (__IdentifyBase), 6, Identify)

#define IdHardware(arg1, arg2) \
    __IdHardware_WB(IdentifyBase, (arg1), (arg2))

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

#define __IdAlert_WB(__IdentifyBase, __arg1, __arg2) \
        AROS_LC2(LONG, IdAlert, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(struct TagItem *,(__arg2),A0), \
        struct Library *, (__IdentifyBase), 7, Identify)

#define IdAlert(arg1, arg2) \
    __IdAlert_WB(IdentifyBase, (arg1), (arg2))

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

#define __IdFunction_WB(__IdentifyBase, __arg1, __arg2, __arg3) \
        AROS_LC3(LONG, IdFunction, \
                  AROS_LCA(STRPTR,(__arg1),A0), \
                  AROS_LCA(LONG,(__arg2),D0), \
                  AROS_LCA(struct TagItem *,(__arg3),A1), \
        struct Library *, (__IdentifyBase), 8, Identify)

#define IdFunction(arg1, arg2, arg3) \
    __IdFunction_WB(IdentifyBase, (arg1), (arg2), (arg3))

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

#define __IdHardwareNum_WB(__IdentifyBase, __arg1, __arg2) \
        AROS_LC2(ULONG, IdHardwareNum, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(struct TagItem *,(__arg2),A0), \
        struct Library *, (__IdentifyBase), 9, Identify)

#define IdHardwareNum(arg1, arg2) \
    __IdHardwareNum_WB(IdentifyBase, (arg1), (arg2))

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

#define __IdHardwareUpdate_WB(__IdentifyBase) \
        AROS_LC0NR(void, IdHardwareUpdate, \
        struct Library *, (__IdentifyBase), 10, Identify)

#define IdHardwareUpdate() \
    __IdHardwareUpdate_WB(IdentifyBase)

#define __IdFormatString_WB(__IdentifyBase, __arg1, __arg2, __arg3, __arg4) \
        AROS_LC4(ULONG, IdFormatString, \
                  AROS_LCA(STRPTR,(__arg1),A0), \
                  AROS_LCA(STRPTR,(__arg2),A1), \
                  AROS_LCA(ULONG,(__arg3),D0), \
                  AROS_LCA(struct TagItem *,(__arg4),A2), \
        struct Library *, (__IdentifyBase), 11, Identify)

#define IdFormatString(arg1, arg2, arg3, arg4) \
    __IdFormatString_WB(IdentifyBase, (arg1), (arg2), (arg3), (arg4))

#if !defined(NO_INLINE_STDARG) && !defined(IDENTIFY_NO_INLINE_STDARG)
#define IdFormatStringTags(arg1, arg2, arg3, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    IdFormatString((arg1), (arg2), (arg3), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

#define __IdEstimateFormatSize_WB(__IdentifyBase, __arg1, __arg2) \
        AROS_LC2(ULONG, IdEstimateFormatSize, \
                  AROS_LCA(STRPTR,(__arg1),A0), \
                  AROS_LCA(struct TagItem *,(__arg2),A1), \
        struct Library *, (__IdentifyBase), 12, Identify)

#define IdEstimateFormatSize(arg1, arg2) \
    __IdEstimateFormatSize_WB(IdentifyBase, (arg1), (arg2))

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

__END_DECLS

#endif /* DEFINES_IDENTIFY_H*/
