From c2e183b46a71e001683fd3b613ce49c9534460e2 Mon Sep 17 00:00:00 2001 From: Amlal Date: Wed, 28 Aug 2024 19:08:51 +0200 Subject: Moved security dll, encryptfs dll and renderer dll into DLL! Signed-off-by: Amlal --- dev/DLL/EFS/EncryptFS.hxx | 22 ++++++++++++++++++++++ dev/DLL/EFS/ReadMe.md | 5 +++++ dev/DLL/EFS/Sources/EncryptBlock.cxx | 14 ++++++++++++++ dev/DLL/EFS/Sources/Key.cxx | 12 ++++++++++++ dev/DLL/EFS/build.json | 20 ++++++++++++++++++++ dev/DLL/EFS/source_deploy.xml | 5 +++++ dev/DLL/RDR/.keep | 0 dev/DLL/RDR/ReadMe.md | 5 +++++ dev/DLL/RDR/Renderer.hxx | 28 ++++++++++++++++++++++++++++ dev/DLL/RDR/Sources/Renderer.cxx | 16 ++++++++++++++++ dev/DLL/RDR/build.json | 20 ++++++++++++++++++++ dev/DLL/SEC/.keep | 0 dev/DLL/SEC/build.json | 21 +++++++++++++++++++++ dev/EFS/EncryptFS.hxx | 22 ---------------------- dev/EFS/ReadMe.md | 5 ----- dev/EFS/Sources/EncryptBlock.cxx | 14 -------------- dev/EFS/Sources/Key.cxx | 12 ------------ dev/EFS/build.json | 20 -------------------- dev/EFS/source_deploy.xml | 5 ----- dev/SEC/.keep | 0 dev/SEC/build.json | 21 --------------------- dev/SYSDRV/.keep | 0 dev/SYSDRV/Sources/WindowMgr.cxx | 10 ---------- dev/SYSDRV/WindowMgr.hxx | 10 ---------- dev/SYSDRV/build.json | 21 --------------------- 25 files changed, 168 insertions(+), 140 deletions(-) create mode 100644 dev/DLL/EFS/EncryptFS.hxx create mode 100644 dev/DLL/EFS/ReadMe.md create mode 100644 dev/DLL/EFS/Sources/EncryptBlock.cxx create mode 100644 dev/DLL/EFS/Sources/Key.cxx create mode 100644 dev/DLL/EFS/build.json create mode 100644 dev/DLL/EFS/source_deploy.xml create mode 100644 dev/DLL/RDR/.keep create mode 100644 dev/DLL/RDR/ReadMe.md create mode 100644 dev/DLL/RDR/Renderer.hxx create mode 100644 dev/DLL/RDR/Sources/Renderer.cxx create mode 100644 dev/DLL/RDR/build.json create mode 100644 dev/DLL/SEC/.keep create mode 100644 dev/DLL/SEC/build.json delete mode 100644 dev/EFS/EncryptFS.hxx delete mode 100644 dev/EFS/ReadMe.md delete mode 100644 dev/EFS/Sources/EncryptBlock.cxx delete mode 100644 dev/EFS/Sources/Key.cxx delete mode 100644 dev/EFS/build.json delete mode 100644 dev/EFS/source_deploy.xml delete mode 100644 dev/SEC/.keep delete mode 100644 dev/SEC/build.json delete mode 100644 dev/SYSDRV/.keep delete mode 100644 dev/SYSDRV/Sources/WindowMgr.cxx delete mode 100644 dev/SYSDRV/WindowMgr.hxx delete mode 100644 dev/SYSDRV/build.json (limited to 'dev') diff --git a/dev/DLL/EFS/EncryptFS.hxx b/dev/DLL/EFS/EncryptFS.hxx new file mode 100644 index 00000000..4aa82666 --- /dev/null +++ b/dev/DLL/EFS/EncryptFS.hxx @@ -0,0 +1,22 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + + File: Encrypt.hxx + Purpose: Encrypted File System + + Revision History: + + 8/8/2024: Added file (amlel) + +------------------------------------------- */ + +#pragma once + +#include + +namespace EncryptFS +{ + using namespace Kernel; + +} \ No newline at end of file diff --git a/dev/DLL/EFS/ReadMe.md b/dev/DLL/EFS/ReadMe.md new file mode 100644 index 00000000..69968538 --- /dev/null +++ b/dev/DLL/EFS/ReadMe.md @@ -0,0 +1,5 @@ +# ZKA Encrypted File System. + +This is ZKA's Encrypted file system DLL. + +###### (c) ZKA Technologies, all rights reserved. diff --git a/dev/DLL/EFS/Sources/EncryptBlock.cxx b/dev/DLL/EFS/Sources/EncryptBlock.cxx new file mode 100644 index 00000000..09b8c0d9 --- /dev/null +++ b/dev/DLL/EFS/Sources/EncryptBlock.cxx @@ -0,0 +1,14 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + +------------------------------------------- */ + +#include +#include + +enum +{ + eEFSFlagEncrypted = 0x3f, + eEFSFlagEncryptedEPM = 0xf3, +}; diff --git a/dev/DLL/EFS/Sources/Key.cxx b/dev/DLL/EFS/Sources/Key.cxx new file mode 100644 index 00000000..457ce1b8 --- /dev/null +++ b/dev/DLL/EFS/Sources/Key.cxx @@ -0,0 +1,12 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + +------------------------------------------- */ + +#include +#include +#include + +typedef int32_t efs_encrypt_token_t; +typedef void* efs_encrypted_blob_t; diff --git a/dev/DLL/EFS/build.json b/dev/DLL/EFS/build.json new file mode 100644 index 00000000..3c611a95 --- /dev/null +++ b/dev/DLL/EFS/build.json @@ -0,0 +1,20 @@ +{ + "compiler_path": "x86_64-w64-mingw32-g++", + "compiler_std": "c++20", + "headers_path": ["../", "./"], + "sources_path": ["Sources/*.cxx"], + "output_name": "encryptfs.dll", + "compiler_flags": [ + "-ffreestanding", + "-shared", + "-fno-rtti", + "-fno-exceptions", + " -Wl,--subsystem=17" + ], + "cpp_macros": [ + "__EFS_AMD64__", + "cEFSVersion=0x0100", + "cEFSVersionHighest=0x0100", + "cEFSVersionLowest=0x0100" + ] +} diff --git a/dev/DLL/EFS/source_deploy.xml b/dev/DLL/EFS/source_deploy.xml new file mode 100644 index 00000000..9bd360df --- /dev/null +++ b/dev/DLL/EFS/source_deploy.xml @@ -0,0 +1,5 @@ + + + Sources/*.cxx + + diff --git a/dev/DLL/RDR/.keep b/dev/DLL/RDR/.keep new file mode 100644 index 00000000..e69de29b diff --git a/dev/DLL/RDR/ReadMe.md b/dev/DLL/RDR/ReadMe.md new file mode 100644 index 00000000..53c2ba24 --- /dev/null +++ b/dev/DLL/RDR/ReadMe.md @@ -0,0 +1,5 @@ +# ZKA Window Renderer. + +Acts as the main rendering engine of the UI stack. + +###### (c) ZKA Technologies, all rights reserved. diff --git a/dev/DLL/RDR/Renderer.hxx b/dev/DLL/RDR/Renderer.hxx new file mode 100644 index 00000000..4c965cca --- /dev/null +++ b/dev/DLL/RDR/Renderer.hxx @@ -0,0 +1,28 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + +------------------------------------------- */ + +#pragma once + +#include +#include + +namespace System +{ + using namespace Kernel; + + class UIRenderEffect; + class UIRenderCanvas; + class UIRenderView; // phone desktop, computer desktop, remote desktop. + + enum + { + eDesktopInvalid, + eDesktopPC, + eDesktopMobile, + eDestkopRemote, + eDesktopCount, + }; +} diff --git a/dev/DLL/RDR/Sources/Renderer.cxx b/dev/DLL/RDR/Sources/Renderer.cxx new file mode 100644 index 00000000..7826326a --- /dev/null +++ b/dev/DLL/RDR/Sources/Renderer.cxx @@ -0,0 +1,16 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + +------------------------------------------- */ + +#include +#include + +/// @file Renderer.cxx +/// @brief 2D UI renderer, using GX APIs. + +namespace System +{ + +} diff --git a/dev/DLL/RDR/build.json b/dev/DLL/RDR/build.json new file mode 100644 index 00000000..7a166044 --- /dev/null +++ b/dev/DLL/RDR/build.json @@ -0,0 +1,20 @@ +{ + "compiler_path": "x86_64-w64-mingw32-g++", + "compiler_std": "c++20", + "headers_path": ["../"], + "sources_path": ["Sources/*.cxx"], + "output_name": "wrenderer.dll", + "compiler_flags": [ + "-ffreestanding", + "-shared", + "-fno-rtti", + "-fno-exceptions", + "-Wl,--subsystem=17" + ], + "cpp_macros": [ + "__WRENDER_IMPL__", + "cWRVersion=0x0100", + "cWRVersionHighest=0x0100", + "cWRVersionLowest=0x0100" + ] +} diff --git a/dev/DLL/SEC/.keep b/dev/DLL/SEC/.keep new file mode 100644 index 00000000..e69de29b diff --git a/dev/DLL/SEC/build.json b/dev/DLL/SEC/build.json new file mode 100644 index 00000000..a22d0f1f --- /dev/null +++ b/dev/DLL/SEC/build.json @@ -0,0 +1,21 @@ +{ + "compiler_path": "x86_64-w64-mingw32-g++", + "compiler_std": "c++20", + "headers_path": ["../"], + "sources_path": ["Sources/*.cxx"], + "output_name": "sec.dll", + "compiler_flags": [ + "-fPIC", + "-ffreestanding", + "-shared", + "-fno-rtti", + "-fno-exceptions", + "-Wl,--subsystem=17" + ], + "cpp_macros": [ + "__SEC_IMPL__", + "cSECVersion=0x0100", + "cSECVersionHighest=0x0100", + "cSECVersionLowest=0x0100" + ] +} diff --git a/dev/EFS/EncryptFS.hxx b/dev/EFS/EncryptFS.hxx deleted file mode 100644 index 4aa82666..00000000 --- a/dev/EFS/EncryptFS.hxx +++ /dev/null @@ -1,22 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Technologies. - - File: Encrypt.hxx - Purpose: Encrypted File System - - Revision History: - - 8/8/2024: Added file (amlel) - -------------------------------------------- */ - -#pragma once - -#include - -namespace EncryptFS -{ - using namespace Kernel; - -} \ No newline at end of file diff --git a/dev/EFS/ReadMe.md b/dev/EFS/ReadMe.md deleted file mode 100644 index e99d4105..00000000 --- a/dev/EFS/ReadMe.md +++ /dev/null @@ -1,5 +0,0 @@ -# ZKA Encrypted File System. - -This is the ZKA's Encrypted file system DLL. - -###### (c) ZKA Technologies, all rights reserved. diff --git a/dev/EFS/Sources/EncryptBlock.cxx b/dev/EFS/Sources/EncryptBlock.cxx deleted file mode 100644 index 09b8c0d9..00000000 --- a/dev/EFS/Sources/EncryptBlock.cxx +++ /dev/null @@ -1,14 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Technologies. - -------------------------------------------- */ - -#include -#include - -enum -{ - eEFSFlagEncrypted = 0x3f, - eEFSFlagEncryptedEPM = 0xf3, -}; diff --git a/dev/EFS/Sources/Key.cxx b/dev/EFS/Sources/Key.cxx deleted file mode 100644 index 457ce1b8..00000000 --- a/dev/EFS/Sources/Key.cxx +++ /dev/null @@ -1,12 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Technologies. - -------------------------------------------- */ - -#include -#include -#include - -typedef int32_t efs_encrypt_token_t; -typedef void* efs_encrypted_blob_t; diff --git a/dev/EFS/build.json b/dev/EFS/build.json deleted file mode 100644 index 3c611a95..00000000 --- a/dev/EFS/build.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compiler_path": "x86_64-w64-mingw32-g++", - "compiler_std": "c++20", - "headers_path": ["../", "./"], - "sources_path": ["Sources/*.cxx"], - "output_name": "encryptfs.dll", - "compiler_flags": [ - "-ffreestanding", - "-shared", - "-fno-rtti", - "-fno-exceptions", - " -Wl,--subsystem=17" - ], - "cpp_macros": [ - "__EFS_AMD64__", - "cEFSVersion=0x0100", - "cEFSVersionHighest=0x0100", - "cEFSVersionLowest=0x0100" - ] -} diff --git a/dev/EFS/source_deploy.xml b/dev/EFS/source_deploy.xml deleted file mode 100644 index 9bd360df..00000000 --- a/dev/EFS/source_deploy.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - Sources/*.cxx - - diff --git a/dev/SEC/.keep b/dev/SEC/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/dev/SEC/build.json b/dev/SEC/build.json deleted file mode 100644 index a22d0f1f..00000000 --- a/dev/SEC/build.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compiler_path": "x86_64-w64-mingw32-g++", - "compiler_std": "c++20", - "headers_path": ["../"], - "sources_path": ["Sources/*.cxx"], - "output_name": "sec.dll", - "compiler_flags": [ - "-fPIC", - "-ffreestanding", - "-shared", - "-fno-rtti", - "-fno-exceptions", - "-Wl,--subsystem=17" - ], - "cpp_macros": [ - "__SEC_IMPL__", - "cSECVersion=0x0100", - "cSECVersionHighest=0x0100", - "cSECVersionLowest=0x0100" - ] -} diff --git a/dev/SYSDRV/.keep b/dev/SYSDRV/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/dev/SYSDRV/Sources/WindowMgr.cxx b/dev/SYSDRV/Sources/WindowMgr.cxx deleted file mode 100644 index e39bf733..00000000 --- a/dev/SYSDRV/Sources/WindowMgr.cxx +++ /dev/null @@ -1,10 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Technologies. - -------------------------------------------- */ - -#include - -/// @file WindowMgr.cxx -/// @brief Window manager of system driver. \ No newline at end of file diff --git a/dev/SYSDRV/WindowMgr.hxx b/dev/SYSDRV/WindowMgr.hxx deleted file mode 100644 index ed40285a..00000000 --- a/dev/SYSDRV/WindowMgr.hxx +++ /dev/null @@ -1,10 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Technologies. - -------------------------------------------- */ - -#pragma once - -#include -#include diff --git a/dev/SYSDRV/build.json b/dev/SYSDRV/build.json deleted file mode 100644 index d8b1e941..00000000 --- a/dev/SYSDRV/build.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compiler_path": "x86_64-w64-mingw32-g++", - "compiler_std": "c++20", - "headers_path": ["../"], - "sources_path": ["Sources/*.cxx"], - "output_name": "sysdrv.sys", - "compiler_flags": [ - "-fPIC", - "-ffreestanding", - "-shared", - "-fno-rtti", - "-fno-exceptions", - "-Wl,--subsystem=17" - ], - "cpp_macros": [ - "__SGM_IMPL__", - "cSGMVersion=0x0100", - "cSGMVersionHighest=0x0100", - "cSGMVersionLowest=0x0100" - ] -} -- cgit v1.2.3