summaryrefslogtreecommitdiffstats
path: root/src/server/events/Undo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/events/Undo.cpp')
-rw-r--r--src/server/events/Undo.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/server/events/Undo.cpp b/src/server/events/Undo.cpp
index 83279744..a6c80217 100644
--- a/src/server/events/Undo.cpp
+++ b/src/server/events/Undo.cpp
@@ -24,13 +24,20 @@ namespace Ingen {
namespace Server {
namespace Events {
-Undo::Undo(Engine& engine,
- SPtr<Interface> client,
- int32_t id,
- SampleCount timestamp,
- bool is_redo)
- : Event(engine, client, id, timestamp)
- , _is_redo(is_redo)
+Undo::Undo(Engine& engine,
+ SPtr<Interface> client,
+ SampleCount timestamp,
+ const Ingen::Undo& msg)
+ : Event(engine, client, msg.seq, timestamp)
+ , _is_redo(false)
+{}
+
+Undo::Undo(Engine& engine,
+ SPtr<Interface> client,
+ SampleCount timestamp,
+ const Ingen::Redo& msg)
+ : Event(engine, client, msg.seq, timestamp)
+ , _is_redo(true)
{}
bool