Kernel: Add a File object and a getter for it from an Archive object.
This commit is contained in:
parent
e73caaefe5
commit
19d04f3abe
2 changed files with 118 additions and 0 deletions
|
@ -29,6 +29,15 @@ Handle OpenArchive(FileSys::Archive::IdCode id_code);
|
|||
*/
|
||||
Handle CreateArchive(FileSys::Archive* backend, const std::string& name);
|
||||
|
||||
/**
|
||||
* Open a File from an Archive
|
||||
* @param archive_handle Handle to an open Archive object
|
||||
* @param path Path to the File inside of the Archive
|
||||
* @param mode Mode under which to open the File
|
||||
* @return Opened File object
|
||||
*/
|
||||
Handle OpenFileFromArchive(Handle handle, const std::string& name, const FileSys::Mode mode);
|
||||
|
||||
/// Initialize archives
|
||||
void ArchiveInit();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue