#ifndef DEFINES_UUID_H
#define DEFINES_UUID_H

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

/*
    Desc: Defines for uuid
*/

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

#if !defined(__UUID_LIBBASE)
#define __UUID_LIBBASE __aros_getbase_UUIDBase()
#endif
#ifndef __aros_getbase_UUIDBase
extern struct Library *__aros_getbase_UUIDBase(void);
#endif

__BEGIN_DECLS


#if !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__)

#define __UUID_Compare_WB(__UUIDBase, __arg1, __arg2) ({\
        AROS_LIBREQ(UUIDBase,1)\
        AROS_LC2(int, UUID_Compare,\
         AROS_LCA(const uuid_t *, (__arg1), A0), \
         AROS_LCA(const uuid_t *, (__arg2), A1), \
        struct Library *, (__UUIDBase), 5, UUID);\
})

#define UUID_Compare(arg1, arg2) \
    __UUID_Compare_WB(__UUID_LIBBASE, (arg1), (arg2))

#endif /* !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__) */

#if !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__)

#define __UUID_GetNameSpace_WB(__UUIDBase, __arg1, __arg2) ({\
        AROS_LIBREQ(UUIDBase,1)\
        AROS_LC2NR(void, UUID_GetNameSpace,\
         AROS_LCA(uuid_namespace_t, (__arg1), D0), \
         AROS_LCA(uuid_t *, (__arg2), A0), \
        struct Library *, (__UUIDBase), 6, UUID);\
})

#define UUID_GetNameSpace(arg1, arg2) \
    __UUID_GetNameSpace_WB(__UUID_LIBBASE, (arg1), (arg2))

#endif /* !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__) */

#if !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__)

#define __UUID_Parse_WB(__UUIDBase, __arg1, __arg2) ({\
        AROS_LIBREQ(UUIDBase,1)\
        AROS_LC2(int, UUID_Parse,\
         AROS_LCA(const char *, (__arg1), A0), \
         AROS_LCA(uuid_t *, (__arg2), A1), \
        struct Library *, (__UUIDBase), 7, UUID);\
})

#define UUID_Parse(arg1, arg2) \
    __UUID_Parse_WB(__UUID_LIBBASE, (arg1), (arg2))

#endif /* !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__) */

#if !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__)

#define __UUID_Unparse_WB(__UUIDBase, __arg1, __arg2) ({\
        AROS_LIBREQ(UUIDBase,1)\
        AROS_LC2NR(void, UUID_Unparse,\
         AROS_LCA(const uuid_t *, (__arg1), A0), \
         AROS_LCA(char *, (__arg2), A1), \
        struct Library *, (__UUIDBase), 8, UUID);\
})

#define UUID_Unparse(arg1, arg2) \
    __UUID_Unparse_WB(__UUID_LIBBASE, (arg1), (arg2))

#endif /* !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__) */

#if !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__)

#define __UUID_Pack_WB(__UUIDBase, __arg1, __arg2) ({\
        AROS_LIBREQ(UUIDBase,1)\
        AROS_LC2NR(void, UUID_Pack,\
         AROS_LCA(const uuid_t *, (__arg1), A0), \
         AROS_LCA(uint8_t *, (__arg2), A1), \
        struct Library *, (__UUIDBase), 9, UUID);\
})

#define UUID_Pack(arg1, arg2) \
    __UUID_Pack_WB(__UUID_LIBBASE, (arg1), (arg2))

#endif /* !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__) */

#if !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__)

#define __UUID_Unpack_WB(__UUIDBase, __arg1, __arg2) ({\
        AROS_LIBREQ(UUIDBase,1)\
        AROS_LC2NR(void, UUID_Unpack,\
         AROS_LCA(const uint8_t *, (__arg1), A0), \
         AROS_LCA(uuid_t *, (__arg2), A1), \
        struct Library *, (__UUIDBase), 10, UUID);\
})

#define UUID_Unpack(arg1, arg2) \
    __UUID_Unpack_WB(__UUID_LIBBASE, (arg1), (arg2))

#endif /* !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__) */

#if !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__)

#define __UUID_Clear_WB(__UUIDBase, __arg1) ({\
        AROS_LIBREQ(UUIDBase,1)\
        AROS_LC1NR(void, UUID_Clear,\
         AROS_LCA(uuid_t *, (__arg1), A0), \
        struct Library *, (__UUIDBase), 11, UUID);\
})

#define UUID_Clear(arg1) \
    __UUID_Clear_WB(__UUID_LIBBASE, (arg1))

#endif /* !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__) */

#if !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__)

#define __UUID_Copy_WB(__UUIDBase, __arg1, __arg2) ({\
        AROS_LIBREQ(UUIDBase,1)\
        AROS_LC2NR(void, UUID_Copy,\
         AROS_LCA(const uuid_t *, (__arg1), A0), \
         AROS_LCA(uuid_t *, (__arg2), A1), \
        struct Library *, (__UUIDBase), 12, UUID);\
})

#define UUID_Copy(arg1, arg2) \
    __UUID_Copy_WB(__UUID_LIBBASE, (arg1), (arg2))

#endif /* !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__) */

#if !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__)

#define __UUID_Generate_WB(__UUIDBase, __arg1, __arg2) ({\
        AROS_LIBREQ(UUIDBase,1)\
        AROS_LC2NR(void, UUID_Generate,\
         AROS_LCA(uuid_type_t, (__arg1), D0), \
         AROS_LCA(uuid_t *, (__arg2), A0), \
        struct Library *, (__UUIDBase), 13, UUID);\
})

#define UUID_Generate(arg1, arg2) \
    __UUID_Generate_WB(__UUID_LIBBASE, (arg1), (arg2))

#endif /* !defined(__UUID_LIBAPI__) || (1 <= __UUID_LIBAPI__) */

__END_DECLS

#endif /* DEFINES_UUID_H*/
