#ifndef INLINE_AMIGAGUIDE_H
#define INLINE_AMIGAGUIDE_H

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

/*
    Desc: Inline function(s) for amigaguide
*/

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

#if !defined(__AMIGAGUIDE_LIBBASE)
#define __AMIGAGUIDE_LIBBASE __aros_getbase_AmigaGuideBase()
#endif
#ifndef __aros_getbase_AmigaGuideBase
extern struct Library *__aros_getbase_AmigaGuideBase(void);
#endif


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

static inline LONG __inline_AmigaGuide_LockAmigaGuideBase(AMIGAGUIDECONTEXT __arg1, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC1(LONG, LockAmigaGuideBase,\
         AROS_LCA(AMIGAGUIDECONTEXT, (__arg1), A0), \
        struct Library *, (__AmigaGuideBase), 6, AmigaGuide    );
}

#define LockAmigaGuideBase(arg1) \
    __inline_AmigaGuide_LockAmigaGuideBase((arg1), __AMIGAGUIDE_LIBBASE)

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

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

static inline void __inline_AmigaGuide_UnlockAmigaGuideBase(LONG __arg1, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    AROS_LC1NR(void, UnlockAmigaGuideBase,\
         AROS_LCA(LONG, (__arg1), D0), \
        struct Library *, (__AmigaGuideBase), 7, AmigaGuide    );
}

#define UnlockAmigaGuideBase(arg1) \
    __inline_AmigaGuide_UnlockAmigaGuideBase((arg1), __AMIGAGUIDE_LIBBASE)

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

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

static inline AMIGAGUIDECONTEXT __inline_AmigaGuide_OpenAmigaGuideA(struct NewAmigaGuide * __arg1, struct TagItem * __arg2, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC2(AMIGAGUIDECONTEXT, OpenAmigaGuideA,\
         AROS_LCA(struct NewAmigaGuide *, (__arg1), A0), \
         AROS_LCA(struct TagItem *, (__arg2), A1), \
        struct Library *, (__AmigaGuideBase), 9, AmigaGuide    );
}

#define OpenAmigaGuideA(arg1, arg2) \
    __inline_AmigaGuide_OpenAmigaGuideA((arg1), (arg2), __AMIGAGUIDE_LIBBASE)

#if !defined(NO_INLINE_STDARG) && !defined(AMIGAGUIDE_NO_INLINE_STDARG)
#define OpenAmigaGuide(arg1, ...) \
({ \
    const IPTR OpenAmigaGuideA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    OpenAmigaGuideA((arg1), (struct TagItem *)(OpenAmigaGuideA_args)); \
})
#endif /* !NO_INLINE_STDARG */

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

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

static inline AMIGAGUIDECONTEXT __inline_AmigaGuide_OpenAmigaGuideAsyncA(struct NewAmigaGuide * __arg1, struct TagItem * __arg2, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC2(AMIGAGUIDECONTEXT, OpenAmigaGuideAsyncA,\
         AROS_LCA(struct NewAmigaGuide *, (__arg1), A0), \
         AROS_LCA(struct TagItem *, (__arg2), D0), \
        struct Library *, (__AmigaGuideBase), 10, AmigaGuide    );
}

#define OpenAmigaGuideAsyncA(arg1, arg2) \
    __inline_AmigaGuide_OpenAmigaGuideAsyncA((arg1), (arg2), __AMIGAGUIDE_LIBBASE)

#if !defined(NO_INLINE_STDARG) && !defined(AMIGAGUIDE_NO_INLINE_STDARG)
#define OpenAmigaGuideAsync(arg1, ...) \
({ \
    const IPTR OpenAmigaGuideAsyncA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    OpenAmigaGuideAsyncA((arg1), (struct TagItem *)(OpenAmigaGuideAsyncA_args)); \
})
#endif /* !NO_INLINE_STDARG */

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

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

static inline void __inline_AmigaGuide_CloseAmigaGuide(AMIGAGUIDECONTEXT __arg1, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    AROS_LC1NR(void, CloseAmigaGuide,\
         AROS_LCA(AMIGAGUIDECONTEXT, (__arg1), A0), \
        struct Library *, (__AmigaGuideBase), 11, AmigaGuide    );
}

#define CloseAmigaGuide(arg1) \
    __inline_AmigaGuide_CloseAmigaGuide((arg1), __AMIGAGUIDE_LIBBASE)

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

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

static inline ULONG __inline_AmigaGuide_AmigaGuideSignal(AMIGAGUIDECONTEXT __arg1, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC1(ULONG, AmigaGuideSignal,\
         AROS_LCA(AMIGAGUIDECONTEXT, (__arg1), A0), \
        struct Library *, (__AmigaGuideBase), 12, AmigaGuide    );
}

#define AmigaGuideSignal(arg1) \
    __inline_AmigaGuide_AmigaGuideSignal((arg1), __AMIGAGUIDE_LIBBASE)

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

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

static inline struct AmigaGuideMsg * __inline_AmigaGuide_GetAmigaGuideMsg(AMIGAGUIDECONTEXT __arg1, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC1(struct AmigaGuideMsg *, GetAmigaGuideMsg,\
         AROS_LCA(AMIGAGUIDECONTEXT, (__arg1), A0), \
        struct Library *, (__AmigaGuideBase), 13, AmigaGuide    );
}

#define GetAmigaGuideMsg(arg1) \
    __inline_AmigaGuide_GetAmigaGuideMsg((arg1), __AMIGAGUIDE_LIBBASE)

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

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

static inline void __inline_AmigaGuide_ReplyAmigaGuideMsg(struct AmigaGuideMsg * __arg1, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    AROS_LC1NR(void, ReplyAmigaGuideMsg,\
         AROS_LCA(struct AmigaGuideMsg *, (__arg1), A0), \
        struct Library *, (__AmigaGuideBase), 14, AmigaGuide    );
}

#define ReplyAmigaGuideMsg(arg1) \
    __inline_AmigaGuide_ReplyAmigaGuideMsg((arg1), __AMIGAGUIDE_LIBBASE)

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

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

static inline BOOL __inline_AmigaGuide_SetAmigaGuideContextA(AMIGAGUIDECONTEXT __arg1, ULONG __arg2, struct TagItem * __arg3, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC3(BOOL, SetAmigaGuideContextA,\
         AROS_LCA(AMIGAGUIDECONTEXT, (__arg1), A0), \
         AROS_LCA(ULONG, (__arg2), D0), \
         AROS_LCA(struct TagItem *, (__arg3), D1), \
        struct Library *, (__AmigaGuideBase), 15, AmigaGuide    );
}

#define SetAmigaGuideContextA(arg1, arg2, arg3) \
    __inline_AmigaGuide_SetAmigaGuideContextA((arg1), (arg2), (arg3), __AMIGAGUIDE_LIBBASE)

#if !defined(NO_INLINE_STDARG) && !defined(AMIGAGUIDE_NO_INLINE_STDARG)
#define SetAmigaGuideContext(arg1, arg2, ...) \
({ \
    const IPTR SetAmigaGuideContextA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    SetAmigaGuideContextA((arg1), (arg2), (struct TagItem *)(SetAmigaGuideContextA_args)); \
})
#endif /* !NO_INLINE_STDARG */

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

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

static inline BOOL __inline_AmigaGuide_SendAmigaGuideContextA(AMIGAGUIDECONTEXT __arg1, struct TagItem * __arg2, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC2(BOOL, SendAmigaGuideContextA,\
         AROS_LCA(AMIGAGUIDECONTEXT, (__arg1), A0), \
         AROS_LCA(struct TagItem *, (__arg2), D0), \
        struct Library *, (__AmigaGuideBase), 16, AmigaGuide    );
}

#define SendAmigaGuideContextA(arg1, arg2) \
    __inline_AmigaGuide_SendAmigaGuideContextA((arg1), (arg2), __AMIGAGUIDE_LIBBASE)

#if !defined(NO_INLINE_STDARG) && !defined(AMIGAGUIDE_NO_INLINE_STDARG)
#define SendAmigaGuideContext(arg1, ...) \
({ \
    const IPTR SendAmigaGuideContextA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    SendAmigaGuideContextA((arg1), (struct TagItem *)(SendAmigaGuideContextA_args)); \
})
#endif /* !NO_INLINE_STDARG */

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

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

static inline BOOL __inline_AmigaGuide_SendAmigaGuideCmdA(AMIGAGUIDECONTEXT __arg1, STRPTR __arg2, struct TagItem * __arg3, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC3(BOOL, SendAmigaGuideCmdA,\
         AROS_LCA(AMIGAGUIDECONTEXT, (__arg1), A0), \
         AROS_LCA(STRPTR, (__arg2), D0), \
         AROS_LCA(struct TagItem *, (__arg3), D1), \
        struct Library *, (__AmigaGuideBase), 17, AmigaGuide    );
}

#define SendAmigaGuideCmdA(arg1, arg2, arg3) \
    __inline_AmigaGuide_SendAmigaGuideCmdA((arg1), (arg2), (arg3), __AMIGAGUIDE_LIBBASE)

#if !defined(NO_INLINE_STDARG) && !defined(AMIGAGUIDE_NO_INLINE_STDARG)
#define SendAmigaGuideCmd(arg1, arg2, ...) \
({ \
    const IPTR SendAmigaGuideCmdA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    SendAmigaGuideCmdA((arg1), (arg2), (struct TagItem *)(SendAmigaGuideCmdA_args)); \
})
#endif /* !NO_INLINE_STDARG */

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

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

static inline LONG __inline_AmigaGuide_SetAmigaGuideAttrsA(AMIGAGUIDECONTEXT __arg1, struct TagItem * __arg2, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC2(LONG, SetAmigaGuideAttrsA,\
         AROS_LCA(AMIGAGUIDECONTEXT, (__arg1), A0), \
         AROS_LCA(struct TagItem *, (__arg2), A1), \
        struct Library *, (__AmigaGuideBase), 18, AmigaGuide    );
}

#define SetAmigaGuideAttrsA(arg1, arg2) \
    __inline_AmigaGuide_SetAmigaGuideAttrsA((arg1), (arg2), __AMIGAGUIDE_LIBBASE)

#if !defined(NO_INLINE_STDARG) && !defined(AMIGAGUIDE_NO_INLINE_STDARG)
#define SetAmigaGuideAttrs(arg1, ...) \
({ \
    const IPTR SetAmigaGuideAttrsA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    SetAmigaGuideAttrsA((arg1), (struct TagItem *)(SetAmigaGuideAttrsA_args)); \
})
#endif /* !NO_INLINE_STDARG */

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

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

static inline LONG __inline_AmigaGuide_GetAmigaGuideAttr(Tag __arg1, AMIGAGUIDECONTEXT __arg2, ULONG * __arg3, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC3(LONG, GetAmigaGuideAttr,\
         AROS_LCA(Tag, (__arg1), D0), \
         AROS_LCA(AMIGAGUIDECONTEXT, (__arg2), A0), \
         AROS_LCA(ULONG *, (__arg3), A1), \
        struct Library *, (__AmigaGuideBase), 19, AmigaGuide    );
}

#define GetAmigaGuideAttr(arg1, arg2, arg3) \
    __inline_AmigaGuide_GetAmigaGuideAttr((arg1), (arg2), (arg3), __AMIGAGUIDE_LIBBASE)

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

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

static inline LONG __inline_AmigaGuide_LoadXRef(BPTR __arg1, STRPTR __arg2, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC2(LONG, LoadXRef,\
         AROS_LCA(BPTR, (__arg1), A0), \
         AROS_LCA(STRPTR, (__arg2), A1), \
        struct Library *, (__AmigaGuideBase), 21, AmigaGuide    );
}

#define LoadXRef(arg1, arg2) \
    __inline_AmigaGuide_LoadXRef((arg1), (arg2), __AMIGAGUIDE_LIBBASE)

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

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

static inline void __inline_AmigaGuide_ExpungeXRef(APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    AROS_LC0NR(void, ExpungeXRef,\
        struct Library *, (__AmigaGuideBase), 22, AmigaGuide    );
}

#define ExpungeXRef() \
    __inline_AmigaGuide_ExpungeXRef(__AMIGAGUIDE_LIBBASE)

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

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

static inline AMIGAGUIDEHOST __inline_AmigaGuide_AddAmigaGuideHostA(struct Hook * __arg1, STRPTR __arg2, struct TagItem * __arg3, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC3(AMIGAGUIDEHOST, AddAmigaGuideHostA,\
         AROS_LCA(struct Hook *, (__arg1), A0), \
         AROS_LCA(STRPTR, (__arg2), D0), \
         AROS_LCA(struct TagItem *, (__arg3), A1), \
        struct Library *, (__AmigaGuideBase), 23, AmigaGuide    );
}

#define AddAmigaGuideHostA(arg1, arg2, arg3) \
    __inline_AmigaGuide_AddAmigaGuideHostA((arg1), (arg2), (arg3), __AMIGAGUIDE_LIBBASE)

#if !defined(NO_INLINE_STDARG) && !defined(AMIGAGUIDE_NO_INLINE_STDARG)
#define AddAmigaGuideHost(arg1, arg2, ...) \
({ \
    const IPTR AddAmigaGuideHostA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    AddAmigaGuideHostA((arg1), (arg2), (struct TagItem *)(AddAmigaGuideHostA_args)); \
})
#endif /* !NO_INLINE_STDARG */

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

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

static inline LONG __inline_AmigaGuide_RemoveAmigaGuideHostA(AMIGAGUIDEHOST __arg1, struct TagItem * __arg2, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC2(LONG, RemoveAmigaGuideHostA,\
         AROS_LCA(AMIGAGUIDEHOST, (__arg1), A0), \
         AROS_LCA(struct TagItem *, (__arg2), A1), \
        struct Library *, (__AmigaGuideBase), 24, AmigaGuide    );
}

#define RemoveAmigaGuideHostA(arg1, arg2) \
    __inline_AmigaGuide_RemoveAmigaGuideHostA((arg1), (arg2), __AMIGAGUIDE_LIBBASE)

#if !defined(NO_INLINE_STDARG) && !defined(AMIGAGUIDE_NO_INLINE_STDARG)
#define RemoveAmigaGuideHost(arg1, ...) \
({ \
    const IPTR RemoveAmigaGuideHostA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    RemoveAmigaGuideHostA((arg1), (struct TagItem *)(RemoveAmigaGuideHostA_args)); \
})
#endif /* !NO_INLINE_STDARG */

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

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

static inline STRPTR __inline_AmigaGuide_GetAmigaGuideString(ULONG __arg1, APTR __AmigaGuideBase)
{
    AROS_LIBREQ(AmigaGuideBase, 41)
    return AROS_LC1(STRPTR, GetAmigaGuideString,\
         AROS_LCA(ULONG, (__arg1), D0), \
        struct Library *, (__AmigaGuideBase), 35, AmigaGuide    );
}

#define GetAmigaGuideString(arg1) \
    __inline_AmigaGuide_GetAmigaGuideString((arg1), __AMIGAGUIDE_LIBBASE)

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

#endif /* INLINE_AMIGAGUIDE_H*/
