#ifndef DEFINES_GALLIUM_H
#define DEFINES_GALLIUM_H

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

/*
    Desc: Defines for gallium
*/

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

__BEGIN_DECLS


#define __CreatePipeScreen_WB(__GalliumBase, __arg1) \
        AROS_LC1(struct pipe_screen *, CreatePipeScreen, \
                  AROS_LCA(struct TagItem *,(__arg1),A0), \
        struct Library *, (__GalliumBase), 5, Gallium)

#define CreatePipeScreen(arg1) \
    __CreatePipeScreen_WB(GalliumBase, (arg1))

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

#define __DestroyPipeScreen_WB(__GalliumBase, __arg1) \
        AROS_LC1NR(void, DestroyPipeScreen, \
                  AROS_LCA(struct pipe_screen *,(__arg1),A0), \
        struct Library *, (__GalliumBase), 6, Gallium)

#define DestroyPipeScreen(arg1) \
    __DestroyPipeScreen_WB(GalliumBase, (arg1))

#define __BltPipeSurfaceRastPort_WB(__GalliumBase, __arg1, __arg2, __arg3, __arg4, __arg5, __arg6, __arg7, __arg8) \
        AROS_LC8NR(void, BltPipeSurfaceRastPort, \
                  AROS_LCA(struct pipe_surface *,(__arg1),A0), \
                  AROS_LCA(LONG,(__arg2),D0), \
                  AROS_LCA(LONG,(__arg3),D1), \
                  AROS_LCA(struct RastPort *,(__arg4),A1), \
                  AROS_LCA(LONG,(__arg5),D2), \
                  AROS_LCA(LONG,(__arg6),D3), \
                  AROS_LCA(LONG,(__arg7),D4), \
                  AROS_LCA(LONG,(__arg8),D5), \
        struct Library *, (__GalliumBase), 7, Gallium)

#define BltPipeSurfaceRastPort(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
    __BltPipeSurfaceRastPort_WB(GalliumBase, (arg1), (arg2), (arg3), (arg4), (arg5), (arg6), (arg7), (arg8))

#define __BltPipeResourceRastPort_WB(__GalliumBase, __arg1, __arg2, __arg3, __arg4, __arg5, __arg6, __arg7, __arg8) \
        AROS_LC8NR(void, BltPipeResourceRastPort, \
                  AROS_LCA(struct pipe_resource *,(__arg1),A0), \
                  AROS_LCA(LONG,(__arg2),D0), \
                  AROS_LCA(LONG,(__arg3),D1), \
                  AROS_LCA(struct RastPort *,(__arg4),A1), \
                  AROS_LCA(LONG,(__arg5),D2), \
                  AROS_LCA(LONG,(__arg6),D3), \
                  AROS_LCA(LONG,(__arg7),D4), \
                  AROS_LCA(LONG,(__arg8),D5), \
        struct Library *, (__GalliumBase), 8, Gallium)

#define BltPipeResourceRastPort(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
    __BltPipeResourceRastPort_WB(GalliumBase, (arg1), (arg2), (arg3), (arg4), (arg5), (arg6), (arg7), (arg8))

__END_DECLS

#endif /* DEFINES_GALLIUM_H*/
