#ifndef DEFINES_REALTIME_H
#define DEFINES_REALTIME_H

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

/*
    Desc: Defines for realtime
*/

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

#if !defined(__REALTIME_LIBBASE)
#define __REALTIME_LIBBASE __aros_getbase_RealTimeBase()
#endif
#ifndef __aros_getbase_RealTimeBase
extern struct Library *__aros_getbase_RealTimeBase(void);
#endif

__BEGIN_DECLS


#if !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__)

#define __LockRealTime_WB(__RealTimeBase, __arg1) ({\
        AROS_LIBREQ(RealTimeBase,37)\
        AROS_LC1(APTR, LockRealTime,\
         AROS_LCA(ULONG, (__arg1), D0), \
        struct Library *, (__RealTimeBase), 5, RealTime);\
})

#define LockRealTime(arg1) \
    __LockRealTime_WB(__REALTIME_LIBBASE, (arg1))

#endif /* !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__) */

#if !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__)

#define __UnlockRealTime_WB(__RealTimeBase, __arg1) ({\
        AROS_LIBREQ(RealTimeBase,37)\
        AROS_LC1NR(void, UnlockRealTime,\
         AROS_LCA(APTR, (__arg1), A0), \
        struct Library *, (__RealTimeBase), 6, RealTime);\
})

#define UnlockRealTime(arg1) \
    __UnlockRealTime_WB(__REALTIME_LIBBASE, (arg1))

#endif /* !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__) */

#if !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__)

#define __CreatePlayerA_WB(__RealTimeBase, __arg1) ({\
        AROS_LIBREQ(RealTimeBase,37)\
        AROS_LC1(struct Player *, CreatePlayerA,\
         AROS_LCA(struct TagItem *, (__arg1), A0), \
        struct Library *, (__RealTimeBase), 7, RealTime);\
})

#define CreatePlayerA(arg1) \
    __CreatePlayerA_WB(__REALTIME_LIBBASE, (arg1))

#if !defined(NO_INLINE_STDARG) && !defined(REALTIME_NO_INLINE_STDARG)
#define CreatePlayer(...) \
({ \
    const IPTR CreatePlayerA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    CreatePlayerA((struct TagItem *)(CreatePlayerA_args)); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__) */

#if !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__)

#define __DeletePlayer_WB(__RealTimeBase, __arg1) ({\
        AROS_LIBREQ(RealTimeBase,37)\
        AROS_LC1NR(void, DeletePlayer,\
         AROS_LCA(struct Player *, (__arg1), A0), \
        struct Library *, (__RealTimeBase), 8, RealTime);\
})

#define DeletePlayer(arg1) \
    __DeletePlayer_WB(__REALTIME_LIBBASE, (arg1))

#endif /* !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__) */

#if !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__)

#define __SetPlayerAttrsA_WB(__RealTimeBase, __arg1, __arg2) ({\
        AROS_LIBREQ(RealTimeBase,37)\
        AROS_LC2(BOOL, SetPlayerAttrsA,\
         AROS_LCA(struct Player *, (__arg1), A0), \
         AROS_LCA(struct TagItem *, (__arg2), A1), \
        struct Library *, (__RealTimeBase), 9, RealTime);\
})

#define SetPlayerAttrsA(arg1, arg2) \
    __SetPlayerAttrsA_WB(__REALTIME_LIBBASE, (arg1), (arg2))

#if !defined(NO_INLINE_STDARG) && !defined(REALTIME_NO_INLINE_STDARG)
#define SetPlayerAttrs(arg1, ...) \
({ \
    const IPTR SetPlayerAttrsA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    SetPlayerAttrsA((arg1), (struct TagItem *)(SetPlayerAttrsA_args)); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__) */

#if !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__)

#define __SetConductorState_WB(__RealTimeBase, __arg1, __arg2, __arg3) ({\
        AROS_LIBREQ(RealTimeBase,37)\
        AROS_LC3(LONG, SetConductorState,\
         AROS_LCA(struct Player *, (__arg1), A0), \
         AROS_LCA(ULONG, (__arg2), D0), \
         AROS_LCA(LONG, (__arg3), D1), \
        struct Library *, (__RealTimeBase), 10, RealTime);\
})

#define SetConductorState(arg1, arg2, arg3) \
    __SetConductorState_WB(__REALTIME_LIBBASE, (arg1), (arg2), (arg3))

#endif /* !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__) */

#if !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__)

#define __ExternalSync_WB(__RealTimeBase, __arg1, __arg2, __arg3) ({\
        AROS_LIBREQ(RealTimeBase,37)\
        AROS_LC3(BOOL, ExternalSync,\
         AROS_LCA(struct Player *, (__arg1), A0), \
         AROS_LCA(LONG, (__arg2), D0), \
         AROS_LCA(LONG, (__arg3), D1), \
        struct Library *, (__RealTimeBase), 11, RealTime);\
})

#define ExternalSync(arg1, arg2, arg3) \
    __ExternalSync_WB(__REALTIME_LIBBASE, (arg1), (arg2), (arg3))

#endif /* !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__) */

#if !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__)

#define __NextConductor_WB(__RealTimeBase, __arg1) ({\
        AROS_LIBREQ(RealTimeBase,37)\
        AROS_LC1(struct Conductor *, NextConductor,\
         AROS_LCA(struct Conductor *, (__arg1), A0), \
        struct Library *, (__RealTimeBase), 12, RealTime);\
})

#define NextConductor(arg1) \
    __NextConductor_WB(__REALTIME_LIBBASE, (arg1))

#endif /* !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__) */

#if !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__)

#define __FindConductor_WB(__RealTimeBase, __arg1) ({\
        AROS_LIBREQ(RealTimeBase,37)\
        AROS_LC1(struct Conductor *, FindConductor,\
         AROS_LCA(STRPTR, (__arg1), A0), \
        struct Library *, (__RealTimeBase), 13, RealTime);\
})

#define FindConductor(arg1) \
    __FindConductor_WB(__REALTIME_LIBBASE, (arg1))

#endif /* !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__) */

#if !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__)

#define __GetPlayerAttrsA_WB(__RealTimeBase, __arg1, __arg2) ({\
        AROS_LIBREQ(RealTimeBase,37)\
        AROS_LC2(BOOL, GetPlayerAttrsA,\
         AROS_LCA(struct Player *, (__arg1), A0), \
         AROS_LCA(struct TagItem *, (__arg2), A1), \
        struct Library *, (__RealTimeBase), 14, RealTime);\
})

#define GetPlayerAttrsA(arg1, arg2) \
    __GetPlayerAttrsA_WB(__REALTIME_LIBBASE, (arg1), (arg2))

#if !defined(NO_INLINE_STDARG) && !defined(REALTIME_NO_INLINE_STDARG)
#define GetPlayerAttrs(arg1, ...) \
({ \
    const IPTR GetPlayerAttrsA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    GetPlayerAttrsA((arg1), (struct TagItem *)(GetPlayerAttrsA_args)); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* !defined(__REALTIME_LIBAPI__) || (37 <= __REALTIME_LIBAPI__) */

__END_DECLS

#endif /* DEFINES_REALTIME_H*/
