summaryrefslogtreecommitdiffhomepage
path: root/Private/CFKit
diff options
context:
space:
mode:
authorAmlal <amlalelmahrouss@icloud.com>2024-05-11 06:43:54 +0000
committerAmlal <amlalelmahrouss@icloud.com>2024-05-11 06:43:54 +0000
commitca675beb41dba8d7d16c5793b55d1672f38be3b4 (patch)
treec995ada42729ac2059a0ed87a4539d1a7e10b14a /Private/CFKit
parent2b4a4792abf51487ab4a16106f9376f43acf381a (diff)
parentbc57a29a24b98b00ba17710ba84ec2188ab73504 (diff)
Merged in MHR-23 (pull request #12)
MHR-23: Merge work.
Diffstat (limited to 'Private/CFKit')
-rw-r--r--Private/CFKit/GUIDWizard.hpp21
-rw-r--r--Private/CFKit/GUIDWrapper.hpp49
-rw-r--r--Private/CFKit/Property.hpp41
-rw-r--r--Private/CFKit/URL.hpp32
-rw-r--r--Private/CFKit/compile_flags.txt5
5 files changed, 0 insertions, 148 deletions
diff --git a/Private/CFKit/GUIDWizard.hpp b/Private/CFKit/GUIDWizard.hpp
deleted file mode 100644
index f7cc212e..00000000
--- a/Private/CFKit/GUIDWizard.hpp
+++ /dev/null
@@ -1,21 +0,0 @@
-/* -------------------------------------------
-
- Copyright Mahrouss Logic
-
-------------------------------------------- */
-
-#pragma once
-
-#include <CFKit/GUIDWrapper.hpp>
-#include <NewKit/Array.hpp>
-#include <NewKit/ArrayList.hpp>
-#include <NewKit/Defines.hpp>
-#include <NewKit/ErrorOr.hpp>
-#include <NewKit/Ref.hpp>
-#include <NewKit/Stream.hpp>
-#include <NewKit/String.hpp>
-
-namespace NewOS::XRN::Version1 {
-Ref<GUIDSequence*> make_sequence(const ArrayList<UShort>& seq);
-ErrorOr<Ref<NewOS::StringView>> try_guid_to_string(Ref<GUIDSequence*>& guid);
-} // namespace NewOS::XRN::Version1
diff --git a/Private/CFKit/GUIDWrapper.hpp b/Private/CFKit/GUIDWrapper.hpp
deleted file mode 100644
index 62bc6d73..00000000
--- a/Private/CFKit/GUIDWrapper.hpp
+++ /dev/null
@@ -1,49 +0,0 @@
-/* -------------------------------------------
-
- Copyright Mahrouss Logic
-
-------------------------------------------- */
-
-#pragma once
-
-#include <NewKit/Defines.hpp>
-#include <NewKit/Ref.hpp>
-#include <NewKit/Stream.hpp>
-
-/* GUID for C++ Components */
-
-#define kXRNNil "@{........-....-M...-N...-............}"
-
-// eXtensible Resource Information
-namespace NewOS::XRN {
-union GUIDSequence {
- alignas(8) UShort u8[16];
- alignas(8) UShort u16[8];
- alignas(8) UInt u32[4];
- alignas(8) ULong u64[2];
-
- struct {
- alignas(8) UInt fMs1;
- UShort fMs2;
- UShort fMs3;
- UChar fMs4[8];
- };
-};
-
-class GUID final {
- public:
- explicit GUID() = default;
- ~GUID() = default;
-
- public:
- GUID &operator=(const GUID &) = default;
- GUID(const GUID &) = default;
-
- public:
- GUIDSequence &operator->() noexcept { return fUUID; }
- GUIDSequence &Leak() noexcept { return fUUID; }
-
- private:
- GUIDSequence fUUID;
-};
-} // namespace NewOS::XRN
diff --git a/Private/CFKit/Property.hpp b/Private/CFKit/Property.hpp
deleted file mode 100644
index 10c8ebf0..00000000
--- a/Private/CFKit/Property.hpp
+++ /dev/null
@@ -1,41 +0,0 @@
-/* -------------------------------------------
-
- Copyright Mahrouss Logic
-
-------------------------------------------- */
-
-#ifndef _INC_PLIST_HPP__
-#define _INC_PLIST_HPP__
-
-#include <NewKit/Array.hpp>
-#include <NewKit/Defines.hpp>
-#include <NewKit/Function.hpp>
-#include <NewKit/String.hpp>
-
-namespace NewOS {
-using PropertyId = Int;
-
-/// @brief Kernel property class.
-class Property {
- public:
- explicit Property(const StringView &sw) : fName(sw) {}
-
- virtual ~Property() = default;
-
- public:
- Property &operator=(const Property &) = default;
- Property(const Property &) = default;
-
- bool StringEquals(StringView &name);
- const PropertyId &GetPropertyById();
-
- private:
- Ref<StringView> fName;
- PropertyId fAction;
-};
-
-template <SSizeT N>
-using PropertyArray = Array<Property, N>;
-} // namespace NewOS
-
-#endif // !_INC_PLIST_HPP__
diff --git a/Private/CFKit/URL.hpp b/Private/CFKit/URL.hpp
deleted file mode 100644
index 41693e0e..00000000
--- a/Private/CFKit/URL.hpp
+++ /dev/null
@@ -1,32 +0,0 @@
-/* -------------------------------------------
-
- Copyright Mahrouss Logic
-
-------------------------------------------- */
-
-#ifndef _INC_URL_HPP_
-#define _INC_URL_HPP_
-
-#include <NewKit/Defines.hpp>
-#include <NewKit/String.hpp>
-
-namespace NewOS {
-class URL final {
- public:
- explicit URL(StringView &strUrl);
- ~URL();
-
- public:
- Ref<ErrorOr<StringView>> Location() noexcept;
- Ref<ErrorOr<StringView>> Protocol() noexcept;
-
- private:
- Ref<StringView> fUrlView;
-};
-
-ErrorOr<StringView> url_extract_location(const char *url);
-ErrorOr<StringView> url_extract_protocol(const char *url);
-} // namespace NewOS
-
-
-#endif /* ifndef _INC_URL_HPP_ */
diff --git a/Private/CFKit/compile_flags.txt b/Private/CFKit/compile_flags.txt
deleted file mode 100644
index a37ae6bf..00000000
--- a/Private/CFKit/compile_flags.txt
+++ /dev/null
@@ -1,5 +0,0 @@
--nostdlib
--ffreestanding
--std=c++20
--I./
--I../