From 2f7c48ef9172ba48fa177600a12ab0d51cb9e566 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 27 Jan 2024 17:06:30 +0100 Subject: Kernel: Fix ABI for MP-CC, rename FilesystemIndexer to IndexableProperty. Public/ZipKit: Add impl for deflate/inflate. Signed-off-by: Amlal El Mahrouss --- Private/FSKit/FilesystemIndexer.hxx | 48 ------------------------------------- Private/FSKit/IndexableProperty.hxx | 48 +++++++++++++++++++++++++++++++++++++ Private/FSKit/NewFS.hxx | 2 +- Private/FSKit/NewFSIndexer.hxx | 2 +- 4 files changed, 50 insertions(+), 50 deletions(-) delete mode 100644 Private/FSKit/FilesystemIndexer.hxx create mode 100644 Private/FSKit/IndexableProperty.hxx (limited to 'Private/FSKit') diff --git a/Private/FSKit/FilesystemIndexer.hxx b/Private/FSKit/FilesystemIndexer.hxx deleted file mode 100644 index 4ba68056..00000000 --- a/Private/FSKit/FilesystemIndexer.hxx +++ /dev/null @@ -1,48 +0,0 @@ -/* - * ======================================================== - * - * hCore - * Copyright 2024 Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ - -#pragma once - -#include -#include - -namespace hCore -{ - namespace Indexer - { - struct IndexProperty final - { - public: - Char Drive[kDriveNameLen]; - Char Path[256]; - Char From[256]; - Char To[256]; - - }; - - class IndexableProperty final : public Property - { - public: - explicit IndexableProperty() : Property(StringBuilder::Construct("IndexableProperty").Leak().Leak()) {} - ~IndexableProperty() override = default; - - public: - IndexProperty& LeakProperty() noexcept; - - public: - void AddFlag(Int16 flag); - void RemoveFlag(Int16 flag); - - private: - IndexProperty fIndex; - UInt32 fFlags; - - }; - } -} diff --git a/Private/FSKit/IndexableProperty.hxx b/Private/FSKit/IndexableProperty.hxx new file mode 100644 index 00000000..4ba68056 --- /dev/null +++ b/Private/FSKit/IndexableProperty.hxx @@ -0,0 +1,48 @@ +/* + * ======================================================== + * + * hCore + * Copyright 2024 Mahrouss Logic, all rights reserved. + * + * ======================================================== + */ + +#pragma once + +#include +#include + +namespace hCore +{ + namespace Indexer + { + struct IndexProperty final + { + public: + Char Drive[kDriveNameLen]; + Char Path[256]; + Char From[256]; + Char To[256]; + + }; + + class IndexableProperty final : public Property + { + public: + explicit IndexableProperty() : Property(StringBuilder::Construct("IndexableProperty").Leak().Leak()) {} + ~IndexableProperty() override = default; + + public: + IndexProperty& LeakProperty() noexcept; + + public: + void AddFlag(Int16 flag); + void RemoveFlag(Int16 flag); + + private: + IndexProperty fIndex; + UInt32 fFlags; + + }; + } +} diff --git a/Private/FSKit/NewFS.hxx b/Private/FSKit/NewFS.hxx index f9725e22..0e935cd5 100644 --- a/Private/FSKit/NewFS.hxx +++ b/Private/FSKit/NewFS.hxx @@ -175,7 +175,7 @@ namespace hCore virtual bool WriteCatalog(NewCatalog& catalog, voidPtr data) = 0; virtual bool RemoveCatalog(NewCatalog& catalog) = 0; - void FormatDrive(DriveTraits& drive); + virtual bool Format(DriveTraits& drive) = 0; }; diff --git a/Private/FSKit/NewFSIndexer.hxx b/Private/FSKit/NewFSIndexer.hxx index fd22e4bd..c5f63059 100644 --- a/Private/FSKit/NewFSIndexer.hxx +++ b/Private/FSKit/NewFSIndexer.hxx @@ -9,7 +9,7 @@ #pragma once -#include +#include #include namespace hCore -- cgit v1.2.3