diff options
author | David Robillard <d@drobilla.net> | 2008-02-24 17:27:21 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-02-24 17:27:21 +0000 |
commit | 25f833aac2100a9947dbd7ee1de7d8c6a6b41648 (patch) | |
tree | 73402fd5e8b43c06e5cfb548f10402713d1c7fde /src/Driver.hpp | |
parent | bd34ee943e1041cfff7d4bd896bb4bb2c09a546a (diff) | |
download | patchage-25f833aac2100a9947dbd7ee1de7d8c6a6b41648.tar.gz patchage-25f833aac2100a9947dbd7ee1de7d8c6a6b41648.tar.bz2 patchage-25f833aac2100a9947dbd7ee1de7d8c6a6b41648.zip |
Rework event handling slightly for jack dbus driver.
git-svn-id: http://svn.drobilla.net/lad/patchage@1162 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Driver.hpp')
-rw-r--r-- | src/Driver.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Driver.hpp b/src/Driver.hpp index 5c4c35d..0f1255e 100644 --- a/src/Driver.hpp +++ b/src/Driver.hpp @@ -31,6 +31,14 @@ class Driver { public: virtual ~Driver() {} + virtual void process_events(Patchage* app) { + while (!events().empty()) { + PatchageEvent& ev = events().front(); + ev.execute(app); + events().pop(); + } + } + virtual void attach(bool launch_daemon) = 0; virtual void detach() = 0; virtual bool is_attached() const = 0; |