hooked up sdague new sqlite asset database provider to the old asset system. So we can still use sqlite for assets while we wait for the rest of the new asset system to be wrote.

Needs more testing, so if it causes problems will have to swap back to db4o.
This commit is contained in:
MW
2007-09-10 06:45:54 +00:00
parent 7adc2212c7
commit 15423539f9
19 changed files with 428 additions and 47 deletions

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenSim.Framework.Types;
using libsecondlife;
namespace OpenSim.Framework.Interfaces
{
public interface IAssetProvider
{
void Initialise(string dbfile, string dbname);
AssetBase FetchAsset(LLUUID uuid);
void CreateAsset(AssetBase asset);
void UpdateAsset(AssetBase asset);
bool ExistsAsset(LLUUID uuid);
void CommitAssets(); // force a sync to the database
}
}

View File

@@ -37,9 +37,9 @@ namespace OpenSim.Framework.Interfaces
public interface IAssetServer
{
void SetReceiver(IAssetReceiver receiver);
void RequestAsset(LLUUID assetID, bool isTexture);
void FetchAsset(LLUUID assetID, bool isTexture);
void UpdateAsset(AssetBase asset);
void UploadNewAsset(AssetBase asset);
void CreateAsset(AssetBase asset);
void SetServerInfo(string ServerUrl, string ServerKey);
void Close();
}

View File

@@ -42,7 +42,8 @@ namespace OpenSim.Framework.Types
public AssetBase()
{
Name = " ";
Description = " ";
}
}
}