1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: fnd_Result.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: 46347 $ 14 *---------------------------------------------------------------------------*/ 15 16 /* Please see man pages for details 17 18 19 20 */ 21 22 #ifndef NN_FND_FND_RESULT_H_ 23 #define NN_FND_FND_RESULT_H_ 24 25 #ifdef __cplusplus 26 27 #include <nn/Result.h> 28 29 namespace nn { namespace fnd { 30 31 /* 32 33 */ 34 enum Description 35 { 36 DESCRIPTION_INVALID_NODE = 1, // 37 DESCRIPTION_ALREADY_LISTED = 2, // 38 DESCRIPTION_OUT_OF_RANGE = 3, // 39 DESCRIPTION_OBSOLETE_RESULT = 1023 // 40 }; 41 42 NN_DEFINE_RESULT_FUNC_LM(MakePermanentResult, Result::LEVEL_PERMANENT, Result::MODULE_NN_FND); 43 44 NN_DEFINE_RESULT_CONST( 45 MakeResultInvalidNode, 46 Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_FND, nn::fnd::DESCRIPTION_INVALID_NODE 47 ); 48 49 NN_DEFINE_RESULT_CONST( 50 MakeResultAlreadyListed, 51 Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_FND, nn::fnd::DESCRIPTION_ALREADY_LISTED 52 ); 53 54 NN_DEFINE_RESULT_CONST( 55 MakeResultInvalidAddress, 56 Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_FND, nn::Result::DESCRIPTION_INVALID_ADDRESS 57 ); 58 59 NN_DEFINE_RESULT_CONST( 60 ResultOutOfRange, 61 Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_FND, nn::fnd::DESCRIPTION_OUT_OF_RANGE 62 ); 63 }} 64 65 #endif // __cplusplus 66 67 #endif /* NN_FND_FND_RESULT_H_ */ 68