summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/stateful.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-10-15 18:56:11 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-10-15 18:56:11 +0000
commit8713667ec1a6cc9ba56c07f763e5a422cc47fbef (patch)
tree56727634d8a1567679a7ba76cff93bf06e7c271f /libs/pbd/pbd/stateful.h
parent79f91c7a205d981d2b8cc15e32a6da02d8423065 (diff)
rework Stateful::set_state() patch to avoid default version argument
git-svn-id: svn://localhost/ardour2/branches/3.0@5787 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/stateful.h')
-rw-r--r--libs/pbd/pbd/stateful.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/pbd/pbd/stateful.h b/libs/pbd/pbd/stateful.h
index 324d9c1222..0204c8084a 100644
--- a/libs/pbd/pbd/stateful.h
+++ b/libs/pbd/pbd/stateful.h
@@ -38,7 +38,7 @@ class Stateful {
virtual XMLNode& get_state (void) = 0;
- virtual int set_state (const XMLNode&, int version = 3000) = 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);