1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: fs_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: 38552 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_FS_FS_API_H_ 17 #define NN_FS_FS_API_H_ 18 19 #include <nn/Result.h> 20 #include <nn/os.h> 21 22 namespace nn { 23 namespace fs { 24 25 //---------------------------------------- 26 // 27 // 28 29 /* Please see man pages for details 30 31 32 33 */ 34 void Initialize(); 35 void Finalize(); 36 bool IsInitialized(); 37 38 // 39 40 //---------------------------------------- 41 // 42 // 43 44 /* Please see man pages for details 45 46 47 48 49 50 */ 51 void RegisterSdmcInsertedEvent(nn::os::LightEvent* p); 52 53 /* Please see man pages for details 54 55 */ 56 void UnregisterSdmcInsertedEvent(); 57 58 /* Please see man pages for details 59 60 61 62 */ 63 void RegisterSdmcEjectedEvent(nn::os::LightEvent* p); 64 65 /* Please see man pages for details 66 67 */ 68 void UnregisterSdmcEjectedEvent(); 69 70 /* Please see man pages for details 71 72 73 74 75 76 77 78 79 */ 80 bool IsSdmcInserted(); 81 82 /* Please see man pages for details 83 84 85 86 87 88 */ 89 bool IsSdmcWritable(); 90 91 /* Please see man pages for details 92 93 94 95 96 97 98 99 100 101 102 */ 103 104 Result GetSdmcSize( s64* pTotal, s64* pFree ); 105 106 /* Please see man pages for details 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 */ 127 Result MountSdmcWriteOnly(const char* archiveName = "sdmcwo:"); 128 129 // 130 131 } 132 } 133 134 #endif /* NN_FS_FS_API_H_ */ 135