123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using System.Collections.Generic;
- using OpenMetaverse;
- using OpenSim.Framework;
- namespace OpenSim.Data
- {
- public interface IAssetDataPlugin : IPlugin
- {
- AssetBase GetAsset(UUID uuid);
- void StoreAsset(AssetBase asset);
- bool ExistsAsset(UUID uuid);
- List<AssetMetadata> FetchAssetMetadataSet(int start, int count);
- void Initialise(string connect);
- bool Delete(string id);
- }
- public class AssetDataInitialiser : PluginInitialiserBase
- {
- private string connect;
- public AssetDataInitialiser (string s) { connect = s; }
- public override void Initialise (IPlugin plugin)
- {
- IAssetDataPlugin p = plugin as IAssetDataPlugin;
- p.Initialise (connect);
- }
- }
- }
|