#ifndef DEFINES_BOOTMOUSE_H
#define DEFINES_BOOTMOUSE_H

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

/*
    Desc: Defines for bootmouse
*/

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

__BEGIN_DECLS


#define __usbGetAttrsA_WB(__nh, __arg1, __arg2, __arg3) \
        AROS_LC3(LONG, usbGetAttrsA, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(APTR,(__arg2),A0), \
                  AROS_LCA(struct TagItem *,(__arg3),A1), \
        struct Library *, (__nh), 5, nep)

#define usbGetAttrsA(arg1, arg2, arg3) \
    __usbGetAttrsA_WB(nh, (arg1), (arg2), (arg3))

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

#define __usbSetAttrsA_WB(__nh, __arg1, __arg2, __arg3) \
        AROS_LC3(LONG, usbSetAttrsA, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(APTR,(__arg2),A0), \
                  AROS_LCA(struct TagItem *,(__arg3),A1), \
        struct Library *, (__nh), 6, nep)

#define usbSetAttrsA(arg1, arg2, arg3) \
    __usbSetAttrsA_WB(nh, (arg1), (arg2), (arg3))

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

#define __usbDoMethodA_WB(__nh, __arg1, __arg2) \
        AROS_LC2(IPTR, usbDoMethodA, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(IPTR *,(__arg2),A1), \
        struct Library *, (__nh), 7, nep)

#define usbDoMethodA(arg1, arg2) \
    __usbDoMethodA_WB(nh, (arg1), (arg2))

#if !defined(NO_INLINE_STDARG) && !defined(BOOTMOUSE_NO_INLINE_STDARG)
#define usbDoMethod(arg1, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    usbDoMethodA((arg1), (IPTR *)__args); \
})
#endif /* !NO_INLINE_STDARG */

__END_DECLS

#endif /* DEFINES_BOOTMOUSE_H*/
