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 0d75a8579a29f3009a177df123aa6d390760a4bb..0204c8084a9e3d0d7d25ba7cf32431d9bc8e7999 100644 (file)
@@ -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);