summaryrefslogtreecommitdiffstats
path: root/src/handle_event.cpp
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/handle_event.cpp
parent395362edbd8cd4ff08f3c29f3ae36d7d20229f21 (diff)
downloadpatchage-fb54982c5ade5bee05b8d4a817d258ba89df701b.tar.gz
patchage-fb54982c5ade5bee05b8d4a817d258ba89df701b.tar.bz2
patchage-fb54982c5ade5bee05b8d4a817d258ba89df701b.zip
Replace attached and detached signals with events
Diffstat (limited to 'src/handle_event.cpp')
-rw-r--r--src/handle_event.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/handle_event.cpp b/src/handle_event.cpp
index 98a81f3..d3752d1 100644
--- a/src/handle_event.cpp
+++ b/src/handle_event.cpp
@@ -38,6 +38,16 @@ public:
: _patchage{patchage}
{}
+ void operator()(const DriverAttachmentEvent& event)
+ {
+ _patchage.driver_attached(event.type);
+ }
+
+ void operator()(const DriverDetachmentEvent& event)
+ {
+ _patchage.driver_detached(event.type);
+ }
+
void operator()(const ClientCreationEvent& event)
{
// Don't create empty modules, they will be created when ports are added