diff options
author | Robin Gareus <robin@gareus.org> | 2017-10-04 00:35:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-10-04 00:54:55 +0200 |
commit | e31f5d999837b0d0d63dc824c50e9da4acca7244 (patch) | |
tree | ef4712ccd25e8cc651ffabcd16e120571c21921d /libs/ardour/ardour/route.h | |
parent | 5dd9acf9ab39306277652c28fb5ac4af330e0af0 (diff) |
Clean up State API:
* Processor implement get_state(), classes derived from Processor
implement protected ::state() -- as documented in processor.h
* likewise for Route, Track: make ::state() a protected interface
* removal of "full_state", use explicit "template_save"
* use RAII/Unwind to skip saving automation-state
Diffstat (limited to 'libs/ardour/ardour/route.h')
-rw-r--r-- | libs/ardour/ardour/route.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/ardour/ardour/route.h b/libs/ardour/ardour/route.h index 830ef4bab3..8500232c27 100644 --- a/libs/ardour/ardour/route.h +++ b/libs/ardour/ardour/route.h @@ -390,10 +390,9 @@ public: PBD::Signal0<void> io_changed; /* stateful */ - XMLNode& get_state(); + XMLNode& get_template(); virtual int set_state (const XMLNode&, int version); - virtual XMLNode& get_template(); XMLNode& get_processor_state (); void set_processor_state (const XMLNode&); @@ -674,7 +673,7 @@ protected: virtual ChanCount input_streams () const; - virtual XMLNode& state(bool); + virtual XMLNode& state (bool save_template); int configure_processors (ProcessorStreams*); |