OSC is now driven by an event loop; fix up lifetime mgmt of Glib::Source to workaroun...
[ardour.git] / libs / pbd / pbd / stateful.h
index 8ea647475aa5847d24987b1fb8f7a016db4be8b8..0204c8084a9e3d0d7d25ba7cf32431d9bc8e7999 100644 (file)
@@ -21,7 +21,7 @@
 #define __pbd_stateful_h__
 
 #include <string>
-#include <pbd/id.h>
+#include "pbd/id.h"
 
 class XMLNode;
 
@@ -38,7 +38,7 @@ class Stateful {
 
        virtual XMLNode& get_state (void) = 0;
 
-       virtual int set_state (const XMLNode&) = 0;
+       virtual int set_state (const XMLNode&, int version) = 0;
 
        /* Extra XML nodes */
 
@@ -47,6 +47,9 @@ class Stateful {
 
        const PBD::ID& id() const { return _id; }
 
+       static int current_state_version;
+       static int loading_state_version;
+
   protected:
 
        void add_instant_xml (XMLNode&, const sys::path& directory_path);