1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: camera_Result.h 4 Copyright (C)2010 Nintendo Co., Ltd. All rights reserved. 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 $Rev: 34294 $ 11 *--------------------------------------------------------------------------- 12 13 14 */ 15 16 #ifndef NN_CAMERA_CAMERA_RESULT_H_ 17 #define NN_CAMERA_CAMERA_RESULT_H_ 18 19 #include <nn/Result.h> 20 21 /* Please see man pages for details 22 23 */ 24 25 26 namespace nn { 27 namespace camera { 28 namespace CTR { 29 30 /* 31 32 */ 33 enum Description 34 { 35 DESCRIPTION_CAMERA_IS_SLEEPING = 1, 36 DESCRIPTION_CAMERA_FATAL_ERROR 37 }; 38 39 /* Please see man pages for details 40 41 42 */ 43 44 /* Please see man pages for details 45 46 47 */ 48 NN_DEFINE_RESULT_CONST( 49 ResultIsSleeping, 50 Result::LEVEL_STATUS, Result::SUMMARY_STATUS_CHANGED, Result::MODULE_NN_CAMERA, DESCRIPTION_CAMERA_IS_SLEEPING 51 ); 52 53 /* Please see man pages for details 54 55 56 */ 57 NN_DEFINE_RESULT_CONST( 58 ResultFatalError, 59 Result::LEVEL_FATAL, Result::SUMMARY_INTERNAL, Result::MODULE_NN_CAMERA, DESCRIPTION_CAMERA_FATAL_ERROR 60 ); 61 62 /* Please see man pages for details 63 64 65 */ 66 NN_DEFINE_RESULT_CONST( 67 ResultAlreadyInitialized, 68 Result::LEVEL_PERMANENT, Result::SUMMARY_NOTHING_HAPPENED, Result::MODULE_NN_CAMERA, Result::DESCRIPTION_ALREADY_INITIALIZED 69 ); 70 71 /* Please see man pages for details 72 73 74 */ 75 NN_DEFINE_RESULT_CONST( 76 ResultUsingOtherProcess, 77 Result::LEVEL_STATUS, Result::SUMMARY_INVALID_STATE, Result::MODULE_NN_CAMERA, Result::DESCRIPTION_ALREADY_INITIALIZED 78 ); 79 80 // For internal use 81 // Indicates that the specified argument was not in the enum value's range. 82 NN_DEFINE_RESULT_CONST( 83 ResultInvalidEnumValue, 84 Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_CAMERA, Result::DESCRIPTION_INVALID_ENUM_VALUE 85 ); 86 87 // For internal use 88 // Indicates that shutter sound failed to play via csnd. 89 // The application will not return a fatal error immediately because the sim layer library for receiving will retry once. 90 NN_DEFINE_RESULT_CONST( 91 ResultBusy, 92 Result::LEVEL_STATUS, Result::SUMMARY_INTERNAL, Result::MODULE_NN_CAMERA, Result::DESCRIPTION_BUSY 93 ); 94 95 // For internal use 96 // Indicates that an unauthorized function was called for the connection port. 97 NN_DEFINE_RESULT_CONST( 98 ResultNotAuthorized, 99 Result::LEVEL_PERMANENT, Result::SUMMARY_INVALID_STATE, Result::MODULE_NN_CAMERA, Result::DESCRIPTION_NOT_AUTHORIZED 100 ); 101 102 // For internal use 103 // Indicates that data retrieval size specified to GetLatestVsyncTiming was bigger than the maximum storage size. 104 NN_DEFINE_RESULT_CONST( 105 ResultOutOfRange, 106 Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_CAMERA, Result::DESCRIPTION_OUT_OF_RANGE 107 ); 108 109 // For internal use 110 // Indicates that retry processing exceeded the specified number. 111 NN_DEFINE_RESULT_CONST( 112 ResultTimeout, 113 Result::LEVEL_FATAL, Result::SUMMARY_INTERNAL, Result::MODULE_NN_CAMERA, Result::DESCRIPTION_TIMEOUT 114 ); 115 116 // For internal use 117 // Indicates that it was not initialized in the process. 118 NN_DEFINE_RESULT_CONST( 119 ResultNotInitialized, 120 Result::LEVEL_PERMANENT, Result::SUMMARY_NOTHING_HAPPENED, Result::MODULE_NN_CAMERA, Result::DESCRIPTION_NOT_INITIALIZED 121 ); 122 123 } 124 } 125 } 126 127 #endif /* NN_CAMERA_CAMERA_RESULT_H_ */ 128