move control surface prefs onto their own tab in the user prefs; for Generic MIDI...
[ardour.git] / libs / evoral / evoral / Event.hpp
index d812922afce7ab6fc71be6c23844044b0156cadc..747b795480df4ee240309459f83f099bc01952b0 100644 (file)
@@ -44,7 +44,8 @@ void init_event_id_counter(event_id_t n);
  * Template parameter Time is the type of the time stamp used for this event.
  */
 template<typename Time>
-struct Event {
+class Event {
+public:
 #ifdef EVORAL_EVENT_ALLOC
        Event (EventType type=0, Time time=0, uint32_t size=0, uint8_t* buf=NULL, bool alloc=false);
 
@@ -56,11 +57,11 @@ struct Event {
         */
        Event(const Event& copy, bool alloc);
 
-       ~Event();
+        ~Event();
 
        const Event& operator=(const Event& copy);
 
-       void set(uint8_t* buf, uint32_t size, Time t);
+       void set(const uint8_t* buf, uint32_t size, Time t);
 
        inline bool operator==(const Event& other) const {
                if (_type != other._type)