summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/ardour/processor.h5
-rw-r--r--libs/ardour/processor.cc20
2 files changed, 25 insertions, 0 deletions
diff --git a/libs/ardour/ardour/processor.h b/libs/ardour/ardour/processor.h
index 9038088cf0..94b9363480 100644
--- a/libs/ardour/ardour/processor.h
+++ b/libs/ardour/ardour/processor.h
@@ -48,6 +48,7 @@ class Processor : public SessionObject, public Automatable, public Latent
static const std::string state_node_name;
Processor(Session&, const std::string& name);
+ Processor (const Processor& other);
virtual ~Processor() { }
@@ -99,6 +100,9 @@ class Processor : public SessionObject, public Automatable, public Latent
PBD::Signal0<void> ActiveChanged;
PBD::Signal2<void,ChanCount,ChanCount> ConfigurationChanged;
+
+ void set_ui (void*);
+ void* get_ui () const { return _ui_pointer; }
protected:
virtual int set_state_2X (const XMLNode&, int version);
@@ -111,6 +115,7 @@ protected:
ChanCount _configured_output;
bool _display_to_user;
bool _pre_fader;
+ void* _ui_pointer;
};
} // namespace ARDOUR
diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc
index 69d0f2408d..8ddc58735c 100644
--- a/libs/ardour/processor.cc
+++ b/libs/ardour/processor.cc
@@ -68,6 +68,20 @@ Processor::Processor(Session& session, const string& name)
, _configured(false)
, _display_to_user (true)
, _pre_fader (false)
+ , _ui_pointer (0)
+{
+}
+
+Processor::Processor (const Processor& other)
+ : SessionObject(other.session(), other.name())
+ , Automatable (other.session())
+ , _pending_active(other._pending_active)
+ , _active(other._active)
+ , _next_ab_is_active(false)
+ , _configured(false)
+ , _display_to_user (true)
+ , _pre_fader (false)
+ , _ui_pointer (0)
{
}
@@ -279,3 +293,9 @@ Processor::set_pre_fader (bool p)
{
_pre_fader = p;
}
+
+void
+Processor::set_ui (void* p)
+{
+ _ui_pointer = p;
+}