diff options
author | Melanie Thielker | 2009-05-10 14:03:06 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-05-10 14:03:06 +0000 |
commit | 1a910b6e1dbace70b27581c51148a8732b46de79 (patch) | |
tree | c13e58aa932b0db95ca895cd0ff1275c0014ca9f /OpenSim/Services/Interfaces | |
parent | Add some asset cache plumbing. Change the generic cache from UUID to string (diff) | |
download | opensim-SC-1a910b6e1dbace70b27581c51148a8732b46de79.zip opensim-SC-1a910b6e1dbace70b27581c51148a8732b46de79.tar.gz opensim-SC-1a910b6e1dbace70b27581c51148a8732b46de79.tar.bz2 opensim-SC-1a910b6e1dbace70b27581c51148a8732b46de79.tar.xz |
Connect up the new asset cache and introduce an asynchronous call path
for asset retrieval (full asset only) to ease migration to the new system
Diffstat (limited to 'OpenSim/Services/Interfaces')
-rw-r--r-- | OpenSim/Services/Interfaces/IAssetService.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Services/Interfaces/IAssetService.cs b/OpenSim/Services/Interfaces/IAssetService.cs index e1717d0..ec8a71b 100644 --- a/OpenSim/Services/Interfaces/IAssetService.cs +++ b/OpenSim/Services/Interfaces/IAssetService.cs | |||
@@ -25,10 +25,13 @@ | |||
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 | ||
28 | using System; | ||
28 | using OpenSim.Framework; | 29 | using OpenSim.Framework; |
29 | 30 | ||
30 | namespace OpenSim.Services.Interfaces | 31 | namespace OpenSim.Services.Interfaces |
31 | { | 32 | { |
33 | public delegate void AssetRetrieved(string id, Object sender, AssetBase asset); | ||
34 | |||
32 | public interface IAssetService | 35 | public interface IAssetService |
33 | { | 36 | { |
34 | // Three different ways to retrieve an asset | 37 | // Three different ways to retrieve an asset |
@@ -37,6 +40,8 @@ namespace OpenSim.Services.Interfaces | |||
37 | AssetMetadata GetMetadata(string id); | 40 | AssetMetadata GetMetadata(string id); |
38 | byte[] GetData(string id); | 41 | byte[] GetData(string id); |
39 | 42 | ||
43 | bool Get(string id, Object sender, AssetRetrieved handler); | ||
44 | |||
40 | // Creates a new asset | 45 | // Creates a new asset |
41 | // Returns a random ID if none is passed into it | 46 | // Returns a random ID if none is passed into it |
42 | // | 47 | // |