#ifndef INLINE_CONSOLE_H
#define INLINE_CONSOLE_H

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

/*
    Desc: Inline function for console
*/

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


static inline struct InputEvent* __inline_Console_CDInputHandler(struct InputEvent* __arg1, APTR __arg2, APTR __ConsoleDevice)
{
    return AROS_LC2(struct InputEvent*, CDInputHandler,
        AROS_LCA(struct InputEvent*,(__arg1),A0),
        AROS_LCA(APTR,(__arg2),A1),
        struct Device *, (__ConsoleDevice), 7, Console    );
}

#define CDInputHandler(arg1, arg2) \
    __inline_Console_CDInputHandler((arg1), (arg2), (APTR)ConsoleDevice)

static inline LONG __inline_Console_RawKeyConvert(struct InputEvent* __arg1, STRPTR __arg2, LONG __arg3, struct KeyMap* __arg4, APTR __ConsoleDevice)
{
    return AROS_LC4(LONG, RawKeyConvert,
        AROS_LCA(struct InputEvent*,(__arg1),A0),
        AROS_LCA(STRPTR,(__arg2),A1),
        AROS_LCA(LONG,(__arg3),D1),
        AROS_LCA(struct KeyMap*,(__arg4),A2),
        struct Device *, (__ConsoleDevice), 8, Console    );
}

#define RawKeyConvert(arg1, arg2, arg3, arg4) \
    __inline_Console_RawKeyConvert((arg1), (arg2), (arg3), (arg4), (APTR)ConsoleDevice)

static inline LONG __inline_Console_GetConSnip(APTR __ConsoleDevice)
{
    return AROS_LC0(LONG, GetConSnip,
        struct Device *, (__ConsoleDevice), 9, Console    );
}

#define GetConSnip() \
    __inline_Console_GetConSnip((APTR)ConsoleDevice)

static inline LONG __inline_Console_SetConSnip(APTR __arg1, APTR __ConsoleDevice)
{
    return AROS_LC1(LONG, SetConSnip,
        AROS_LCA(APTR,(__arg1),A0),
        struct Device *, (__ConsoleDevice), 10, Console    );
}

#define SetConSnip(arg1) \
    __inline_Console_SetConSnip((arg1), (APTR)ConsoleDevice)

static inline LONG __inline_Console_AddConSnipHook(APTR __arg1, APTR __ConsoleDevice)
{
    return AROS_LC1(LONG, AddConSnipHook,
        AROS_LCA(APTR,(__arg1),A0),
        struct Device *, (__ConsoleDevice), 11, Console    );
}

#define AddConSnipHook(arg1) \
    __inline_Console_AddConSnipHook((arg1), (APTR)ConsoleDevice)

static inline LONG __inline_Console_RemConSnipHook(APTR __arg1, APTR __ConsoleDevice)
{
    return AROS_LC1(LONG, RemConSnipHook,
        AROS_LCA(APTR,(__arg1),A0),
        struct Device *, (__ConsoleDevice), 12, Console    );
}

#define RemConSnipHook(arg1) \
    __inline_Console_RemConSnipHook((arg1), (APTR)ConsoleDevice)

#endif /* INLINE_CONSOLE_H*/
