diff options
Diffstat (limited to 'src/Patchage.hpp')
-rw-r--r-- | src/Patchage.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Patchage.hpp b/src/Patchage.hpp index daae7c7..b358f34 100644 --- a/src/Patchage.hpp +++ b/src/Patchage.hpp @@ -42,11 +42,14 @@ #include "ILog.hpp" #include "Legend.hpp" #include "Metadata.hpp" +#include "PatchageEvent.hpp" #include "TextViewLog.hpp" #include "Widget.hpp" #include "patchage_config.h" #include <memory> +#include <mutex> +#include <queue> #include <set> #include <string> @@ -116,6 +119,9 @@ protected: Gtk::TreeModelColumn<Glib::ustring> label; }; + void on_driver_event(const PatchageEvent& event); + void process_events(); + void connect_widgets(); void on_arrange(); @@ -154,6 +160,9 @@ protected: Glib::RefPtr<Gtk::Builder> _xml; + std::mutex _events_mutex; + std::queue<PatchageEvent> _driver_events; + #ifdef HAVE_ALSA AlsaDriver* _alsa_driver; void menu_alsa_connect(); |