summaryrefslogtreecommitdiff
path: root/source/core/slang-shared-library.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-shared-library.h')
-rw-r--r--source/core/slang-shared-library.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/core/slang-shared-library.h b/source/core/slang-shared-library.h
index 44adb1ac6..c0074bad3 100644
--- a/source/core/slang-shared-library.h
+++ b/source/core/slang-shared-library.h
@@ -52,10 +52,9 @@ class DefaultSharedLibrary : public ISlangSharedLibrary, public ComBaseObject
SLANG_CLASS_GUID(0xe7f2597b, 0xf803, 0x4b6e, { 0xaf, 0x8b, 0xcb, 0xe3, 0xa2, 0x21, 0xfd, 0x5a })
// ISlangUnknown
- SLANG_NO_THROW SlangResult SLANG_MCALL queryInterface(SlangUUID const& uuid, void** outObject) SLANG_OVERRIDE;
- SLANG_COM_BASE_IUNKNOWN_ADD_REF
- SLANG_COM_BASE_IUNKNOWN_RELEASE
-
+ SLANG_COM_BASE_IUNKNOWN_ALL
+ // ICastable
+ virtual SLANG_NO_THROW void* SLANG_MCALL castAs(const SlangUUID& guid) SLANG_OVERRIDE;
// ISlangSharedLibrary
virtual SLANG_NO_THROW void* SLANG_MCALL findSymbolAddressByName(char const* name) SLANG_OVERRIDE;
@@ -71,6 +70,9 @@ class DefaultSharedLibrary : public ISlangSharedLibrary, public ComBaseObject
protected:
+ void* getInterface(const Guid& guid);
+ void* getObject(const Guid& guid);
+
SharedLibrary::Handle m_sharedLibraryHandle = nullptr;
};