From ddff7ab20e32664e09f06668f6e6250ea3b3abf7 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 23 Jan 2009 17:07:37 +0000 Subject: * Add direct stream loading and saving methods to the archive module. * The async stream method does not yet signal completion to interested calling code --- .../Environment/Interfaces/IRegionArchiverModule.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs') diff --git a/OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs b/OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs index 11eea20..7db784e 100644 --- a/OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs +++ b/OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs @@ -25,6 +25,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System.IO; + namespace OpenSim.Region.Environment.Interfaces { /// @@ -39,9 +41,26 @@ namespace OpenSim.Region.Environment.Interfaces void ArchiveRegion(string savePath); /// + /// Archive the region to a stream. + /// + /// + /// This may be a little problematic to use right now since saves happen asynchronously and there is not yet + /// a mechanism to signal completion to the caller (possibly other than continually checking whether the + /// stream has any data in it). TODO: Address this. + /// + /// + void ArchiveRegion(Stream saveStream); + + /// /// Dearchive the given region archive into the scene /// /// void DearchiveRegion(string loadPath); + + /// + /// Dearchive a region from a stream + /// + /// + void DearchiveRegion(Stream loadStream); } } -- cgit v1.1