From d48cbe75ef29a9c67c9d176bf58e56ea6448fb9e Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 21 Oct 2024 20:23:36 +0200 Subject: IMP: Major refactor of header and source files extensions. Signed-off-by: Amlal El Mahrouss --- dev/hpfs/hpfs.json | 2 +- dev/hpfs/hpfs_specs.h | 29 +++++++++++++++++++++++++++++ dev/hpfs/hpfs_specs.hxx | 29 ----------------------------- dev/hpfs/src/hpfs_main.cc | 29 +++++++++++++++++++++++++++++ dev/hpfs/src/hpfs_main.cxx | 29 ----------------------------- 5 files changed, 59 insertions(+), 59 deletions(-) create mode 100644 dev/hpfs/hpfs_specs.h delete mode 100644 dev/hpfs/hpfs_specs.hxx create mode 100644 dev/hpfs/src/hpfs_main.cc delete mode 100644 dev/hpfs/src/hpfs_main.cxx (limited to 'dev/hpfs') diff --git a/dev/hpfs/hpfs.json b/dev/hpfs/hpfs.json index 5f01ab74..a6f20f66 100644 --- a/dev/hpfs/hpfs.json +++ b/dev/hpfs/hpfs.json @@ -2,7 +2,7 @@ "compiler_path": "x86_64-w64-mingw32-g++", "compiler_std": "c++20", "headers_path": ["../"], - "sources_path": ["src/*.cxx"], + "sources_path": ["src/*.cc"], "output_name": "hpfs.sys", "compiler_flags": [ "-fPIC", diff --git a/dev/hpfs/hpfs_specs.h b/dev/hpfs/hpfs_specs.h new file mode 100644 index 00000000..aad694fa --- /dev/null +++ b/dev/hpfs/hpfs_specs.h @@ -0,0 +1,29 @@ +/* ------------------------------------------- + + Copyright ZKA Web Services Co. + + FILE: Defines.h + PURPOSE: HPFS IFS defines. + +------------------------------------------- */ + +#pragma once + +#include + +#define kHPFSVersion 0x01000 +#define kHPFSMagic " HPFS" +#define kHPFSMagicLen 8 + +/** @brief Drive type enum. */ +enum +{ + kHPFSInvalidDrive, + kHPFSCDROMDrive, + kHPFSHDDDrive, + kHPFSSSDDrive, + kHPFSUSBDrive, +}; + +/** @brief Explicit Boot Sector structure. */ +struct HPFS_EXPLICIT_BOOT_SECTOR; diff --git a/dev/hpfs/hpfs_specs.hxx b/dev/hpfs/hpfs_specs.hxx deleted file mode 100644 index 5b22ce31..00000000 --- a/dev/hpfs/hpfs_specs.hxx +++ /dev/null @@ -1,29 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Web Services Co. - - FILE: Defines.hxx - PURPOSE: HPFS IFS defines. - -------------------------------------------- */ - -#pragma once - -#include - -#define kHPFSVersion 0x01000 -#define kHPFSMagic " HPFS" -#define kHPFSMagicLen 8 - -/** @brief Drive type enum. */ -enum -{ - kHPFSInvalidDrive, - kHPFSCDROMDrive, - kHPFSHDDDrive, - kHPFSSSDDrive, - kHPFSUSBDrive, -}; - -/** @brief Explicit Boot Sector structure. */ -struct HPFS_EXPLICIT_BOOT_SECTOR; diff --git a/dev/hpfs/src/hpfs_main.cc b/dev/hpfs/src/hpfs_main.cc new file mode 100644 index 00000000..e65b03dc --- /dev/null +++ b/dev/hpfs/src/hpfs_main.cc @@ -0,0 +1,29 @@ +/* ------------------------------------------- + + Copyright ZKA Web Services Co. + + FILE: hpfs_main.cxx + PURPOSE: HPFS IFS entrypoint. + +------------------------------------------- */ + +#include + +static DDK_OBJECT_MANIFEST* kIfsObject = nullptr; + +/** @brief HPFS IFS main module function. */ +DK_EXTERN int32_t ModuleMain(void) +{ + auto ifs_handle = KernelGetObject(0, "IFS_OBJECT"); + + if (ifs_handle == nil) + { + return 1; + } + + /// TODO: Register this IFS with necessary I/O functions... + + kIfsObject = ifs_handle; + + return 0; +} diff --git a/dev/hpfs/src/hpfs_main.cxx b/dev/hpfs/src/hpfs_main.cxx deleted file mode 100644 index ce712f2c..00000000 --- a/dev/hpfs/src/hpfs_main.cxx +++ /dev/null @@ -1,29 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Web Services Co. - - FILE: hpfs_main.cxx - PURPOSE: HPFS IFS entrypoint. - -------------------------------------------- */ - -#include - -static DDK_OBJECT_MANIFEST* kIfsObject = nullptr; - -/** @brief HPFS IFS main module function. */ -DK_EXTERN int32_t ModuleMain(void) -{ - auto ifs_handle = KernelGetObject(0, "IFS_OBJECT"); - - if (ifs_handle == nil) - { - return 1; - } - - /// TODO: Register this IFS with necessary I/O functions... - - kIfsObject = ifs_handle; - - return 0; -} -- cgit v1.2.3