1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     cfg_Api.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: 51350 $
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/cfg/CTR/cfg_Coppacs.h>
31 #include <nn/Result.h>
32 
33 #ifdef __cplusplus
34 
35 namespace nn {
36 namespace cfg {
37 namespace CTR {
38 
39 /* Please see man pages for details
40 
41 
42 
43 
44 
45 
46 
47 */
48 void Initialize(void);
49 
50 /* Please see man pages for details
51 
52 
53 
54 
55 
56 
57 
58 
59 */
60 void Finalize(void);
61 
62 /* Please see man pages for details
63 
64 
65 
66 
67 
68 
69 
70 */
71 void GetUserName(UserName* pUserName);
72 
73 /* Please see man pages for details
74 
75 
76 
77 
78 
79 */
80 void GetBirthday(Birthday* pBirthday);
81 
82 /* Please see man pages for details
83 
84 
85 
86 */
87 CfgCountryCode GetCountry(void);
88 
89 /* Please see man pages for details
90 
91 
92 
93 
94 
95 
96 
97 */
98 const char* GetCountryCodeA2(CfgCountryCode cfgCountryCode);
99 
100 /* Please see man pages for details
101 
102 
103 
104 */
105 CfgLanguageCode GetLanguage(void);
106 
107 /* Please see man pages for details
108 
109 
110 
111 
112 
113 
114 
115 */
116 const char* GetLanguageCodeA2(CfgLanguageCode cfgLanguageCode);
117 
118 /* Please see man pages for details
119 
120 
121 
122 
123 
124 
125 
126 */
127 void GetSimpleAddress(SimpleAddress* pSimpleAddress);
128 
129 /* Please see man pages for details
130 
131 
132 
133 
134 
135 
136 
137 
138 
139 
140 
141 
142 
143 
144 
145 
146 
147 
148 
149 
150 
151 
152 
153 
154 
155 
156 
157 
158 
159 
160 
161 
162 */
163 nn::Result GetSimpleAddress(SimpleAddress* pSimpleAddress, SimpleAddressId simpleAddressId, uptr pWorkMemory, u32 workMemorySize);
164 
165 /* Please see man pages for details
166 
167 
168 
169 */
170 void GetSimpleAddressId(SimpleAddressId* pSimpleAddressId);
171 
172 /* Please see man pages for details
173 
174 
175 
176 */
177 CfgRegionCode GetRegion(void);
178 
179 /* Please see man pages for details
180 
181 
182 
183 
184 
185 
186 
187 */
188 const char* GetRegionCodeA3(CfgRegionCode cfgRegionCode);
189 
190 /* Please see man pages for details
191 
192 
193 
194 */
195 CfgSoundOutputMode GetSoundOutputMode(void);
196 
197 /* Please see man pages for details
198 
199 
200 
201 
202 
203 
204 
205 
206 
207 
208 
209 
210 */
211 nn::fnd::TimeSpan GetUserTimeOffset();
212 
213 /* Please see man pages for details
214 
215 
216 
217 
218 
219 
220 */
221 bool IsCoppacsSupported();
222 
223 /* Please see man pages for details
224 
225 
226 
227 
228 
229 
230 
231 
232 
233 
234 */
235 CfgCoppacsRestriction GetCoppacsRestriction(void);
236 
237 /* Please see man pages for details
238 
239 */
240 const u8 CFG_PARENTAL_CONTROL_PIN_CODE_LENGTH = 4;
241 
242 /* Please see man pages for details
243 
244 
245 
246 
247 
248 */
249 bool CheckParentalControlPinCode(const char *input);
250 
251 /* Please see man pages for details
252 
253 
254 
255 */
256 bool IsRestrictPhotoExchange(void);
257 
258 /* Please see man pages for details
259 
260 
261 
262 */
263 bool IsRestrictAddFriend(void);
264 
265 /* Please see man pages for details
266 
267 
268 
269 */
270 bool IsRestrictP2pInternet(void);
271 
272 /* Please see man pages for details
273 
274 
275 
276 */
277 bool IsRestrictP2pCec(void);
278 
279 /* Please see man pages for details
280 
281 
282 
283 */
284 bool IsRestrictShopUse(void);
285 
286 /* Please see man pages for details
287 
288 
289 
290 
291 
292 
293 
294 */
295 bool IsAgreedEula(void);
296 
297 /* Please see man pages for details
298 
299 
300 
301 
302 
303 
304 
305 
306 
307 
308 
309 
310 */
311 bit64 GetTransferableId(bit32 uniqueId);
312 
313 } // namespace CTR {
314 } // namespace cfg {
315 } // namespace nn {
316 
317 #endif
318 
319 #endif //   #ifndef NN_CFG_CTR_CFG_API_H_
320