#ifndef DEFINES_BULLET_H
#define DEFINES_BULLET_H

/*
    *** Automatically generated from '/home/aros/ABIv11/AROS/AROS/workbench/libs/bullet/bullet.conf'. Edits will be lost. ***
    Copyright (C) 1995-2026, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Defines for bullet
*/

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

#if !defined(__BULLET_LIBBASE)
#define __BULLET_LIBBASE __aros_getbase_BulletBase()
#endif
#ifndef __aros_getbase_BulletBase
extern struct Library *__aros_getbase_BulletBase(void);
#endif

__BEGIN_DECLS


#if !defined(__BULLET_LIBAPI__) || (41 <= __BULLET_LIBAPI__)

#define __OpenEngine_WB(__BulletBase) ({\
        AROS_LIBREQ(BulletBase,41)\
        AROS_LC0(struct GlyphEngine *, OpenEngine,\
        struct Library *, (__BulletBase), 5, Bullet);\
})

#define OpenEngine() \
    __OpenEngine_WB(__BULLET_LIBBASE)

#endif /* !defined(__BULLET_LIBAPI__) || (41 <= __BULLET_LIBAPI__) */

#if !defined(__BULLET_LIBAPI__) || (41 <= __BULLET_LIBAPI__)

#define __CloseEngine_WB(__BulletBase, __arg1) ({\
        AROS_LIBREQ(BulletBase,41)\
        AROS_LC1NR(void, CloseEngine,\
         AROS_LCA(struct GlyphEngine *, (__arg1), A0), \
        struct Library *, (__BulletBase), 6, Bullet);\
})

#define CloseEngine(arg1) \
    __CloseEngine_WB(__BULLET_LIBBASE, (arg1))

#endif /* !defined(__BULLET_LIBAPI__) || (41 <= __BULLET_LIBAPI__) */

#if !defined(__BULLET_LIBAPI__) || (41 <= __BULLET_LIBAPI__)

#define __SetInfoA_WB(__BulletBase, __arg1, __arg2) ({\
        AROS_LIBREQ(BulletBase,41)\
        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) \
    __SetInfoA_WB(__BULLET_LIBBASE, (arg1), (arg2))

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

#endif /* !defined(__BULLET_LIBAPI__) || (41 <= __BULLET_LIBAPI__) */

#if !defined(__BULLET_LIBAPI__) || (41 <= __BULLET_LIBAPI__)

#define __ObtainInfoA_WB(__BulletBase, __arg1, __arg2) ({\
        AROS_LIBREQ(BulletBase,41)\
        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) \
    __ObtainInfoA_WB(__BULLET_LIBBASE, (arg1), (arg2))

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

#endif /* !defined(__BULLET_LIBAPI__) || (41 <= __BULLET_LIBAPI__) */

#if !defined(__BULLET_LIBAPI__) || (41 <= __BULLET_LIBAPI__)

#define __ReleaseInfoA_WB(__BulletBase, __arg1, __arg2) ({\
        AROS_LIBREQ(BulletBase,41)\
        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) \
    __ReleaseInfoA_WB(__BULLET_LIBBASE, (arg1), (arg2))

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

#endif /* !defined(__BULLET_LIBAPI__) || (41 <= __BULLET_LIBAPI__) */

__END_DECLS

#endif /* DEFINES_BULLET_H*/
