summaryrefslogtreecommitdiffhomepage
path: root/Private/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Private/Tools')
-rw-r--r--Private/Tools/disk_api.h29
-rw-r--r--Private/Tools/make_hcfs.c (renamed from Private/Tools/PartTool.cxx)8
2 files changed, 32 insertions, 5 deletions
diff --git a/Private/Tools/disk_api.h b/Private/Tools/disk_api.h
new file mode 100644
index 00000000..27a446c2
--- /dev/null
+++ b/Private/Tools/disk_api.h
@@ -0,0 +1,29 @@
+/* -------------------------------------------
+
+ Copyright Mahrouss Logic
+ all rights reserved.
+
+ File: Disk.hxx
+
+------------------------------------------- */
+
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+
+#include <stdio.h>
+#include <stdint.h>
+
+#ifdef __cplusplus
+};
+#endif // __cplusplus
+
+typedef struct __sDISK
+{
+ FILE* fFile;
+ int32_t fDiskFilesystem;
+ uintptr_t fDiskCursor;
+ size_t fDiskSize;
+} DISK, *PDISK;
diff --git a/Private/Tools/PartTool.cxx b/Private/Tools/make_hcfs.c
index dd84cfb2..273cd0fc 100644
--- a/Private/Tools/PartTool.cxx
+++ b/Private/Tools/make_hcfs.c
@@ -16,12 +16,10 @@
/// @brief NewFS partition program.
/***********************************************************************************/
-#include <ConOut.hxx>
+#include <disk_api.h>
-int main() {
- HCore::cout
- << "PartTool: build a NewFS partition image from a directory!\n"
- << "Copyright Mahrouss Logic, all rights reserved. (INTERNAL TOOL)\n";
+int main(void) {
+ printf("%s\n", "makeHCFS, brought to you by Amlal El Mahrouss.");
return 0;
}