diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-07 14:46:11 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-07 14:47:44 +0200 |
| commit | e80b274a23cb6bbe83bc48058c779624b16dd556 (patch) | |
| tree | 905578ee29d9c5bad03b28b8381a2c29fb715f0f /Private/NewKit | |
| parent | c4f3bfd671ad8ec5721c3d2c45de4806f34ebb75 (diff) | |
MHR-23: ErrorID error codes are now deprecated in favor of HError.
- Cleanup done in SystemLib.
- Refactor system API.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewKit')
| -rw-r--r-- | Private/NewKit/Application.hxx | 6 | ||||
| -rw-r--r-- | Private/NewKit/ErrorID.hpp | 19 |
2 files changed, 3 insertions, 22 deletions
diff --git a/Private/NewKit/Application.hxx b/Private/NewKit/Application.hxx index 78ae20cd..aae97c6f 100644 --- a/Private/NewKit/Application.hxx +++ b/Private/NewKit/Application.hxx @@ -17,7 +17,7 @@ /// \brief Application Interface. /// \author Amlal El Mahrouss -typedef struct _Application final +typedef struct _ApplicationInterface final { /// @brief Releases the object exit the process on main object. NewOS::Void (*Release)(struct _Application* Self, NewOS::Int32 ExitCode); @@ -26,6 +26,6 @@ typedef struct _Application final /// @brief Query a new application object from a GUID. /// @note this doesn't query a process, it query a registered object withtin that app. NewOS::Void (*Query)(struct _Application* Self, NewOS::VoidPtr* Dst, NewOS::SizeT SzDst, NewOS::XRN::GUIDSequence GuidOf); -} Application, *ApplicationRef; +} ApplicationInterface, *ApplicationInterfaceRef; -#define app_cast reinterpret_cast<ApplicationRef> +#define app_cast reinterpret_cast<ApplicationInterfaceRef> diff --git a/Private/NewKit/ErrorID.hpp b/Private/NewKit/ErrorID.hpp deleted file mode 100644 index fcd574e2..00000000 --- a/Private/NewKit/ErrorID.hpp +++ /dev/null @@ -1,19 +0,0 @@ -/* ------------------------------------------- - - Copyright Mahrouss Logic - -------------------------------------------- */ - -#pragma once - -/// @brief Internal kernel errors. - -#include <NewKit/ErrorOr.hpp> -#include <NewKit/Defines.hpp> - -#define H_EXEC_ERROR 33 -#define H_FILE_NOT_FOUND 35 -#define H_DIR_NOT_FOUND 36 -#define H_FILE_EXISTS 46 -#define H_UNIMPLEMENTED 0 -#define H_INVALID_DATA 1 |
