summaryrefslogtreecommitdiffstats
path: root/src/PatchageEvent.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-29 00:35:02 +0100
committerDavid Robillard <d@drobilla.net>2020-11-29 00:35:02 +0100
commitfb54982c5ade5bee05b8d4a817d258ba89df701b (patch)
tree287934e43f3e0dfab6bc6cf9295a0b080bd7f707 /src/PatchageEvent.hpp
parent395362edbd8cd4ff08f3c29f3ae36d7d20229f21 (diff)
downloadpatchage-fb54982c5ade5bee05b8d4a817d258ba89df701b.tar.gz
patchage-fb54982c5ade5bee05b8d4a817d258ba89df701b.tar.bz2
patchage-fb54982c5ade5bee05b8d4a817d258ba89df701b.zip
Replace attached and detached signals with events
Diffstat (limited to 'src/PatchageEvent.hpp')
-rw-r--r--src/PatchageEvent.hpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/PatchageEvent.hpp b/src/PatchageEvent.hpp
index d5add47..0095cde 100644
--- a/src/PatchageEvent.hpp
+++ b/src/PatchageEvent.hpp
@@ -19,6 +19,7 @@
#include "ClientID.hpp"
#include "ClientInfo.hpp"
+#include "ClientType.hpp"
#include "PortID.hpp"
#include "PortInfo.hpp"
@@ -26,6 +27,16 @@
#include <string>
+struct DriverAttachmentEvent
+{
+ ClientType type;
+};
+
+struct DriverDetachmentEvent
+{
+ ClientType type;
+};
+
struct ClientCreationEvent
{
ClientID id;
@@ -61,7 +72,9 @@ struct DisconnectionEvent
};
/// An event from drivers that is processed by the GUI
-using PatchageEvent = boost::variant<ClientCreationEvent,
+using PatchageEvent = boost::variant<DriverAttachmentEvent,
+ DriverDetachmentEvent,
+ ClientCreationEvent,
ClientDestructionEvent,
PortCreationEvent,
PortDestructionEvent,