1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: cfg_Api.h 4 5 Copyright (C)2009 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: 35981 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_CFG_CTR_CFG_API_H_ 17 #define NN_CFG_CTR_CFG_API_H_ 18 19 /* Please see man pages for details 20 21 22 23 */ 24 25 #include <nn/cfg/CTR/cfg_UserInfo.h> 26 #include <nn/cfg/CTR/cfg_LanguageCode.h> 27 #include <nn/cfg/CTR/cfg_CountryCode.h> 28 #include <nn/cfg/CTR/cfg_RegionCode.h> 29 #include <nn/cfg/CTR/cfg_Sound.h> 30 #include <nn/Result.h> 31 32 #ifdef __cplusplus 33 34 namespace nn { 35 namespace cfg { 36 namespace CTR { 37 38 /* Please see man pages for details 39 40 41 42 */ 43 void Initialize(void); 44 45 /* Please see man pages for details 46 47 48 49 */ 50 void Finalize(void); 51 52 /* Please see man pages for details 53 54 55 56 57 58 59 60 */ 61 void GetUserName(UserName* pUserName); 62 63 /* Please see man pages for details 64 65 66 67 68 69 */ 70 void GetBirthday(Birthday* pBirthday); 71 72 /* Please see man pages for details 73 74 75 76 */ 77 CfgCountryCode GetCountry(void); 78 79 /* Please see man pages for details 80 81 82 83 84 85 86 87 */ 88 const char* GetCountryCodeA2(CfgCountryCode cfgCountryCode); 89 90 /* Please see man pages for details 91 92 93 94 */ 95 CfgLanguageCode GetLanguage(void); 96 97 /* Please see man pages for details 98 99 100 101 102 103 104 105 */ 106 const char* GetLanguageCodeA2(CfgLanguageCode cfgLanguageCode); 107 108 /* Please see man pages for details 109 110 111 112 113 114 115 116 */ 117 void GetSimpleAddress(SimpleAddress* pSimpleAddress); 118 119 /* Please see man pages for details 120 121 122 123 */ 124 CfgRegionCode GetRegion(void); 125 126 /* Please see man pages for details 127 128 129 130 131 132 133 134 */ 135 const char* GetRegionCodeA3(CfgRegionCode cfgRegionCode); 136 137 /* Please see man pages for details 138 139 140 141 */ 142 CfgSoundOutputMode GetSoundOutputMode(void); 143 144 /* Please see man pages for details 145 146 147 148 149 150 151 152 153 */ 154 nn::fnd::TimeSpan GetUserTimeOffset(); 155 156 157 /* Please see man pages for details 158 159 */ 160 const u8 CFG_PARENTAL_CONTROL_PIN_CODE_LENGTH = 4; 161 162 /* Please see man pages for details 163 164 165 166 167 168 169 */ 170 void GetParentalControlPinCode(char pinCode[CFG_PARENTAL_CONTROL_PIN_CODE_LENGTH]); 171 172 /* Please see man pages for details 173 174 175 176 177 178 */ 179 bool CheckParentalControlPinCode(const char *input); 180 181 /* Please see man pages for details 182 183 184 185 */ 186 bool IsRestrictPhotoExchange(void); 187 188 /* Please see man pages for details 189 190 191 192 */ 193 bool IsRestrictAddFriend(void); 194 195 /* Please see man pages for details 196 197 198 199 */ 200 bool IsRestrictP2pInternet(void); 201 202 /* Please see man pages for details 203 204 205 206 */ 207 bool IsRestrictP2pCec(void); 208 209 /* Please see man pages for details 210 211 212 213 214 215 216 217 */ 218 bool IsAgreedEula(void); 219 220 /* Please see man pages for details 221 222 223 224 225 226 227 228 229 */ 230 bit64 GetTransferableId(bit32 uniqueId); 231 232 } // namespace CTR { 233 } // namespace cfg { 234 } // namespace nn { 235 236 #endif 237 238 #endif // #ifndef NN_CFG_CTR_CFG_API_H_ 239