#ifndef INLINE_FREETYPE2_H
#define INLINE_FREETYPE2_H

/*
    *** Automatically generated from '/data/deadwood/gitAROS/AROS/workbench/libs/freetype/src/freetype2.conf'. Edits will be lost. ***
    Copyright © 1995-2011, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Inline function for freetype2
*/

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


static inline struct GlyphEngine * __inline_FreeType2_OpenEngine(APTR __FreeType2Base)
{
    AROS_LIBREQ(FreeType2Base, 0)
    return AROS_LC0(struct GlyphEngine *, OpenEngine,
        struct Library *, (__FreeType2Base), 5, FreeType2    );
}

#define OpenEngine() \
    __inline_FreeType2_OpenEngine((APTR)FreeType2Base)

static inline void __inline_FreeType2_CloseEngine(struct GlyphEngine * __arg1, APTR __FreeType2Base)
{
    AROS_LIBREQ(FreeType2Base, 0)
    AROS_LC1NR(void, CloseEngine,
        AROS_LCA(struct GlyphEngine *,(__arg1),A0),
        struct Library *, (__FreeType2Base), 6, FreeType2    );
}

#define CloseEngine(arg1) \
    __inline_FreeType2_CloseEngine((arg1), (APTR)FreeType2Base)

static inline ULONG __inline_FreeType2_SetInfoA(struct GlyphEngine * __arg1, struct TagItem * __arg2, APTR __FreeType2Base)
{
    AROS_LIBREQ(FreeType2Base, 0)
    return AROS_LC2(ULONG, SetInfoA,
        AROS_LCA(struct GlyphEngine *,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        struct Library *, (__FreeType2Base), 7, FreeType2    );
}

#define SetInfoA(arg1, arg2) \
    __inline_FreeType2_SetInfoA((arg1), (arg2), (APTR)FreeType2Base)

#if !defined(NO_INLINE_STDARG) && !defined(FREETYPE2_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_FreeType2_ObtainInfoA(struct GlyphEngine * __arg1, struct TagItem * __arg2, APTR __FreeType2Base)
{
    AROS_LIBREQ(FreeType2Base, 0)
    return AROS_LC2(ULONG, ObtainInfoA,
        AROS_LCA(struct GlyphEngine *,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        struct Library *, (__FreeType2Base), 8, FreeType2    );
}

#define ObtainInfoA(arg1, arg2) \
    __inline_FreeType2_ObtainInfoA((arg1), (arg2), (APTR)FreeType2Base)

#if !defined(NO_INLINE_STDARG) && !defined(FREETYPE2_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_FreeType2_ReleaseInfoA(struct GlyphEngine * __arg1, struct TagItem * __arg2, APTR __FreeType2Base)
{
    AROS_LIBREQ(FreeType2Base, 0)
    return AROS_LC2(ULONG, ReleaseInfoA,
        AROS_LCA(struct GlyphEngine *,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        struct Library *, (__FreeType2Base), 9, FreeType2    );
}

#define ReleaseInfoA(arg1, arg2) \
    __inline_FreeType2_ReleaseInfoA((arg1), (arg2), (APTR)FreeType2Base)

#if !defined(NO_INLINE_STDARG) && !defined(FREETYPE2_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_FREETYPE2_H*/
