1 /*---------------------------------------------------------------------------* 2 3 Copyright (C) 2012 Nintendo. All rights reserved. 4 5 These coded instructions, statements, and computer programs contain 6 proprietary information of Nintendo of America Inc. and/or Nintendo 7 Company Ltd., and are protected by Federal copyright law. They may 8 not be disclosed to third parties or copied or duplicated in any form, 9 in whole or in part, without the prior written consent of Nintendo. 10 11 *---------------------------------------------------------------------------*/ 12 13 #ifndef NN_AOC_ERRORS_H_ 14 #define NN_AOC_ERRORS_H_ 15 16 #include <types.h> 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 /*! 23 @addtogroup nn_aoc_api 24 @{ 25 */ 26 27 /*! 28 @brief Status codes for indicating the results of running the AOC functions. 29 */ 30 typedef enum{ 31 AOC_STATUS_OK = 0, //!< Indicates that the process ended normally. 32 AOC_STATUS_INVALID_PARAM = -1, //!< Indicates that there is an invalid parameter. 33 34 AOC_STATUS_NOT_INITIALIZED = -2, //!< Not initialized. 35 AOC_STATUS_ALREADY_INITIALIZED = -3, //!< Already initialized. 36 AOC_STATUS_TITLE_STILL_OPENED = -4, //!< One or more titles are still open. 37 38 AOC_STATUS_NOT_OPENED = -8, //!< Not opened. 39 AOC_STATUS_ALREADY_OPENED = -9, //!< Already opened. 40 AOC_STATUS_CLOSE_FAILURE = -10, //!< Failed to close. 41 AOC_STATUS_EXCEED_LIMIT = -11, //!< Reached the upper limit on the number of titles that can be opened. 42 43 AOC_STATUS_NOT_FOUND_TITLE = -16, //!< Indicates that the downloadable content title does not exist. 44 AOC_STATUS_NOT_FOUND_CONTENT = -17, //!< Indicates that the downloadable content does not exist. 45 AOC_STATUS_ACCESS_DENIED = -18, //!< Indicates that access to the downloadable content title is not permitted. 46 47 48 /* The following errors do not normally occur. 49 Get the error code using the <tt>AOC_GetErrorCode</tt> function and display it in the error viewer. 50 */ 51 AOC_STATUS_ALREADY_LOCKED = -768, //!< The title is locked. 52 AOC_STATUS_NOT_LOCKED = -769, //!< The title is not yet locked. 53 AOC_STATUS_INTERNAL_ERROR = -1024, //!< Indicates that an internal error occurred. This error is also returned when use of AOC is not declared in the Application Configuration Tool. 54 55 } AOCStatus; 56 57 /*! 58 @} 59 */ 60 61 #ifdef __cplusplus 62 } 63 #endif 64 65 #endif // NN_AOC_ERRORS_H_ 66