aboutsummaryrefslogtreecommitdiff
path: root/Src/replicant/component/ifc_component_sync.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/replicant/component/ifc_component_sync.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/replicant/component/ifc_component_sync.h')
-rw-r--r--Src/replicant/component/ifc_component_sync.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/Src/replicant/component/ifc_component_sync.h b/Src/replicant/component/ifc_component_sync.h
new file mode 100644
index 00000000..3e0bb74c
--- /dev/null
+++ b/Src/replicant/component/ifc_component_sync.h
@@ -0,0 +1,22 @@
+#pragma once
+#include "foundation/dispatch.h"
+
+// {667F8818-AECD-4017-80EE-C43E096E68C1}
+static const GUID ifc_component_sync_interface_guid =
+{ 0x667f8818, 0xaecd, 0x4017, { 0x80, 0xee, 0xc4, 0x3e, 0x9, 0x6e, 0x68, 0xc1 } };
+
+class ifc_component_sync : public Wasabi2::Dispatchable
+{
+protected:
+ ifc_component_sync() : Wasabi2::Dispatchable(DISPATCHABLE_VERSION) {}
+ ~ifc_component_sync() {}
+public:
+ static GUID GetInterfaceGUID() { return ifc_component_sync_interface_guid; }
+ int Wait(size_t count) { return ComponentSync_Wait(count); }
+ enum
+ {
+ DISPATCHABLE_VERSION=0,
+ };
+private:
+ virtual int WASABICALL ComponentSync_Wait(size_t count)=0;
+};