aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-01-23 17:07:37 +0000
committerJustin Clarke Casey2009-01-23 17:07:37 +0000
commitddff7ab20e32664e09f06668f6e6250ea3b3abf7 (patch)
tree6dd80617df340bb3a9cff3d922c8809d7c4413ba /OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs
parent* Adds a synchronous jpeg decode for pre-caching purposes (diff)
downloadopensim-SC_OLD-ddff7ab20e32664e09f06668f6e6250ea3b3abf7.zip
opensim-SC_OLD-ddff7ab20e32664e09f06668f6e6250ea3b3abf7.tar.gz
opensim-SC_OLD-ddff7ab20e32664e09f06668f6e6250ea3b3abf7.tar.bz2
opensim-SC_OLD-ddff7ab20e32664e09f06668f6e6250ea3b3abf7.tar.xz
* Add direct stream loading and saving methods to the archive module.
* The async stream method does not yet signal completion to interested calling code
Diffstat (limited to 'OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs')
-rw-r--r--OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs19
1 files changed, 19 insertions, 0 deletions
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 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System.IO;
29
28namespace OpenSim.Region.Environment.Interfaces 30namespace OpenSim.Region.Environment.Interfaces
29{ 31{
30 /// <summary> 32 /// <summary>
@@ -39,9 +41,26 @@ namespace OpenSim.Region.Environment.Interfaces
39 void ArchiveRegion(string savePath); 41 void ArchiveRegion(string savePath);
40 42
41 /// <summary> 43 /// <summary>
44 /// Archive the region to a stream.
45 /// </summary>
46 ///
47 /// This may be a little problematic to use right now since saves happen asynchronously and there is not yet
48 /// a mechanism to signal completion to the caller (possibly other than continually checking whether the
49 /// stream has any data in it). TODO: Address this.
50 ///
51 /// <param name="saveStream"></param>
52 void ArchiveRegion(Stream saveStream);
53
54 /// <summary>
42 /// Dearchive the given region archive into the scene 55 /// Dearchive the given region archive into the scene
43 /// </summary> 56 /// </summary>
44 /// <param name="loadPath"></param> 57 /// <param name="loadPath"></param>
45 void DearchiveRegion(string loadPath); 58 void DearchiveRegion(string loadPath);
59
60 /// <summary>
61 /// Dearchive a region from a stream
62 /// </summary>
63 /// <param name="loadStream"></param>
64 void DearchiveRegion(Stream loadStream);
46 } 65 }
47} 66}