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/src/hpfs_main.cc | 29 +++++++++++++++++++++++++++++ dev/hpfs/src/hpfs_main.cxx | 29 ----------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 dev/hpfs/src/hpfs_main.cc delete mode 100644 dev/hpfs/src/hpfs_main.cxx (limited to 'dev/hpfs/src') 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