#ifndef INLINE_ETHWRAP_H
#define INLINE_ETHWRAP_H

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

/*
    Desc: Inline function for ethwrap
*/

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


static inline LONG __inline_nep_usbGetAttrsA(ULONG __arg1, APTR __arg2, struct TagItem * __arg3, APTR __nh)
{
    return 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) \
    __inline_nep_usbGetAttrsA((arg1), (arg2), (arg3), (APTR)nh)

#if !defined(NO_INLINE_STDARG) && !defined(ETHWRAP_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 */

static inline LONG __inline_nep_usbSetAttrsA(ULONG __arg1, APTR __arg2, struct TagItem * __arg3, APTR __nh)
{
    return 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) \
    __inline_nep_usbSetAttrsA((arg1), (arg2), (arg3), (APTR)nh)

#if !defined(NO_INLINE_STDARG) && !defined(ETHWRAP_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 */

static inline IPTR __inline_nep_usbDoMethodA(ULONG __arg1, IPTR * __arg2, APTR __nh)
{
    return AROS_LC2(IPTR, usbDoMethodA,
        AROS_LCA(ULONG,(__arg1),D0),
        AROS_LCA(IPTR *,(__arg2),A1),
        struct Library *, (__nh), 7, nep    );
}

#define usbDoMethodA(arg1, arg2) \
    __inline_nep_usbDoMethodA((arg1), (arg2), (APTR)nh)

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

#endif /* INLINE_ETHWRAP_H*/
