summaryrefslogtreecommitdiffstats
path: root/src/Driver.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Driver.hpp')
-rw-r--r--src/Driver.hpp8
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;