From f4401c59284258c6aa56707da64e3da32756329f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 23 Jun 2010 20:14:07 +0000 Subject: midway snapshot of work done on managing Region & Source lifetimes correctly. may fix missing MIDI file bug ; save empty playlists because they may be referred to by the history file ; undo commands auto-delete when objects they refer to die (currently not commands built from XML deserialization); Sources now know how many regions are using them for something, meaning that we know if we can delete the files holding any data for the source git-svn-id: svn://localhost/ardour2/branches/3.0@7291 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/region_factory.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/ardour/ardour/region_factory.h') diff --git a/libs/ardour/ardour/region_factory.h b/libs/ardour/ardour/region_factory.h index c9f387f172..459699d810 100644 --- a/libs/ardour/ardour/region_factory.h +++ b/libs/ardour/ardour/region_factory.h @@ -21,6 +21,7 @@ #define __ardour_region_factory_h__ #include +#include #include #include "pbd/id.h" @@ -78,7 +79,10 @@ class RegionFactory { /** create a region with specified sources @param srcs and XML state */ static boost::shared_ptr create (SourceList& srcs, const XMLNode&); + static void get_regions_using_source (boost::shared_ptr, std::set >& ); + static void map_remove (boost::shared_ptr); + static void map_remove_with_equivalents (boost::shared_ptr); static void delete_all_regions (); static const RegionMap& regions() { return region_map; } static uint32_t nregions (); -- cgit v1.2.3