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: 49830 $
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 nn::fnd::TimeSpan GetUserTimeOffset();
208 
209 /* Please see man pages for details
210 
211 
212 
213 
214 
215 
216 */
217 bool IsCoppacsSupported();
218 
219 /* Please see man pages for details
220 
221 
222 
223 
224 
225 
226 
227 
228 
229 
230 */
231 CfgCoppacsRestriction GetCoppacsRestriction(void);
232 
233 /* Please see man pages for details
234 
235 */
236 const u8 CFG_PARENTAL_CONTROL_PIN_CODE_LENGTH = 4;
237 
238 /* Please see man pages for details
239 
240 
241 
242 
243 
244 */
245 bool CheckParentalControlPinCode(const char *input);
246 
247 /* Please see man pages for details
248 
249 
250 
251 */
252 bool IsRestrictPhotoExchange(void);
253 
254 /* Please see man pages for details
255 
256 
257 
258 */
259 bool IsRestrictAddFriend(void);
260 
261 /* Please see man pages for details
262 
263 
264 
265 */
266 bool IsRestrictP2pInternet(void);
267 
268 /* Please see man pages for details
269 
270 
271 
272 */
273 bool IsRestrictP2pCec(void);
274 
275 /* Please see man pages for details
276 
277 
278 
279 */
280 bool IsRestrictShopUse(void);
281 
282 /* Please see man pages for details
283 
284 
285 
286 
287 
288 
289 
290 */
291 bool IsAgreedEula(void);
292 
293 /* Please see man pages for details
294 
295 
296 
297 
298 
299 
300 
301 
302 
303 
304 
305 
306 */
307 bit64 GetTransferableId(bit32 uniqueId);
308 
309 } // namespace CTR {
310 } // namespace cfg {
311 } // namespace nn {
312 
313 #endif
314 
315 #endif //   #ifndef NN_CFG_CTR_CFG_API_H_
316