#ifndef DEFINES_ASL_PROTOS_H
#define DEFINES_ASL_PROTOS_H

/*
    *** Automatically generated from 'asl.conf'. Edits will be lost. ***
    Copyright © 1995-2008, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Defines for asl
*/

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


#define __AllocFileRequest_WB(__AslBase) \
        AROS_LC0(struct FileRequester *, AllocFileRequest, \
        struct Library *, (__AslBase), 5, Asl)

#define AllocFileRequest() \
    __AllocFileRequest_WB(AslBase)

#define __FreeFileRequest_WB(__AslBase, __arg1) \
        AROS_LC1NR(void, FreeFileRequest, \
                  AROS_LCA(struct FileRequester *,(__arg1),A0), \
        struct Library *, (__AslBase), 6, Asl)

#define FreeFileRequest(arg1) \
    __FreeFileRequest_WB(AslBase, (arg1))

#define __RequestFile_WB(__AslBase, __arg1) \
        AROS_LC1(BOOL, RequestFile, \
                  AROS_LCA(struct FileRequester *,(__arg1),A0), \
        struct Library *, (__AslBase), 7, Asl)

#define RequestFile(arg1) \
    __RequestFile_WB(AslBase, (arg1))

#define __AllocAslRequest_WB(__AslBase, __arg1, __arg2) \
        AROS_LC2(APTR, AllocAslRequest, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(struct TagItem *,(__arg2),A0), \
        struct Library *, (__AslBase), 8, Asl)

#define AllocAslRequest(arg1, arg2) \
    __AllocAslRequest_WB(AslBase, (arg1), (arg2))

#if !defined(NO_INLINE_STDARG) && !defined(ASL_NO_INLINE_STDARG)
#define AllocAslRequestTags(arg1, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    AllocAslRequest((arg1), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

#define __FreeAslRequest_WB(__AslBase, __arg1) \
        AROS_LC1NR(void, FreeAslRequest, \
                  AROS_LCA(APTR,(__arg1),A0), \
        struct Library *, (__AslBase), 9, Asl)

#define FreeAslRequest(arg1) \
    __FreeAslRequest_WB(AslBase, (arg1))

#define __AslRequest_WB(__AslBase, __arg1, __arg2) \
        AROS_LC2(BOOL, AslRequest, \
                  AROS_LCA(APTR,(__arg1),A0), \
                  AROS_LCA(struct TagItem *,(__arg2),A1), \
        struct Library *, (__AslBase), 10, Asl)

#define AslRequest(arg1, arg2) \
    __AslRequest_WB(AslBase, (arg1), (arg2))

#if !defined(NO_INLINE_STDARG) && !defined(ASL_NO_INLINE_STDARG)
#define AslRequestTags(arg1, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    AslRequest((arg1), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

#define __AbortAslRequest_WB(__AslBase, __arg1) \
        AROS_LC1NR(void, AbortAslRequest, \
                  AROS_LCA(APTR,(__arg1),A0), \
        struct Library *, (__AslBase), 13, Asl)

#define AbortAslRequest(arg1) \
    __AbortAslRequest_WB(AslBase, (arg1))

#define __ActivateAslRequest_WB(__AslBase, __arg1) \
        AROS_LC1NR(void, ActivateAslRequest, \
                  AROS_LCA(APTR,(__arg1),A0), \
        struct Library *, (__AslBase), 14, Asl)

#define ActivateAslRequest(arg1) \
    __ActivateAslRequest_WB(AslBase, (arg1))

#endif /* DEFINES_ASL_PROTOS_H*/
