diff options
author | Carl Hetherington <carl@carlh.net> | 2007-10-08 23:47:35 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2007-10-08 23:47:35 +0000 |
commit | 4d66204f4eb96ca802e9b301293ff4bd922717d0 (patch) | |
tree | e9ec9784f4cd1fd7673c783703221a6a53242e76 /libs/ardour/ardour/session.h | |
parent | 3f38e6b7f56ad85891d3669e0f1c58e6124b07f6 (diff) |
Various work on Bundles, especially dynamic ones so that you can, for example, pass tracks to busses by selecting the buss name from the track's output menu.
git-svn-id: svn://localhost/ardour2/trunk@2530 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/session.h')
-rw-r--r-- | libs/ardour/ardour/session.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 540ad08011..94caf8a242 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -710,13 +710,14 @@ class Session : public PBD::StatefulDestructible /* I/O bundles */ - template<class T> void foreach_bundle (T *obj, void (T::*func)(Bundle *)); - void add_bundle (Bundle *); - void remove_bundle (Bundle *); - Bundle *bundle_by_name (string) const; + void foreach_bundle (sigc::slot<void, boost::shared_ptr<Bundle> >); + void add_bundle (boost::shared_ptr<Bundle>); + void remove_bundle (boost::shared_ptr<Bundle>); + boost::shared_ptr<Bundle> bundle_by_name (string) const; + boost::shared_ptr<Bundle> bundle_by_ports (vector<string> const &) const; - sigc::signal<void,Bundle *> BundleAdded; - sigc::signal<void,Bundle *> BundleRemoved; + sigc::signal<void,boost::shared_ptr<Bundle> > BundleAdded; + sigc::signal<void,boost::shared_ptr<Bundle> > BundleRemoved; /* MIDI */ @@ -1558,9 +1559,9 @@ class Session : public PBD::StatefulDestructible /* I/O bundles */ - typedef list<Bundle *> BundleList; + typedef list<boost::shared_ptr<Bundle> > BundleList; mutable Glib::Mutex bundle_lock; - BundleList _bundles; + BundleList _bundles; int load_bundles (const XMLNode&); void reverse_diskstream_buffers (); |