diff options
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/session.h | 8 | ||||
-rw-r--r-- | libs/ardour/ardour/smf_source.h | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 2da54f8bbc..96adcf0981 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1901,7 +1901,13 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop void update_latency (bool playback); - XMLNode& state(bool); + enum snapshot_t { + NormalSave, + SnapshotKeep, + SwitchToSnapshot + }; + + XMLNode& state(bool, snapshot_t snapshot_type = NormalSave); /* click track */ typedef std::list<Click*> Clicks; diff --git a/libs/ardour/ardour/smf_source.h b/libs/ardour/ardour/smf_source.h index 979c20dd21..9bc6584355 100644 --- a/libs/ardour/ardour/smf_source.h +++ b/libs/ardour/ardour/smf_source.h @@ -70,10 +70,10 @@ public: static bool valid_midi_file (const std::string& path); void prevent_deletion (); + void set_path (const std::string& newpath); protected: void close (); - void set_path (const std::string& newpath); void flush_midi (const Lock& lock); private: |