From 2270b252656146d9d74b84665a7ace6c3139db30 Mon Sep 17 00:00:00 2001
From: Mike Mazur
Date: Thu, 31 Jul 2008 09:24:28 +0000
Subject: Thanks, sempuki, for a patch that moves all Grid Server's plugins to
PluginLoader. Fix issue 1871.
---
OpenSim/Framework/IInventoryData.cs | 32 +++++++++++++-------------------
1 file changed, 13 insertions(+), 19 deletions(-)
(limited to 'OpenSim/Framework/IInventoryData.cs')
diff --git a/OpenSim/Framework/IInventoryData.cs b/OpenSim/Framework/IInventoryData.cs
index fabcbe2..0d4c555 100644
--- a/OpenSim/Framework/IInventoryData.cs
+++ b/OpenSim/Framework/IInventoryData.cs
@@ -33,7 +33,7 @@ namespace OpenSim.Framework
///
/// An interface for accessing inventory data from a storage server
///
- public interface IInventoryData
+ public interface IInventoryDataPlugin : IPlugin
{
///
/// Initialises the interface
@@ -41,23 +41,6 @@ namespace OpenSim.Framework
void Initialise(string connect);
///
- /// Closes the interface
- ///
- void Close();
-
- ///
- /// The plugin being loaded
- ///
- /// A string containing the plugin name
- string getName();
-
- ///
- /// The plugins version
- ///
- /// A string containing the plugin version
- string getVersion();
-
- ///
/// Returns all child folders in the hierarchy from the parent folder and down.
/// Does not return the parent folder itself.
///
@@ -149,4 +132,15 @@ namespace OpenSim.Framework
/// The id of the folder
void deleteInventoryFolder(LLUUID folder);
}
-}
\ No newline at end of file
+
+ public class InventoryDataInitialiser : PluginInitialiserBase
+ {
+ private string connect;
+ public InventoryDataInitialiser (string s) { connect = s; }
+ public override void Initialise (IPlugin plugin)
+ {
+ IInventoryDataPlugin p = plugin as IInventoryDataPlugin;
+ p.Initialise (connect);
+ }
+ }
+}
--
cgit v1.1