#ifndef INLINE_BULLET_H
#define INLINE_BULLET_H

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

/*
    Desc: Inline function for bullet
*/

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


static inline struct GlyphEngine * __inline_Bullet_OpenEngine(APTR __BulletBase)
{
    return AROS_LC0(struct GlyphEngine *, OpenEngine,
        struct Library *, (__BulletBase), 5, Bullet    );
}

#define OpenEngine() \
    __inline_Bullet_OpenEngine((APTR)BulletBase)

static inline void __inline_Bullet_CloseEngine(struct GlyphEngine * __arg1, APTR __BulletBase)
{
    AROS_LC1NR(void, CloseEngine,
        AROS_LCA(struct GlyphEngine *,(__arg1),A0),
        struct Library *, (__BulletBase), 6, Bullet    );
}

#define CloseEngine(arg1) \
    __inline_Bullet_CloseEngine((arg1), (APTR)BulletBase)

static inline ULONG __inline_Bullet_SetInfoA(struct GlyphEngine * __arg1, struct TagItem * __arg2, APTR __BulletBase)
{
    return AROS_LC2(ULONG, SetInfoA,
        AROS_LCA(struct GlyphEngine *,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        struct Library *, (__BulletBase), 7, Bullet    );
}

#define SetInfoA(arg1, arg2) \
    __inline_Bullet_SetInfoA((arg1), (arg2), (APTR)BulletBase)

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

static inline ULONG __inline_Bullet_ObtainInfoA(struct GlyphEngine * __arg1, struct TagItem * __arg2, APTR __BulletBase)
{
    return AROS_LC2(ULONG, ObtainInfoA,
        AROS_LCA(struct GlyphEngine *,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        struct Library *, (__BulletBase), 8, Bullet    );
}

#define ObtainInfoA(arg1, arg2) \
    __inline_Bullet_ObtainInfoA((arg1), (arg2), (APTR)BulletBase)

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

static inline ULONG __inline_Bullet_ReleaseInfoA(struct GlyphEngine * __arg1, struct TagItem * __arg2, APTR __BulletBase)
{
    return AROS_LC2(ULONG, ReleaseInfoA,
        AROS_LCA(struct GlyphEngine *,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        struct Library *, (__BulletBase), 9, Bullet    );
}

#define ReleaseInfoA(arg1, arg2) \
    __inline_Bullet_ReleaseInfoA((arg1), (arg2), (APTR)BulletBase)

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

#endif /* INLINE_BULLET_H*/
