1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: fs_IpcDirectory.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: 21127 $ 14 *---------------------------------------------------------------------------*/ 15 16 // 17 // このファイルを編集しないでください。 18 // このファイルは自動生成されます。 19 // 20 21 #ifndef NN_FS_FS_IPCDIRECTORY_H_ 22 #define NN_FS_FS_IPCDIRECTORY_H_ 23 24 #include <nn/Handle.h> 25 #include <nn/Result.h> 26 #include <nn/types.h> 27 #include <nn/fs/fs_Parameters.h> 28 29 30 31 namespace nn { 32 namespace fs { 33 namespace ipc { 34 35 class Directory 36 { 37 public: 38 enum Tag 39 { 40 TAG_IPC_ERROR, 41 TAG_READ, 42 TAG_CLOSE, 43 TAG_IPC_END 44 }; 45 46 private: 47 Handle m_Session; 48 49 public: Directory(Handle session)50 Directory(Handle session) : m_Session(session) {} 51 52 public: 53 nn::Result Read( s32* pNumEntriesOut, nn::fs::DirectoryEntry pEntries[], s32 numEntries ); 54 nn::Result Close(); 55 }; 56 57 } // end of namespace ipc 58 } // end of namespace fs 59 } // end of namespace nn 60 61 62 63 #endif // ifndef NN_FS_FS_IPCDIRECTORY_H_ 64