1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: applet_Result.h 4 5 Copyright (C)2010 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: 20374 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_APPLET_CTR_APPLET_RESULT_H_ 17 #define NN_APPLET_CTR_APPLET_RESULT_H_ 18 19 #include <nn/Result.h> 20 21 /*! @namespace nn::applet 22 @brief APPLET の名前空間 23 */ 24 /*! 25 @namespace nn::applet::CTR 26 @brief CTR の APPLET の名前空間です。 27 <BR>("::CTR" の部分は省略して記述可能です。) 28 */ 29 30 namespace nn { 31 namespace applet { 32 namespace CTR { 33 34 using namespace nn; 35 36 /*! 37 @brief @ref nn::Result の Description のうちモジュール依存の値です。 38 */ 39 enum ResultDescription 40 { 41 DESCRIPTION_APPLET_NO_AREA_TO_REGISTER = 1, ///< 登録するためのテーブルに空きがない 42 DESCRIPTION_APPLET_PARAMETER_BUFFER_NOT_EMPTY, ///< パラメータ領域が空でない 43 DESCRIPTION_APPLET_CALLER_NOT_FOUND, ///< アプレットを呼び出したプロセスがない 44 DESCRIPTION_APPLET_NOT_ALLOWED ///< アクセスが許可されていない 45 }; 46 // 0 は SUCCESS に予約されているので 1 から始まります。 47 48 NN_DEFINE_RESULT_CONST( 49 ResultNoData, 50 Result::LEVEL_STATUS, Result::SUMMARY_INVALID_STATE, Result::MODULE_NN_APPLET, Result::DESCRIPTION_NO_DATA ); 51 52 53 54 } // namespace CTR 55 } // namespace applet 56 } // namespace nn 57 58 #define NN_APPLET_RESULT_NO_DATA nn::applet::CTR::ResultNoData() 59 60 61 62 #endif //NN_APPLET_CTR_APPLET_RESULT_H_ 63