mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 23:17:46 +01:00
(Source List) Add forall_regions function, used by Region and Source lists.
This commit is contained in:
parent
80c32236c5
commit
73e6af51a8
1 changed files with 9 additions and 0 deletions
|
|
@ -95,6 +95,15 @@ public:
|
|||
static void delete_all_regions ();
|
||||
static const RegionMap& regions() { return region_map; }
|
||||
static uint32_t nregions ();
|
||||
|
||||
static void foreach_region (boost::function<void( boost::shared_ptr<Region> )> f) {
|
||||
Glib::Threads::Mutex::Lock ls (region_map_lock);
|
||||
for (RegionMap::const_iterator i = region_map.begin(); i != region_map.end(); ++i) {
|
||||
f ( (*i).second );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int region_name (std::string &, std::string, bool new_level = false);
|
||||
static std::string new_region_name (std::string);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue