/*---------------------------------------------------------------------------* Project: TwlSDK - NA - include File: verdata.h Copyright 2007-2008 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Date:: 2008-09-17#$ $Rev: 8556 $ $Author: okubata_ryoma $ *---------------------------------------------------------------------------*/ #ifndef TWL_NA_ARM9_VERDATA_H_ #define TWL_NA_ARM9_VERDATA_H_ #include #include #include #ifdef __cplusplus extern "C" { #endif /*===========================================================================*/ #define NA_VERSION_DATA_WORK_SIZE (40*1024) BOOL NAi_LoadVersionDataArchive(void* pWork, u32 workSize); BOOL NAi_UnloadVersionDataArchive(void); s32 NAi_DecodeVersionData(const void* src, u32 srcSize, void* dst, u32 dstSize); static inline BOOL NA_LoadVersionDataArchive(void* pWork, u32 workSize) { return OS_IsRunOnTwl() ? NAi_LoadVersionDataArchive(pWork, workSize): FALSE; } static inline BOOL NA_UnloadVersionDataArchive(void) { return OS_IsRunOnTwl() ? NAi_UnloadVersionDataArchive(): FALSE; } static inline s32 NA_DecodeVersionData(const void* src, u32 srcSize, void* dst, u32 dstSize) { return OS_IsRunOnTwl() ? NAi_DecodeVersionData(src, srcSize, dst, dstSize): -4; } /*===========================================================================*/ #ifdef __cplusplus } /* extern "C" */ #endif #endif /* TWL_NA_ARM9_VERDATA_H_ */ /*---------------------------------------------------------------------------* End of file *---------------------------------------------------------------------------*/