From e31f5d999837b0d0d63dc824c50e9da4acca7244 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 4 Oct 2017 00:35:29 +0200 Subject: 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 --- libs/ardour/ardour/internal_send.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libs/ardour/ardour/internal_send.h') diff --git a/libs/ardour/ardour/internal_send.h b/libs/ardour/ardour/internal_send.h index c46236c559..8547f73b08 100644 --- a/libs/ardour/ardour/internal_send.h +++ b/libs/ardour/ardour/internal_send.h @@ -27,7 +27,7 @@ namespace ARDOUR { class LIBARDOUR_API InternalSend : public Send { - public: +public: InternalSend (Session&, boost::shared_ptr, boost::shared_ptr, boost::shared_ptr send_from, boost::shared_ptr send_to, Delivery::Role role = Delivery::Aux, bool ignore_bitslot = false); virtual ~InternalSend (); @@ -35,8 +35,6 @@ class LIBARDOUR_API InternalSend : public Send bool set_name (const std::string&); bool visible() const; - XMLNode& state(bool full); - XMLNode& get_state(void); int set_state(const XMLNode& node, int version); void cycle_start (pframes_t); @@ -62,7 +60,10 @@ class LIBARDOUR_API InternalSend : public Send static PBD::Signal1 CycleStart; - private: +protected: + XMLNode& state(); + +private: BufferSet mixbufs; boost::shared_ptr _send_from; boost::shared_ptr _send_to; -- cgit v1.2.3