From e0e0db366061eae148364e3d5670f275b1ab25b7 Mon Sep 17 00:00:00 2001 From: Mike Mazur Date: Fri, 18 Jul 2008 04:51:41 +0000 Subject: Thanks, sempuki, for a patch that moves all grid plugins to new PluginLoader (issue 1763). --- OpenSim/Data/ILogData.cs | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'OpenSim/Data/ILogData.cs') diff --git a/OpenSim/Data/ILogData.cs b/OpenSim/Data/ILogData.cs index 7275637..34657dc 100644 --- a/OpenSim/Data/ILogData.cs +++ b/OpenSim/Data/ILogData.cs @@ -25,6 +25,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using Mono.Addins; +using OpenSim.Framework; + namespace OpenSim.Data { /// @@ -61,7 +64,8 @@ namespace OpenSim.Data /// /// An interface to a LogData storage system /// - public interface ILogData + [TypeExtensionPoint("/OpenSim/GridLogData")] + public interface ILogDataPlugin : IPlugin { void saveLog(string serverDaemon, string target, string methodCall, string arguments, int priority, string logMessage); @@ -70,22 +74,16 @@ namespace OpenSim.Data /// Initialises the interface /// 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(); + } + + public class LogDataInitialiser : PluginInitialiserBase + { + private string connect; + public LogDataInitialiser (string s) { connect = s; } + public override void Initialise (IPlugin plugin) + { + ILogDataPlugin p = plugin as ILogDataPlugin; + p.Initialise (connect); + } } } -- cgit v1.1