Add API to query registered controllers
This commit is contained in:
parent
276172b8b1
commit
a811583380
@ -145,6 +145,17 @@ Controllable::by_id (const ID& id)
|
|||||||
return boost::shared_ptr<Controllable>();
|
return boost::shared_ptr<Controllable>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Controllable::ControllableSet
|
||||||
|
Controllable::registered_controllables ()
|
||||||
|
{
|
||||||
|
ControllableSet rv;
|
||||||
|
Glib::Threads::RWLock::ReaderLock lm (registry_lock);
|
||||||
|
for (auto const& i : registry) {
|
||||||
|
rv.insert (i->shared_from_this ());
|
||||||
|
}
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Controllable::dump_registry ()
|
Controllable::dump_registry ()
|
||||||
{
|
{
|
||||||
|
@ -169,6 +169,10 @@ public:
|
|||||||
static boost::shared_ptr<Controllable> by_id (const PBD::ID&);
|
static boost::shared_ptr<Controllable> by_id (const PBD::ID&);
|
||||||
static void dump_registry ();
|
static void dump_registry ();
|
||||||
|
|
||||||
|
|
||||||
|
typedef std::set<boost::shared_ptr<Controllable>> ControllableSet;
|
||||||
|
static ControllableSet registered_controllables ();
|
||||||
|
|
||||||
static const std::string xml_node_name;
|
static const std::string xml_node_name;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user