1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: FsSample.h 4 5 Copyright (C)2009-2012 Nintendo Co., Ltd. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev: 46365 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_SAMPLEDEMOS_FS_FSSAMPLE_H_ 17 #define NN_SAMPLEDEMOS_FS_FSSAMPLE_H_ 18 19 #include <nn.h> 20 #include <nn/fs.h> 21 #include <nn/err.h> 22 23 24 // Creates application-specific OutOfMemory error 25 NN_DEFINE_RESULT_CONST( \ 26 ResultAppOutOfMemory, \ 27 nn::Result::LEVEL_PERMANENT, nn::Result::SUMMARY_OUT_OF_RESOURCE, nn::Result::MODULE_APPLICATION, nn::Result::DESCRIPTION_OUT_OF_MEMORY); 28 29 void FsSampleInitialize(); 30 void FsSampleFinalize(); 31 32 void* FsSampleAllocateMemory(size_t size); 33 void FsSampleFreeMemory(void* p); 34 35 36 #endif // NN_SAMPLEDEMOS_FS_FSSAMPLE_H_ 37 38