1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: fs_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_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 bool IsInitialized(); 36 37 // 38 39 //---------------------------------------- 40 // 41 // 42 /* Please see man pages for details 43 44 45 46 47 48 49 50 51 52 */ 53 Result SetPriority( s32 priority ); 54 55 /* Please see man pages for details 56 57 58 59 60 61 62 63 64 65 */ 66 Result GetPriority( s32 *pOut ); 67 // 68 69 //---------------------------------------- 70 // 71 // 72 73 /* Please see man pages for details 74 75 76 77 78 79 */ 80 void RegisterSdmcInsertedEvent(nn::os::LightEvent* p); 81 82 /* Please see man pages for details 83 84 */ 85 void UnregisterSdmcInsertedEvent(); 86 87 /* Please see man pages for details 88 89 90 91 */ 92 void RegisterSdmcEjectedEvent(nn::os::LightEvent* p); 93 94 /* Please see man pages for details 95 96 */ 97 void UnregisterSdmcEjectedEvent(); 98 99 /* Please see man pages for details 100 101 102 103 104 105 106 107 108 */ 109 bool IsSdmcInserted(); 110 111 /* Please see man pages for details 112 113 114 115 116 117 */ 118 bool IsSdmcWritable(); 119 120 /* Please see man pages for details 121 122 123 124 125 126 127 128 129 130 131 */ 132 133 Result GetSdmcSize( s64* pTotal, s64* pFree ); 134 135 /* Please see man pages for details 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 */ 156 Result MountSdmcWriteOnly(const char* archiveName = "sdmcwo:"); 157 158 // 159 160 } 161 } 162 163 #endif /* NN_FS_FS_API_H_ */ 164