#ifndef DEFINES_PTPLAY_H
#define DEFINES_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: Defines for ptplay
*/

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

__BEGIN_DECLS


#define __PtInit_WB(__PtplayBase, __arg1, __arg2, __arg3, __arg4) \
        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) \
    __PtInit_WB(PtplayBase, (arg1), (arg2), (arg3), (arg4))

#define __PtRender_WB(__PtplayBase, __arg1, __arg2, __arg3, __arg4, __arg5, __arg6, __arg7, __arg8) \
        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) \
    __PtRender_WB(PtplayBase, (arg1), (arg2), (arg3), (arg4), (arg5), (arg6), (arg7), (arg8))

#define __PtTest_WB(__PtplayBase, __arg1, __arg2, __arg3) \
        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) \
    __PtTest_WB(PtplayBase, (arg1), (arg2), (arg3))

#define __PtCleanup_WB(__PtplayBase, __arg1) \
        AROS_LC1NR(VOID, PtCleanup, \
                  AROS_LCA(APTR,(__arg1),A0), \
        struct Library *, (__PtplayBase), 8, Ptplay)

#define PtCleanup(arg1) \
    __PtCleanup_WB(PtplayBase, (arg1))

#define __PtSetAttrs_WB(__PtplayBase, __arg1, __arg2) \
        AROS_LC2NR(VOID, PtSetAttrs, \
                  AROS_LCA(APTR,(__arg1),A0), \
                  AROS_LCA(struct TagItem *,(__arg2),A1), \
        struct Library *, (__PtplayBase), 9, Ptplay)

#define PtSetAttrs(arg1, arg2) \
    __PtSetAttrs_WB(PtplayBase, (arg1), (arg2))

#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 */

#define __PtGetAttr_WB(__PtplayBase, __arg1, __arg2, __arg3) \
        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) \
    __PtGetAttr_WB(PtplayBase, (arg1), (arg2), (arg3))

#define __PtSeek_WB(__PtplayBase, __arg1, __arg2) \
        AROS_LC2(ULONG, PtSeek, \
                  AROS_LCA(APTR,(__arg1),A0), \
                  AROS_LCA(ULONG,(__arg2),D0), \
        struct Library *, (__PtplayBase), 11, Ptplay)

#define PtSeek(arg1, arg2) \
    __PtSeek_WB(PtplayBase, (arg1), (arg2))

__END_DECLS

#endif /* DEFINES_PTPLAY_H*/
