aboutsummaryrefslogtreecommitdiff
path: root/Src/omBrowser/ifc_omstoragehandler.h
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/omBrowser/ifc_omstoragehandler.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/omBrowser/ifc_omstoragehandler.h')
-rw-r--r--Src/omBrowser/ifc_omstoragehandler.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/Src/omBrowser/ifc_omstoragehandler.h b/Src/omBrowser/ifc_omstoragehandler.h
new file mode 100644
index 00000000..748546b0
--- /dev/null
+++ b/Src/omBrowser/ifc_omstoragehandler.h
@@ -0,0 +1,45 @@
+#ifndef NULLSOFT_WINAMP_OMSTORAGE_HANDLER_INTERFACE_HEADER
+#define NULLSOFT_WINAMP_OMSTORAGE_HANDLER_INTERFACE_HEADER
+
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
+#pragma once
+#endif
+
+// {9B37B560-CF31-41c6-BB35-14F16E290AFB}
+static const GUID IFC_OmStorageHandler =
+{ 0x9b37b560, 0xcf31, 0x41c6, { 0xbb, 0x35, 0x14, 0xf1, 0x6e, 0x29, 0xa, 0xfb } };
+
+#include <bfc/dispatch.h>
+
+class ifc_omstorage;
+class ifc_omservice;
+
+class __declspec(novtable) ifc_omstoragehandler : public Dispatchable
+{
+protected:
+ ifc_omstoragehandler() {}
+ ~ifc_omstoragehandler() {}
+
+public:
+ HRESULT GetKey(const wchar_t **ppKey);
+ void Invoke(ifc_omservice *service, const wchar_t *key, const wchar_t * value);
+
+public:
+ DISPATCH_CODES
+ {
+ API_GETKEY = 10,
+ API_INVOKE = 20,
+ };
+};
+
+inline HRESULT ifc_omstoragehandler::GetKey(const wchar_t **ppKey)
+{
+ return _call(API_GETKEY, (HRESULT)E_NOTIMPL, ppKey);
+}
+
+inline void ifc_omstoragehandler::Invoke(ifc_omservice *service, const wchar_t *key, const wchar_t *value)
+{
+ _voidcall(API_INVOKE, service, key, value);
+}
+
+#endif //NULLSOFT_WINAMP_OMSTORAGE_HANDLER_INTERFACE_HEADER \ No newline at end of file