summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKAKit/src/NeFS+FileMgr.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-11-20 08:42:45 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-11-20 08:42:45 +0100
commite718262c5e5163378ef92469db9b94908dccf12b (patch)
tree98da3dbd414c14ff86e1d1c0f459285b78f63ec8 /dev/ZKAKit/src/NeFS+FileMgr.cc
parentade3a2578ca8d6836b8e73160455df80d49cf045 (diff)
ADD: Add CoreBoot header, need to add missing fields for specific platforms.
Diffstat (limited to 'dev/ZKAKit/src/NeFS+FileMgr.cc')
-rw-r--r--dev/ZKAKit/src/NeFS+FileMgr.cc21
1 files changed, 11 insertions, 10 deletions
diff --git a/dev/ZKAKit/src/NeFS+FileMgr.cc b/dev/ZKAKit/src/NeFS+FileMgr.cc
index 2ad68115..5e9397e4 100644
--- a/dev/ZKAKit/src/NeFS+FileMgr.cc
+++ b/dev/ZKAKit/src/NeFS+FileMgr.cc
@@ -19,38 +19,39 @@ namespace Kernel
NeFileSystemMgr::NeFileSystemMgr()
{
MUST_PASS(Detail::fs_init_newfs());
- fImpl = mm_new_class<NeFSParser>();
+
+ NeFSParser* fImpl;
+ mm_new_class<NeFSParser>(&fImpl);
MUST_PASS(fImpl);
- kcout << "We are done here... (NeFileSystemMgr).\r";
+ kcout << "We are done allocating NeFSParser...\r";
}
NeFileSystemMgr::~NeFileSystemMgr()
{
if (fImpl)
{
- kcout << "Destroying FS class (NeFS)...\r";
+ kcout << "Destroying NeFSParser...\r";
- delete fImpl;
- fImpl = nullptr;
+ mm_delete_class(&fImpl);
}
}
/// @brief Removes a node from the filesystem.
- /// @param fileName The filename
+ /// @param path The filename
/// @return If it was deleted or not.
- bool NeFileSystemMgr::Remove(const Char* fileName)
+ bool NeFileSystemMgr::Remove(_Input const Char* path)
{
- if (fileName == nullptr || *fileName == 0)
+ if (path == nullptr || *path == 0)
return false;
- return fImpl->RemoveCatalog(fileName);
+ return fImpl->RemoveCatalog(path);
}
/// @brief Creates a node with the specified.
/// @param path The filename path.
/// @return The Node pointer.
- NodePtr NeFileSystemMgr::Create(const Char* path)
+ NodePtr NeFileSystemMgr::Create(_Input const Char* path)
{
return node_cast(fImpl->CreateCatalog(path));
}