diff options
Diffstat (limited to 'Private/NewKit')
| -rw-r--r-- | Private/NewKit/Application.hxx | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Private/NewKit/Application.hxx b/Private/NewKit/Application.hxx new file mode 100644 index 00000000..292bb434 --- /dev/null +++ b/Private/NewKit/Application.hxx @@ -0,0 +1,29 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +#pragma once + +/// +/// @brief Main application object, given by the OS to interact with the OS. +/// @file Application.hxx +/// @author Amlal EL Mahrouss +/// + +#include <NewKit/Defines.hpp> +#include <CFKit/GUIDWrapper.hpp> + +/// \brief Application Interface. +/// \author Amlal El Mahrouss +typedef struct Application final { + /// @brief Releases the object exit the process on main object. + NewOS::Void(*Release)(struct Application* Self, NewOS::Int32 ExitCode); + /// @brief Invoke a function from the application object. + NewOS::IntPtr(*Invoke)(struct Application* Self, NewOS::Int32 Sel, ...); + /// @brief Query a new application object from a GUID. + NewOS::Void(*Query)(struct Application* Self, NewOS::VoidPtr* Dst, NewOS::SizeT SzDst, NewOS::XRN::GUIDSequence GuidOf); +} Application, *ApplicationRef; + +#define object_cast reinterpret_cast<ApplicationRef> |
