diff options
Diffstat (limited to 'OpenSim/Region/DataSnapshot/Interfaces')
-rw-r--r-- | OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshot.cs | 13 | ||||
-rw-r--r-- | OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshotProvider.cs | 12 |
2 files changed, 20 insertions, 5 deletions
diff --git a/OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshot.cs b/OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshot.cs new file mode 100644 index 0000000..697d313 --- /dev/null +++ b/OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshot.cs | |||
@@ -0,0 +1,13 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using System.Xml; | ||
5 | |||
6 | namespace OpenSim.Region.DataSnapshot.Interfaces | ||
7 | { | ||
8 | public interface IDataSnapshot | ||
9 | { | ||
10 | XmlDocument GetSnapshot(string regionName); | ||
11 | void MakeEverythingStale(); | ||
12 | } | ||
13 | } | ||
diff --git a/OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshotProvider.cs b/OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshotProvider.cs index fb9c51a..1519355 100644 --- a/OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshotProvider.cs +++ b/OpenSim/Region/DataSnapshot/Interfaces/IDataSnapshotProvider.cs | |||
@@ -26,19 +26,21 @@ | |||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | using System; | ||
29 | using System.Xml; | 30 | using System.Xml; |
30 | using OpenSim.Region.Environment.Scenes; | 31 | using OpenSim.Region.Environment.Scenes; |
31 | 32 | ||
32 | namespace OpenSim.Region.DataSnapshot.Interfaces | 33 | namespace OpenSim.Region.DataSnapshot.Interfaces |
33 | { | 34 | { |
35 | public delegate void ProviderStale(IDataSnapshotProvider provider); | ||
36 | |||
34 | public interface IDataSnapshotProvider | 37 | public interface IDataSnapshotProvider |
35 | { | 38 | { |
36 | XmlNode RequestSnapshotData(XmlDocument document); | 39 | XmlNode RequestSnapshotData(XmlDocument document); |
37 | |||
38 | //void PrepareData(); | ||
39 | |||
40 | void Initialize(Scene scene, DataSnapshotManager parent); | 40 | void Initialize(Scene scene, DataSnapshotManager parent); |
41 | |||
42 | Scene GetParentScene { get; } | 41 | Scene GetParentScene { get; } |
42 | String Name { get; } | ||
43 | bool Stale { get; set; } | ||
44 | event ProviderStale OnStale; | ||
43 | } | 45 | } |
44 | } \ No newline at end of file | 46 | } |