diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/file_sys/directory.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/core/file_sys/directory.h b/src/core/file_sys/directory.h index 6690aa575..7b5c509fb 100644 --- a/src/core/file_sys/directory.h +++ b/src/core/file_sys/directory.h | |||
| @@ -39,27 +39,4 @@ static_assert(sizeof(Entry) == 0x310, "Directory Entry struct isn't exactly 0x31 | |||
| 39 | static_assert(offsetof(Entry, type) == 0x304, "Wrong offset for type in Entry."); | 39 | static_assert(offsetof(Entry, type) == 0x304, "Wrong offset for type in Entry."); |
| 40 | static_assert(offsetof(Entry, file_size) == 0x308, "Wrong offset for file_size in Entry."); | 40 | static_assert(offsetof(Entry, file_size) == 0x308, "Wrong offset for file_size in Entry."); |
| 41 | 41 | ||
| 42 | class DirectoryBackend : NonCopyable { | ||
| 43 | public: | ||
| 44 | DirectoryBackend() {} | ||
| 45 | virtual ~DirectoryBackend() {} | ||
| 46 | |||
| 47 | /** | ||
| 48 | * List files contained in the directory | ||
| 49 | * @param count Number of entries to return at once in entries | ||
| 50 | * @param entries Buffer to read data into | ||
| 51 | * @return Number of entries listed | ||
| 52 | */ | ||
| 53 | virtual u64 Read(const u64 count, Entry* entries) = 0; | ||
| 54 | |||
| 55 | /// Returns the number of entries still left to read. | ||
| 56 | virtual u64 GetEntryCount() const = 0; | ||
| 57 | |||
| 58 | /** | ||
| 59 | * Close the directory | ||
| 60 | * @return true if the directory closed correctly | ||
| 61 | */ | ||
| 62 | virtual bool Close() const = 0; | ||
| 63 | }; | ||
| 64 | |||
| 65 | } // namespace FileSys | 42 | } // namespace FileSys |