#ifndef INLINE_NVDISK_H
#define INLINE_NVDISK_H

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

/*
    Desc: Inline function for nvdisk
*/

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


static inline APTR __inline_NVDisk_ReadData(STRPTR __arg1, STRPTR __arg2, APTR __nvdBase)
{
    return AROS_LC2(APTR, ReadData,
        AROS_LCA(STRPTR,(__arg1),A0),
        AROS_LCA(STRPTR,(__arg2),A1),
        struct Library *, (__nvdBase), 5, NVDisk    );
}

#define ReadData(arg1, arg2) \
    __inline_NVDisk_ReadData((arg1), (arg2), (APTR)nvdBase)

static inline LONG __inline_NVDisk_WriteData(STRPTR __arg1, STRPTR __arg2, APTR __arg3, LONG __arg4, APTR __nvdBase)
{
    return AROS_LC4(LONG, WriteData,
        AROS_LCA(STRPTR,(__arg1),A0),
        AROS_LCA(STRPTR,(__arg2),A1),
        AROS_LCA(APTR,(__arg3),A2),
        AROS_LCA(LONG,(__arg4),A3),
        struct Library *, (__nvdBase), 6, NVDisk    );
}

#define WriteData(arg1, arg2, arg3, arg4) \
    __inline_NVDisk_WriteData((arg1), (arg2), (arg3), (arg4), (APTR)nvdBase)

static inline BOOL __inline_NVDisk_DeleteData(STRPTR __arg1, STRPTR __arg2, APTR __nvdBase)
{
    return AROS_LC2(BOOL, DeleteData,
        AROS_LCA(STRPTR,(__arg1),A0),
        AROS_LCA(STRPTR,(__arg2),A1),
        struct Library *, (__nvdBase), 7, NVDisk    );
}

#define DeleteData(arg1, arg2) \
    __inline_NVDisk_DeleteData((arg1), (arg2), (APTR)nvdBase)

static inline BOOL __inline_NVDisk_MemInfo(struct NVInfo * __arg1, APTR __nvdBase)
{
    return AROS_LC1(BOOL, MemInfo,
        AROS_LCA(struct NVInfo *,(__arg1),A0),
        struct Library *, (__nvdBase), 8, NVDisk    );
}

#define MemInfo(arg1) \
    __inline_NVDisk_MemInfo((arg1), (APTR)nvdBase)

static inline BOOL __inline_NVDisk_SetProtection(STRPTR __arg1, STRPTR __arg2, LONG __arg3, APTR __nvdBase)
{
    return AROS_LC3(BOOL, SetProtection,
        AROS_LCA(STRPTR,(__arg1),A0),
        AROS_LCA(STRPTR,(__arg2),A1),
        AROS_LCA(LONG,(__arg3),D0),
        struct Library *, (__nvdBase), 9, NVDisk    );
}

#define SetProtection(arg1, arg2, arg3) \
    __inline_NVDisk_SetProtection((arg1), (arg2), (arg3), (APTR)nvdBase)

static inline struct MinList * __inline_NVDisk_GetItemList(STRPTR __arg1, APTR __nvdBase)
{
    return AROS_LC1(struct MinList *, GetItemList,
        AROS_LCA(STRPTR,(__arg1),A0),
        struct Library *, (__nvdBase), 10, NVDisk    );
}

#define GetItemList(arg1) \
    __inline_NVDisk_GetItemList((arg1), (APTR)nvdBase)

#endif /* INLINE_NVDISK_H*/
