#ifndef INLINE_WORKBENCH_H
#define INLINE_WORKBENCH_H

/*
    *** Automatically generated from '/home/aros/ABIv0/Build/20110803/AROS/workbench/libs/workbench/workbench.conf'. Edits will be lost. ***
    Copyright © 1995-2011, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Inline function for workbench
*/

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


static inline BOOL __inline_Workbench_UpdateWorkbench(CONST_STRPTR __arg1, BPTR __arg2, LONG __arg3, APTR __WorkbenchBase)
{
    return AROS_LC3(BOOL, UpdateWorkbench,
        AROS_LCA(CONST_STRPTR,(__arg1),A0),
        AROS_LCA(BPTR,(__arg2),A1),
        AROS_LCA(LONG,(__arg3),D0),
        struct Library *, (__WorkbenchBase), 5, Workbench    );
}

#define UpdateWorkbench(arg1, arg2, arg3) \
    __inline_Workbench_UpdateWorkbench((arg1), (arg2), (arg3), (APTR)WorkbenchBase)

static inline BOOL __inline_Workbench_QuoteWorkbench(ULONG __arg1, APTR __WorkbenchBase)
{
    return AROS_LC1(BOOL, QuoteWorkbench,
        AROS_LCA(ULONG,(__arg1),D0),
        struct Library *, (__WorkbenchBase), 6, Workbench    );
}

#define QuoteWorkbench(arg1) \
    __inline_Workbench_QuoteWorkbench((arg1), (APTR)WorkbenchBase)

static inline BOOL __inline_Workbench_StartWorkbench(ULONG __arg1, APTR __arg2, APTR __WorkbenchBase)
{
    return AROS_LC2(BOOL, StartWorkbench,
        AROS_LCA(ULONG,(__arg1),D0),
        AROS_LCA(APTR,(__arg2),D1),
        struct Library *, (__WorkbenchBase), 7, Workbench    );
}

#define StartWorkbench(arg1, arg2) \
    __inline_Workbench_StartWorkbench((arg1), (arg2), (APTR)WorkbenchBase)

static inline struct AppWindow * __inline_Workbench_AddAppWindowA(ULONG __arg1, ULONG __arg2, struct Window * __arg3, struct MsgPort * __arg4, struct TagItem * __arg5, APTR __WorkbenchBase)
{
    return AROS_LC5(struct AppWindow *, AddAppWindowA,
        AROS_LCA(ULONG,(__arg1),D0),
        AROS_LCA(ULONG,(__arg2),D1),
        AROS_LCA(struct Window *,(__arg3),A0),
        AROS_LCA(struct MsgPort *,(__arg4),A1),
        AROS_LCA(struct TagItem *,(__arg5),A2),
        struct Library *, (__WorkbenchBase), 8, Workbench    );
}

#define AddAppWindowA(arg1, arg2, arg3, arg4, arg5) \
    __inline_Workbench_AddAppWindowA((arg1), (arg2), (arg3), (arg4), (arg5), (APTR)WorkbenchBase)

#if !defined(NO_INLINE_STDARG) && !defined(WORKBENCH_NO_INLINE_STDARG)
#define AddAppWindow(arg1, arg2, arg3, arg4, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    AddAppWindowA((arg1), (arg2), (arg3), (arg4), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

static inline BOOL __inline_Workbench_RemoveAppWindow(struct AppWindow * __arg1, APTR __WorkbenchBase)
{
    return AROS_LC1(BOOL, RemoveAppWindow,
        AROS_LCA(struct AppWindow *,(__arg1),A0),
        struct Library *, (__WorkbenchBase), 9, Workbench    );
}

#define RemoveAppWindow(arg1) \
    __inline_Workbench_RemoveAppWindow((arg1), (APTR)WorkbenchBase)

static inline struct AppIcon * __inline_Workbench_AddAppIconA(ULONG __arg1, ULONG __arg2, char * __arg3, struct MsgPort * __arg4, BPTR __arg5, struct DiskObject * __arg6, struct TagItem * __arg7, APTR __WorkbenchBase)
{
    return AROS_LC7(struct AppIcon *, AddAppIconA,
        AROS_LCA(ULONG,(__arg1),D0),
        AROS_LCA(ULONG,(__arg2),D1),
        AROS_LCA(char *,(__arg3),A0),
        AROS_LCA(struct MsgPort *,(__arg4),A1),
        AROS_LCA(BPTR,(__arg5),A2),
        AROS_LCA(struct DiskObject *,(__arg6),A3),
        AROS_LCA(struct TagItem *,(__arg7),A4),
        struct Library *, (__WorkbenchBase), 10, Workbench    );
}

#define AddAppIconA(arg1, arg2, arg3, arg4, arg5, arg6, arg7) \
    __inline_Workbench_AddAppIconA((arg1), (arg2), (arg3), (arg4), (arg5), (arg6), (arg7), (APTR)WorkbenchBase)

#if !defined(NO_INLINE_STDARG) && !defined(WORKBENCH_NO_INLINE_STDARG)
#define AddAppIcon(arg1, arg2, arg3, arg4, arg5, arg6, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    AddAppIconA((arg1), (arg2), (arg3), (arg4), (arg5), (arg6), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

static inline BOOL __inline_Workbench_RemoveAppIcon(struct AppIcon * __arg1, APTR __WorkbenchBase)
{
    return AROS_LC1(BOOL, RemoveAppIcon,
        AROS_LCA(struct AppIcon *,(__arg1),A0),
        struct Library *, (__WorkbenchBase), 11, Workbench    );
}

#define RemoveAppIcon(arg1) \
    __inline_Workbench_RemoveAppIcon((arg1), (APTR)WorkbenchBase)

static inline struct AppMenuItem * __inline_Workbench_AddAppMenuItemA(ULONG __arg1, ULONG __arg2, APTR __arg3, struct MsgPort * __arg4, struct TagItem * __arg5, APTR __WorkbenchBase)
{
    return AROS_LC5(struct AppMenuItem *, AddAppMenuItemA,
        AROS_LCA(ULONG,(__arg1),D0),
        AROS_LCA(ULONG,(__arg2),D1),
        AROS_LCA(APTR,(__arg3),A0),
        AROS_LCA(struct MsgPort *,(__arg4),A1),
        AROS_LCA(struct TagItem *,(__arg5),A3),
        struct Library *, (__WorkbenchBase), 12, Workbench    );
}

#define AddAppMenuItemA(arg1, arg2, arg3, arg4, arg5) \
    __inline_Workbench_AddAppMenuItemA((arg1), (arg2), (arg3), (arg4), (arg5), (APTR)WorkbenchBase)

#if !defined(NO_INLINE_STDARG) && !defined(WORKBENCH_NO_INLINE_STDARG)
#define AddAppMenuItem(arg1, arg2, arg3, arg4, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    AddAppMenuItemA((arg1), (arg2), (arg3), (arg4), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

static inline BOOL __inline_Workbench_RemoveAppMenuItem(struct AppMenuItem * __arg1, APTR __WorkbenchBase)
{
    return AROS_LC1(BOOL, RemoveAppMenuItem,
        AROS_LCA(struct AppMenuItem *,(__arg1),A0),
        struct Library *, (__WorkbenchBase), 13, Workbench    );
}

#define RemoveAppMenuItem(arg1) \
    __inline_Workbench_RemoveAppMenuItem((arg1), (APTR)WorkbenchBase)

static inline BOOL __inline_Workbench_WBConfig(ULONG __arg1, ULONG __arg2, APTR __WorkbenchBase)
{
    return AROS_LC2(BOOL, WBConfig,
        AROS_LCA(ULONG,(__arg1),D0),
        AROS_LCA(ULONG,(__arg2),D1),
        struct Library *, (__WorkbenchBase), 14, Workbench    );
}

#define WBConfig(arg1, arg2) \
    __inline_Workbench_WBConfig((arg1), (arg2), (APTR)WorkbenchBase)

static inline BOOL __inline_Workbench_WBInfo(BPTR __arg1, CONST_STRPTR __arg2, struct Screen * __arg3, APTR __WorkbenchBase)
{
    return AROS_LC3(BOOL, WBInfo,
        AROS_LCA(BPTR,(__arg1),A0),
        AROS_LCA(CONST_STRPTR,(__arg2),A1),
        AROS_LCA(struct Screen *,(__arg3),A2),
        struct Library *, (__WorkbenchBase), 15, Workbench    );
}

#define WBInfo(arg1, arg2, arg3) \
    __inline_Workbench_WBInfo((arg1), (arg2), (arg3), (APTR)WorkbenchBase)

static inline BOOL __inline_Workbench_OpenWorkbenchObjectA(STRPTR __arg1, struct TagItem * __arg2, APTR __WorkbenchBase)
{
    return AROS_LC2(BOOL, OpenWorkbenchObjectA,
        AROS_LCA(STRPTR,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        struct Library *, (__WorkbenchBase), 16, Workbench    );
}

#define OpenWorkbenchObjectA(arg1, arg2) \
    __inline_Workbench_OpenWorkbenchObjectA((arg1), (arg2), (APTR)WorkbenchBase)

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

static inline BOOL __inline_Workbench_CloseWorkbenchObjectA(STRPTR __arg1, struct TagItem * __arg2, APTR __WorkbenchBase)
{
    return AROS_LC2(BOOL, CloseWorkbenchObjectA,
        AROS_LCA(STRPTR,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        struct Library *, (__WorkbenchBase), 17, Workbench    );
}

#define CloseWorkbenchObjectA(arg1, arg2) \
    __inline_Workbench_CloseWorkbenchObjectA((arg1), (arg2), (APTR)WorkbenchBase)

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

static inline BOOL __inline_Workbench_WorkbenchControlA(STRPTR __arg1, struct TagItem * __arg2, APTR __WorkbenchBase)
{
    return AROS_LC2(BOOL, WorkbenchControlA,
        AROS_LCA(STRPTR,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        struct Library *, (__WorkbenchBase), 18, Workbench    );
}

#define WorkbenchControlA(arg1, arg2) \
    __inline_Workbench_WorkbenchControlA((arg1), (arg2), (APTR)WorkbenchBase)

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

static inline struct AppWindowDropZone * __inline_Workbench_AddAppWindowDropZoneA(struct AppWindow * __arg1, ULONG __arg2, ULONG __arg3, struct TagItem * __arg4, APTR __WorkbenchBase)
{
    return AROS_LC4(struct AppWindowDropZone *, AddAppWindowDropZoneA,
        AROS_LCA(struct AppWindow *,(__arg1),A0),
        AROS_LCA(ULONG,(__arg2),D0),
        AROS_LCA(ULONG,(__arg3),D1),
        AROS_LCA(struct TagItem *,(__arg4),A1),
        struct Library *, (__WorkbenchBase), 19, Workbench    );
}

#define AddAppWindowDropZoneA(arg1, arg2, arg3, arg4) \
    __inline_Workbench_AddAppWindowDropZoneA((arg1), (arg2), (arg3), (arg4), (APTR)WorkbenchBase)

#if !defined(NO_INLINE_STDARG) && !defined(WORKBENCH_NO_INLINE_STDARG)
#define AddAppWindowDropZone(arg1, arg2, arg3, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    AddAppWindowDropZoneA((arg1), (arg2), (arg3), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

static inline BOOL __inline_Workbench_RemoveAppWindowDropZone(struct AppWindow * __arg1, struct AppWindowDropZone * __arg2, APTR __WorkbenchBase)
{
    return AROS_LC2(BOOL, RemoveAppWindowDropZone,
        AROS_LCA(struct AppWindow *,(__arg1),A0),
        AROS_LCA(struct AppWindowDropZone *,(__arg2),A1),
        struct Library *, (__WorkbenchBase), 20, Workbench    );
}

#define RemoveAppWindowDropZone(arg1, arg2) \
    __inline_Workbench_RemoveAppWindowDropZone((arg1), (arg2), (APTR)WorkbenchBase)

static inline BOOL __inline_Workbench_ChangeWorkbenchSelectionA(STRPTR __arg1, struct Hook * __arg2, struct TagItem * __arg3, APTR __WorkbenchBase)
{
    return AROS_LC3(BOOL, ChangeWorkbenchSelectionA,
        AROS_LCA(STRPTR,(__arg1),A0),
        AROS_LCA(struct Hook *,(__arg2),A1),
        AROS_LCA(struct TagItem *,(__arg3),A2),
        struct Library *, (__WorkbenchBase), 21, Workbench    );
}

#define ChangeWorkbenchSelectionA(arg1, arg2, arg3) \
    __inline_Workbench_ChangeWorkbenchSelectionA((arg1), (arg2), (arg3), (APTR)WorkbenchBase)

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

static inline BOOL __inline_Workbench_MakeWorkbenchObjectVisibleA(STRPTR __arg1, struct TagItem * __arg2, APTR __WorkbenchBase)
{
    return AROS_LC2(BOOL, MakeWorkbenchObjectVisibleA,
        AROS_LCA(STRPTR,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        struct Library *, (__WorkbenchBase), 22, Workbench    );
}

#define MakeWorkbenchObjectVisibleA(arg1, arg2) \
    __inline_Workbench_MakeWorkbenchObjectVisibleA((arg1), (arg2), (APTR)WorkbenchBase)

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

static inline BOOL __inline_Workbench_RegisterWorkbench(struct MsgPort * __arg1, APTR __WorkbenchBase)
{
    return AROS_LC1(BOOL, RegisterWorkbench,
        AROS_LCA(struct MsgPort *,(__arg1),A0),
        struct Library *, (__WorkbenchBase), 23, Workbench    );
}

#define RegisterWorkbench(arg1) \
    __inline_Workbench_RegisterWorkbench((arg1), (APTR)WorkbenchBase)

static inline BOOL __inline_Workbench_UnregisterWorkbench(struct MsgPort * __arg1, APTR __WorkbenchBase)
{
    return AROS_LC1(BOOL, UnregisterWorkbench,
        AROS_LCA(struct MsgPort *,(__arg1),A0),
        struct Library *, (__WorkbenchBase), 24, Workbench    );
}

#define UnregisterWorkbench(arg1) \
    __inline_Workbench_UnregisterWorkbench((arg1), (APTR)WorkbenchBase)

static inline BOOL __inline_Workbench_UpdateWorkbenchObjectA(STRPTR __arg1, LONG __arg2, struct TagItem * __arg3, APTR __WorkbenchBase)
{
    return AROS_LC3(BOOL, UpdateWorkbenchObjectA,
        AROS_LCA(STRPTR,(__arg1),A0),
        AROS_LCA(LONG,(__arg2),D1),
        AROS_LCA(struct TagItem *,(__arg3),A1),
        struct Library *, (__WorkbenchBase), 25, Workbench    );
}

#define UpdateWorkbenchObjectA(arg1, arg2, arg3) \
    __inline_Workbench_UpdateWorkbenchObjectA((arg1), (arg2), (arg3), (APTR)WorkbenchBase)

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

static inline BOOL __inline_Workbench_SendAppWindowMessage(struct Window * __arg1, ULONG __arg2, char ** __arg3, UWORD __arg4, WORD __arg5, WORD __arg6, ULONG __arg7, ULONG __arg8, APTR __WorkbenchBase)
{
    return AROS_LC8(BOOL, SendAppWindowMessage,
        AROS_LCA(struct Window *,(__arg1),A0),
        AROS_LCA(ULONG,(__arg2),D0),
        AROS_LCA(char **,(__arg3),A1),
        AROS_LCA(UWORD,(__arg4),D1),
        AROS_LCA(WORD,(__arg5),D2),
        AROS_LCA(WORD,(__arg6),D3),
        AROS_LCA(ULONG,(__arg7),D4),
        AROS_LCA(ULONG,(__arg8),D5),
        struct Library *, (__WorkbenchBase), 26, Workbench    );
}

#define SendAppWindowMessage(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
    __inline_Workbench_SendAppWindowMessage((arg1), (arg2), (arg3), (arg4), (arg5), (arg6), (arg7), (arg8), (APTR)WorkbenchBase)

static inline struct DiskObject * __inline_Workbench_GetNextAppIcon(struct DiskObject * __arg1, char* __arg2, APTR __WorkbenchBase)
{
    return AROS_LC2(struct DiskObject *, GetNextAppIcon,
        AROS_LCA(struct DiskObject *,(__arg1),A0),
        AROS_LCA(char*,(__arg2),A1),
        struct Library *, (__WorkbenchBase), 27, Workbench    );
}

#define GetNextAppIcon(arg1, arg2) \
    __inline_Workbench_GetNextAppIcon((arg1), (arg2), (APTR)WorkbenchBase)

#endif /* INLINE_WORKBENCH_H*/
