From bde40a348877ff33649c5335a9ebe0502a606d7c Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 25 Oct 2024 16:52:55 +0200 Subject: IMP: Cleanup source code. Signed-off-by: Amlal --- dev/sci/sci_base.h | 46 ++++------------------------------------------ 1 file changed, 4 insertions(+), 42 deletions(-) (limited to 'dev/sci/sci_base.h') diff --git a/dev/sci/sci_base.h b/dev/sci/sci_base.h index eca69595..0860e72f 100644 --- a/dev/sci/sci_base.h +++ b/dev/sci/sci_base.h @@ -10,8 +10,6 @@ Purpose: SCI core header file (C++ only). #ifndef __SCI_BASE_H__ #define __SCI_BASE_H__ -#include - #define ATTRIBUTE(X) __attribute__((X)) #define IMPORT_XPCOM extern "XPCOM" #define IMPORT_CXX extern "C++" @@ -35,46 +33,12 @@ typedef __INT8_TYPE__ SInt8; typedef void* VoidPtr; typedef __UINTPTR_TYPE__ UIntPtr; typedef char Char; -#include -#ifdef __XPCOM_IMPL__ -#include -#else -class IUnknown; // Refrenced from an IDB entry. -class ICLSID; // From the IDB, the constructor of the object, e.g: IAppCLSID. -class UUID; -class ATTRIBUTE(uuid("d7c144b6-0792-44b8-b06b-02b227b547df")) IUnknown -{ -public: - explicit IUnknown() = default; - virtual ~IUnknown() = default; - - IUnknown& operator=(const IUnknown&) = default; - IUnknown(const IUnknown&) = default; - - virtual SInt32 Release() = 0; - virtual void RemoveRef() = 0; - virtual IUnknown* AddRef() = 0; - virtual VoidPtr QueryClass(UUID* p_uuid) = 0; -}; -template -class IEventListener : public ClsID -{ - friend ClsID; - - explicit IEventListener() = default; - virtual ~IEventListener() = default; - - IEventListener& operator=(const IEventListener&) = default; - IEventListener(const IEventListener&) = default; - - virtual IEventListener& operator-=(const Char* event_name); - virtual IEventListener& operator+=(FnSign arg) = 0; -}; -#endif +#include +#include // ------------------------------------------------------------------------------------------ // -/// @note Handle typedefs. +/// @brief Handle Type Definitions. // ------------------------------------------------------------------------------------------ // typedef VoidPtr SCIObject; @@ -88,9 +52,7 @@ typedef SCIObject ShellObject; typedef SCIObject UIObject; // ------------------------------------------------------------------------------------------ // - -// ------------------------------------------------------------------------------------------ // -/// @note Dynamic Loader API. +/// @brief Dynamic Loader API. // ------------------------------------------------------------------------------------------ // /// @brief Get function which is part of the DLL. -- cgit v1.2.3