1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     hio_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: 46347 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_HIO_CTR_HIO_API_H_
17 #define NN_HIO_CTR_HIO_API_H_
18 #ifdef  NN_SWITCH_ENABLE_HOST_IO
19 
20 /* Please see man pages for details
21 
22 
23 */
24 
25 #include <nn/types.h>
26 #include <nn/Result.h>
27 
28 namespace nn {
29 namespace hio {
30 namespace CTR {
31 
32 //
33 const size_t WORKMEMORY_SIZE    = (80 * 1024 + 32);
34 
35 //
36 const size_t MAX_CHANNEL_NUM    = 12;
37 
38 /* Please see man pages for details
39 
40 
41 
42 */
43 
44 /* Please see man pages for details
45 
46 
47 
48 
49 
50 
51 */
52 Result Initialize(void* pDeviceMemory);
53 
54 
55 /* Please see man pages for details
56 
57 
58 */
59 Result Finalize();
60 
61 /*
62 
63 */
64 
65 /* Please see man pages for details
66 
67 
68 
69 */
70 Result GetHioDaemonStatus(bool* pIsRunning);
71 
72 /* Please see man pages for details
73 
74 
75 */
76 s32 GetVersion();
77 
78 /* Please see man pages for details
79 
80 
81 
82 
83 
84 
85 
86 
87 
88 */
89 Result DeleteFile(const char* path);
90 
91 /* Please see man pages for details
92 
93 
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 */
104 Result DeleteFile(const wchar_t* path);
105 
106 /* Please see man pages for details
107 
108 
109 
110 
111 
112 
113 
114 
115 
116 
117 
118 */
119 Result DeleteDirectory(const char* path);
120 
121 /* Please see man pages for details
122 
123 
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 */
135 Result DeleteDirectory(const wchar_t* path);
136 
137 /* Please see man pages for details
138 
139 
140 
141 
142 
143 
144 
145 
146 
147 
148 */
149 Result CreateDirectory(const char* path);
150 
151 /* Please see man pages for details
152 
153 
154 
155 
156 
157 
158 
159 
160 
161 
162 
163 */
164 Result CreateDirectory(const wchar_t* path);
165 
166 
167 /* Please see man pages for details
168 
169 
170 
171 
172 
173 
174 
175 
176 
177 
178 
179 */
180 Result Rename(const char* newName, const char* oldName);
181 
182 
183 /* Please see man pages for details
184 
185 
186 
187 
188 
189 
190 
191 
192 
193 
194 
195 
196 */
197 Result Rename(const wchar_t* newName, const wchar_t* oldName);
198 
199 /* Please see man pages for details
200 
201 
202 
203 
204 
205 
206 
207 
208 
209 
210 
211 
212 */
213 Result GetCurrentDirectory(s32* pLength, char* buf, s32 length);
214 
215 
216 /* Please see man pages for details
217 
218 
219 
220 
221 
222 
223 
224 
225 
226 
227 
228 
229 
230 */
231 Result GetCurrentDirectory(s32* pLength, wchar_t* buf, s32 length);
232 
233 /* Please see man pages for details
234 
235 
236 
237 
238 
239 
240 
241 
242 
243 
244 
245 */
246 s32 GetCurrentDirectory(char* buf, s32 length);
247 
248 /* Please see man pages for details
249 
250 
251 
252 
253 
254 
255 
256 
257 
258 
259 
260 
261 */
262 s32 GetCurrentDirectory(wchar_t* buf, s32 length);
263 
264 /* Please see man pages for details
265 
266 
267 
268 
269 
270 
271 
272 
273 
274 
275 */
276 Result SetCurrentDirectory(const char* path);
277 
278 /* Please see man pages for details
279 
280 
281 
282 
283 
284 
285 
286 
287 
288 
289 
290 */
291 Result SetCurrentDirectory(const wchar_t* path);
292 
293 /* Please see man pages for details
294 
295 
296 
297 
298 
299 
300 
301 
302 
303 
304 
305 
306 
307 
308 */
309 Result GetEnvironmentVariable(s32* pLength, char* buf, s32 length, const char* name);
310 
311 /* Please see man pages for details
312 
313 
314 
315 
316 
317 
318 
319 
320 
321 
322 
323 
324 
325 */
326 s32 GetEnvironmentVariable(char* buf, size_t length, const char* name);
327 
328 
329 
330 
331 /* Please see man pages for details
332 
333 
334 
335 
336 
337 
338 
339 
340 
341 
342 
343 
344 
345 
346 
347 */
348 Result GetEnvironmentVariable(s32* pLength, wchar_t* buf, s32 length, const wchar_t* name);
349 
350 
351 /* Please see man pages for details
352 
353 
354 
355 
356 
357 
358 
359 
360 
361 
362 
363 
364 
365 
366 */
367 s32 GetEnvironmentVariable(wchar_t* buf, s32 length, const wchar_t* name);
368 
369 
370 
371 
372 }
373 }
374 }
375 
376 
377 #endif  // ifdef NN_SWITCH_ENABLE_HOST_IO
378 #endif  // ifndef NN_HIO_CTR_HIO_API_H_
379