#ifndef INLINE_PTPLAY_H
#define INLINE_PTPLAY_H

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

/*
    Desc: Inline function for ptplay
*/

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


static inline APTR __inline_Ptplay_PtInit(UBYTE * __arg1, LONG __arg2, LONG __arg3, ULONG __arg4, APTR __PtplayBase)
{
    return AROS_LC4(APTR, PtInit,
        AROS_LCA(UBYTE *,(__arg1),A1),
        AROS_LCA(LONG,(__arg2),D0),
        AROS_LCA(LONG,(__arg3),D1),
        AROS_LCA(ULONG,(__arg4),D2),
        struct Library *, (__PtplayBase), 5, Ptplay    );
}

#define PtInit(arg1, arg2, arg3, arg4) \
    __inline_Ptplay_PtInit((arg1), (arg2), (arg3), (arg4), (APTR)PtplayBase)

static inline VOID __inline_Ptplay_PtRender(APTR __arg1, BYTE * __arg2, BYTE * __arg3, LONG __arg4, LONG __arg5, LONG __arg6, LONG __arg7, LONG __arg8, APTR __PtplayBase)
{
    AROS_LC8NR(VOID, PtRender,
        AROS_LCA(APTR,(__arg1),A0),
        AROS_LCA(BYTE *,(__arg2),A1),
        AROS_LCA(BYTE *,(__arg3),A2),
        AROS_LCA(LONG,(__arg4),D0),
        AROS_LCA(LONG,(__arg5),D1),
        AROS_LCA(LONG,(__arg6),D2),
        AROS_LCA(LONG,(__arg7),D3),
        AROS_LCA(LONG,(__arg8),D4),
        struct Library *, (__PtplayBase), 6, Ptplay    );
}

#define PtRender(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
    __inline_Ptplay_PtRender((arg1), (arg2), (arg3), (arg4), (arg5), (arg6), (arg7), (arg8), (APTR)PtplayBase)

static inline ULONG __inline_Ptplay_PtTest(CONST_STRPTR __arg1, UBYTE * __arg2, LONG __arg3, APTR __PtplayBase)
{
    return AROS_LC3(ULONG, PtTest,
        AROS_LCA(CONST_STRPTR,(__arg1),A0),
        AROS_LCA(UBYTE *,(__arg2),A1),
        AROS_LCA(LONG,(__arg3),D0),
        struct Library *, (__PtplayBase), 7, Ptplay    );
}

#define PtTest(arg1, arg2, arg3) \
    __inline_Ptplay_PtTest((arg1), (arg2), (arg3), (APTR)PtplayBase)

static inline VOID __inline_Ptplay_PtCleanup(APTR __arg1, APTR __PtplayBase)
{
    AROS_LC1NR(VOID, PtCleanup,
        AROS_LCA(APTR,(__arg1),A0),
        struct Library *, (__PtplayBase), 8, Ptplay    );
}

#define PtCleanup(arg1) \
    __inline_Ptplay_PtCleanup((arg1), (APTR)PtplayBase)

static inline VOID __inline_Ptplay_PtSetAttrs(APTR __arg1, struct TagItem * __arg2, APTR __PtplayBase)
{
    AROS_LC2NR(VOID, PtSetAttrs,
        AROS_LCA(APTR,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        struct Library *, (__PtplayBase), 9, Ptplay    );
}

#define PtSetAttrs(arg1, arg2) \
    __inline_Ptplay_PtSetAttrs((arg1), (arg2), (APTR)PtplayBase)

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

static inline ULONG __inline_Ptplay_PtGetAttr(APTR __arg1, ULONG __arg2, ULONG * __arg3, APTR __PtplayBase)
{
    return AROS_LC3(ULONG, PtGetAttr,
        AROS_LCA(APTR,(__arg1),A0),
        AROS_LCA(ULONG,(__arg2),D0),
        AROS_LCA(ULONG *,(__arg3),A1),
        struct Library *, (__PtplayBase), 10, Ptplay    );
}

#define PtGetAttr(arg1, arg2, arg3) \
    __inline_Ptplay_PtGetAttr((arg1), (arg2), (arg3), (APTR)PtplayBase)

static inline ULONG __inline_Ptplay_PtSeek(APTR __arg1, ULONG __arg2, APTR __PtplayBase)
{
    return AROS_LC2(ULONG, PtSeek,
        AROS_LCA(APTR,(__arg1),A0),
        AROS_LCA(ULONG,(__arg2),D0),
        struct Library *, (__PtplayBase), 11, Ptplay    );
}

#define PtSeek(arg1, arg2) \
    __inline_Ptplay_PtSeek((arg1), (arg2), (APTR)PtplayBase)

#endif /* INLINE_PTPLAY_H*/
