summaryrefslogtreecommitdiffhomepage
path: root/Private/FSKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-28 20:54:33 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-28 20:54:33 +0100
commitb2c7b8604ed3a4c209a15a9ffd718a43163dd9b4 (patch)
tree851d79e3a9b1c676b48ec8dfcd2b989f4da45c9b /Private/FSKit
parent215518ae55a54973a1ae18f572ca5bf0ac2a499e (diff)
NewKernel: Add PowerPC partition type inside EPM, add Leak() FileStream method. and documentation.
SystemLib: Start implementing the API. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/FSKit')
-rw-r--r--Private/FSKit/NewFS.hxx18
1 files changed, 11 insertions, 7 deletions
diff --git a/Private/FSKit/NewFS.hxx b/Private/FSKit/NewFS.hxx
index 43596d62..6b852f73 100644
--- a/Private/FSKit/NewFS.hxx
+++ b/Private/FSKit/NewFS.hxx
@@ -171,17 +171,21 @@ class NewFSParser {
HCORE_COPY_DEFAULT(NewFSParser);
public:
- virtual void CreateFork(_Input NewCatalog& catalog, _Input NewFork& theFork) = 0;
+ virtual _Output NewFork* CreateFork(_Input NewCatalog* catalog, _Input NewFork& theFork) = 0;
- virtual _Output NewFork* FindFork(_Input NewCatalog& catalog, _Input const Char* name) = 0;
+ virtual _Output NewFork* FindFork(_Input NewCatalog* catalog, _Input const Char* name) = 0;
+
+ virtual _Output Void RemoveFork(_Input NewFork* fork) = 0;
+
+ virtual _Output Void CloseFork(_Input NewFork* fork) = 0;
virtual _Output NewCatalog* FindCatalog(const char* catalogName) = 0;
virtual _Output NewCatalog* RootCatalog() = 0;
- virtual _Output NewCatalog* NextCatalog(_Input _Output NewCatalog& cur) = 0;
+ virtual _Output NewCatalog* NextCatalog(_Input _Output NewCatalog* cur) = 0;
- virtual _Output NewCatalog* PrevCatalog(_Input _Output NewCatalog& cur) = 0;
+ virtual _Output NewCatalog* PrevCatalog(_Input _Output NewCatalog* cur) = 0;
virtual _Output NewCatalog* GetCatalog(_Input const char* name) = 0;
@@ -191,15 +195,15 @@ class NewFSParser {
virtual _Output NewCatalog* CreateCatalog(_Input const char* name) = 0;
- virtual bool WriteCatalog(_Input _Output NewCatalog& catalog,
+ virtual bool WriteCatalog(_Input _Output NewCatalog* catalog,
voidPtr data) = 0;
- virtual bool RemoveCatalog(_Input _Output NewCatalog& catalog) = 0;
+ virtual bool RemoveCatalog(_Input _Output NewCatalog* catalog) = 0;
/// @brief Make a EPM+NewFS drive out of the disk.
/// @param drive The drive to write on.
/// @return If it was sucessful, see DbgLastError().
- virtual bool Format(_Input _Output DriveTrait& drive) = 0;
+ virtual bool Format(_Input _Output DriveTrait* drive) = 0;
};
///