Fix deadlock and potential race condition when editing MIDI.
[ardour.git] / libs / evoral / evoral / EventSink.hpp
index 67b33d69653f0748d7b7504b889b3efd4e5f1579..2fd2e7591abe425c50bb790a27100af720d06be7 100644 (file)
 #ifndef EVORAL_EVENT_SINK_HPP
 #define EVORAL_EVENT_SINK_HPP
 
-#include <evoral/types.hpp>
+#include "evoral/types.hpp"
 
 namespace Evoral {
 
 
 /** Pure virtual base for anything you can write events to.
  */
+template<typename Time>
 class EventSink {
 public:
-        virtual ~EventSink() {}
-       virtual size_t write(timestamp_t    time,
-                            uint32_t       size,
-                            const uint8_t* buf) = 0;
+       virtual ~EventSink() {}
+       virtual uint32_t write(Time time, EventType type, uint32_t size, const uint8_t* buf) = 0;
 };