summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-08-01 11:13:01 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-08-01 11:15:14 +0200
commitf9579f444b1791d2b73d4d841569728fb203cb29 (patch)
treeb96f8cff07fabe7e3a05b448ce6c981595ab77c4
parent4ce1fdaa5ad4252bff486a824f53cb93cc156925 (diff)
[META] code cleanup.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
-rw-r--r--SCIKit/SCM.drawio80
-rw-r--r--SCIKit/SharedInterface1.hxx95
2 files changed, 40 insertions, 135 deletions
diff --git a/SCIKit/SCM.drawio b/SCIKit/SCM.drawio
index 7d2a3e12..56974466 100644
--- a/SCIKit/SCM.drawio
+++ b/SCIKit/SCM.drawio
@@ -1,40 +1,40 @@
-<mxfile host="app.diagrams.net" modified="2024-07-30T08:10:48.550Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36" etag="RXlhIX_6zJCQ26jH2pJE" version="24.6.4" type="device">
- <diagram name="Page-1" id="_vc7fxBdNKI2W8YhI8VA">
- <mxGraphModel dx="1050" dy="557" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
- <root>
- <mxCell id="0" />
- <mxCell id="1" parent="0" />
- <mxCell id="eRehIIeIVOPW1y23kRkx-7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="eRehIIeIVOPW1y23kRkx-1" target="eRehIIeIVOPW1y23kRkx-6">
- <mxGeometry relative="1" as="geometry" />
- </mxCell>
- <mxCell id="eRehIIeIVOPW1y23kRkx-1" value="Kernel level interfaces" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
- <mxGeometry x="431" y="450" width="226" height="60" as="geometry" />
- </mxCell>
- <mxCell id="eRehIIeIVOPW1y23kRkx-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="eRehIIeIVOPW1y23kRkx-2" target="eRehIIeIVOPW1y23kRkx-8">
- <mxGeometry relative="1" as="geometry" />
- </mxCell>
- <mxCell id="eRehIIeIVOPW1y23kRkx-2" value="User level interfaces" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
- <mxGeometry x="200" y="450" width="226" height="60" as="geometry" />
- </mxCell>
- <mxCell id="eRehIIeIVOPW1y23kRkx-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="eRehIIeIVOPW1y23kRkx-3" target="eRehIIeIVOPW1y23kRkx-2">
- <mxGeometry relative="1" as="geometry" />
- </mxCell>
- <mxCell id="eRehIIeIVOPW1y23kRkx-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0;exitDx=0;exitDy=52.5;exitPerimeter=0;" edge="1" parent="1" source="eRehIIeIVOPW1y23kRkx-3" target="eRehIIeIVOPW1y23kRkx-1">
- <mxGeometry relative="1" as="geometry" />
- </mxCell>
- <mxCell id="eRehIIeIVOPW1y23kRkx-3" value="IDB" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;" vertex="1" parent="1">
- <mxGeometry x="283" y="290" width="60" height="80" as="geometry" />
- </mxCell>
- <mxCell id="eRehIIeIVOPW1y23kRkx-6" value="HAL #1&lt;div&gt;Uses UI interface&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
- <mxGeometry x="484" y="570" width="120" height="60" as="geometry" />
- </mxCell>
- <mxCell id="eRehIIeIVOPW1y23kRkx-8" value="Program #2&lt;div&gt;Is a web browser&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
- <mxGeometry x="253" y="570" width="120" height="60" as="geometry" />
- </mxCell>
- <mxCell id="eRehIIeIVOPW1y23kRkx-10" value="&lt;h1 style=&quot;margin-top: 0px;&quot;&gt;System Component Model&lt;/h1&gt;&lt;p&gt;SCM is a standardized way of sharing code within DLLs in NewOS.&lt;/p&gt;" style="text;html=1;whiteSpace=wrap;overflow=hidden;rounded=0;" vertex="1" parent="1">
- <mxGeometry x="590" y="230" width="180" height="180" as="geometry" />
- </mxCell>
- </root>
- </mxGraphModel>
- </diagram>
-</mxfile>
+<mxfile host="65bd71144e">
+ <diagram name="Page-1" id="_vc7fxBdNKI2W8YhI8VA">
+ <mxGraphModel dx="746" dy="307" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
+ <root>
+ <mxCell id="0"/>
+ <mxCell id="1" parent="0"/>
+ <mxCell id="eRehIIeIVOPW1y23kRkx-7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="eRehIIeIVOPW1y23kRkx-1" target="eRehIIeIVOPW1y23kRkx-6" edge="1">
+ <mxGeometry relative="1" as="geometry"/>
+ </mxCell>
+ <mxCell id="eRehIIeIVOPW1y23kRkx-1" value="Kernel level interfaces" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
+ <mxGeometry x="431" y="450" width="226" height="60" as="geometry"/>
+ </mxCell>
+ <mxCell id="eRehIIeIVOPW1y23kRkx-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="eRehIIeIVOPW1y23kRkx-2" target="eRehIIeIVOPW1y23kRkx-8" edge="1">
+ <mxGeometry relative="1" as="geometry"/>
+ </mxCell>
+ <mxCell id="eRehIIeIVOPW1y23kRkx-2" value="User level interfaces" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
+ <mxGeometry x="200" y="450" width="226" height="60" as="geometry"/>
+ </mxCell>
+ <mxCell id="eRehIIeIVOPW1y23kRkx-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="eRehIIeIVOPW1y23kRkx-3" target="eRehIIeIVOPW1y23kRkx-2" edge="1">
+ <mxGeometry relative="1" as="geometry"/>
+ </mxCell>
+ <mxCell id="eRehIIeIVOPW1y23kRkx-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0;exitDx=0;exitDy=52.5;exitPerimeter=0;" parent="1" source="eRehIIeIVOPW1y23kRkx-3" target="eRehIIeIVOPW1y23kRkx-1" edge="1">
+ <mxGeometry relative="1" as="geometry"/>
+ </mxCell>
+ <mxCell id="eRehIIeIVOPW1y23kRkx-3" value="IDB" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;" parent="1" vertex="1">
+ <mxGeometry x="283" y="290" width="60" height="80" as="geometry"/>
+ </mxCell>
+ <mxCell id="eRehIIeIVOPW1y23kRkx-6" value="HAL #1&lt;div&gt;Takes care of a specific device support.&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
+ <mxGeometry x="484" y="570" width="120" height="60" as="geometry"/>
+ </mxCell>
+ <mxCell id="eRehIIeIVOPW1y23kRkx-8" value="Program #2&lt;div&gt;Is a web browser, it uses an HTML parser component.&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
+ <mxGeometry x="253" y="570" width="120" height="60" as="geometry"/>
+ </mxCell>
+ <mxCell id="eRehIIeIVOPW1y23kRkx-10" value="&lt;h1 style=&quot;margin-top: 0px;&quot;&gt;System Component Model&lt;/h1&gt;&lt;p&gt;SCM is a standardized way of sharing code within DLLs in NewOS.&lt;/p&gt;" style="text;html=1;whiteSpace=wrap;overflow=hidden;rounded=0;" parent="1" vertex="1">
+ <mxGeometry x="590" y="230" width="180" height="180" as="geometry"/>
+ </mxCell>
+ </root>
+ </mxGraphModel>
+ </diagram>
+</mxfile> \ No newline at end of file
diff --git a/SCIKit/SharedInterface1.hxx b/SCIKit/SharedInterface1.hxx
deleted file mode 100644
index 46c6e220..00000000
--- a/SCIKit/SharedInterface1.hxx
+++ /dev/null
@@ -1,95 +0,0 @@
-/* -------------------------------------------
-
-Copyright ZKA Technologies.
-
-File: StandardInterface1.hxx.
-Purpose: System Call Interface Version 1.
-
-------------------------------------------- */
-
-#ifndef __SHARED_INTERFACE_HXX__
-#define __SHARED_INTERFACE_HXX__
-
-#define cRestrictR 1
-#define cRestrictRB 2
-#define cRestrictW 4
-#define cRestrictRW 6
-
-#include <SCIKit/Types.hxx>
-
-typedef UInt32 PowerID;
-typedef long long int FD;
-
-/**
- @brief System call class.
-*/
-class __attribute__((uuid("21f40aef-cce0-4c0b-9672-40f9053394bc"))) SharedInterface1 : public UnknownInterface
-{
-public:
- explicit SharedInterface1() = default;
- virtual ~SharedInterface1() = default;
-
- SharedInterface1& operator=(const SharedInterface1&) = default;
- SharedInterface1(const SharedInterface1&) = default;
-
-public:
- /// @brief disable device.
- virtual UInt0 PowerOff(PowerID) = 0;
-
- /// @brief enable device.
- virtual UInt0 PowerOn(PowerID) = 0;
-
- /// @brief reboot device.
- virtual UInt0 PowerReboot(PowerID) = 0;
-
- /// @brief check if MBCI device is wokeup.
- virtual Bool PowerIsWokeup(PowerID) = 0;
-
- /// @brief probe MBCI/ACPI device from device.
- virtual PowerID PowerProbeDevice(const char* namezpace, const int index) = 0;
-
- // THOSE DOESNT REQUIRE PERMISSIONS FROM THE USER. //
-
- /// @brief terminate app.
- virtual UInt0 Terminate() = 0;
-
- /// @brief exit thread.
- virtual Bool Exit(FD code) = 0;
-
- /// @brief alloc pointer.
- virtual UInt0* New(long long sz) = 0;
-
- /// @brief free pointer.
- virtual UInt0 Delete(void* ptr) = 0;
-
- // THOSE MAY REQUIRE PERMISSIONS FROM THE USER. //
-
- /// @brief Open descriptor.
- virtual FD OpenStorage(const char* path, const UInt32 restr) = 0;
-
- /// @brief Close descriptor.
- virtual UInt0 CloseStorage(FD descriptorType) = 0;
-
- /// @brief Execute from shell.
- virtual FD URLExecute(const UTFChar* shellLink) = 0;
-
- /// @brief Read descriptor.
- virtual UInt0* ReadStorage(const UTFChar* cmdNameOrData, SizeT cmdSize, FD descriptorType) = 0;
-
- /// @brief Seek in storage file
- virtual UInt64 SeekStorage(FD descriptorType, UInt64 offset) = 0;
-
- /// @brief Tell storage cursor.
- virtual UInt64 TellStorage(FD descriptorType) = 0;
-
- /// @brief Remove stored file.
- virtual UInt64 RemoveStorage(FD descriptorType) = 0;
-
- /// @brief Create stored file.
- virtual FD CreateStorage(const UTFChar* fileName, UInt64 flags) = 0;
-
- /// @brief Write descriptor.
- virtual UInt0* WriteStorage(const UTFChar* cmdNameOrData, SizeT cmdSize, FD descriptorType) = 0;
-};
-
-#endif // ifndef __SHARED_INTERFACE_HXX__