1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     hio_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: 37878 $
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 Result DeleteFile(const char* path);
88 
89 /* Please see man pages for details
90 
91 
92 
93 
94 
95 
96 
97 
98 */
99 Result DeleteFile(const wchar_t* path);
100 
101 /* Please see man pages for details
102 
103 
104 
105 
106 
107 
108 
109 
110 
111 */
112 Result DeleteDirectory(const wchar_t* path);
113 
114 /* Please see man pages for details
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 */
125 Result DeleteDirectory(const char* path);
126 
127 /* Please see man pages for details
128 
129 
130 
131 
132 
133 
134 
135 
136 */
137 Result CreateDirectory(const char* path);
138 
139 /* Please see man pages for details
140 
141 
142 
143 
144 
145 
146 
147 
148 */
149 Result CreateDirectory(const wchar_t* path);
150 
151 
152 /* Please see man pages for details
153 
154 
155 
156 
157 
158 
159 
160 
161 
162 */
163 Result Rename(const char* newName, const char* oldName);
164 
165 
166 /* Please see man pages for details
167 
168 
169 
170 
171 
172 
173 
174 
175 
176 */
177 Result Rename(const wchar_t* newName, const wchar_t* oldName);
178 
179 /* Please see man pages for details
180 
181 
182 
183 
184 
185 
186 
187 
188 
189 
190 */
191 Result GetCurrentDirectory(s32* pLength, char* buf, s32 length);
192 
193 
194 /* Please see man pages for details
195 
196 
197 
198 
199 
200 
201 
202 
203 
204 
205 */
206 Result GetCurrentDirectory(s32* pLength, wchar_t* buf, s32 length);
207 
208 /* Please see man pages for details
209 
210 
211 
212 
213 
214 
215 
216 
217 
218 */
219 s32 GetCurrentDirectory(char* buf, s32 length);
220 
221 /* Please see man pages for details
222 
223 
224 
225 
226 
227 
228 
229 
230 
231 */
232 s32 GetCurrentDirectory(wchar_t* buf, s32 length);
233 
234 /* Please see man pages for details
235 
236 
237 
238 
239 
240 
241 
242 
243 */
244 Result SetCurrentDirectory(const char* path);
245 
246 /* Please see man pages for details
247 
248 
249 
250 
251 
252 
253 
254 
255 */
256 Result SetCurrentDirectory(const wchar_t* path);
257 
258 /* Please see man pages for details
259 
260 
261 
262 
263 
264 
265 
266 
267 
268 
269 
270 */
271 Result GetEnvironmentVariable(s32* pLength, char* buf, s32 length, const char* name);
272 
273 /* Please see man pages for details
274 
275 
276 
277 
278 
279 
280 
281 
282 
283 
284 */
285 s32 GetEnvironmentVariable(char* buf, size_t length, const char* name);
286 
287 
288 
289 
290 /* Please see man pages for details
291 
292 
293 
294 
295 
296 
297 
298 
299 
300 
301 
302 */
303 Result GetEnvironmentVariable(s32* pLength, wchar_t* buf, s32 length, const wchar_t* name);
304 
305 
306 /* Please see man pages for details
307 
308 
309 
310 
311 
312 
313 
314 
315 
316 
317 */
318 s32 GetEnvironmentVariable(wchar_t* buf, s32 length, const wchar_t* name);
319 
320 
321 
322 
323 }
324 }
325 }
326 
327 
328 #endif  // ifdef NN_SWITCH_ENABLE_HOST_IO
329 #endif  // ifndef NN_HIO_CTR_HIO_API_H_
330