diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/ILogData.cs | 34 |
1 files changed, 16 insertions, 18 deletions
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 @@ | |||
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 Mono.Addins; | ||
29 | using OpenSim.Framework; | ||
30 | |||
28 | namespace OpenSim.Data | 31 | namespace OpenSim.Data |
29 | { | 32 | { |
30 | /// <summary> | 33 | /// <summary> |
@@ -61,7 +64,8 @@ namespace OpenSim.Data | |||
61 | /// <summary> | 64 | /// <summary> |
62 | /// An interface to a LogData storage system | 65 | /// An interface to a LogData storage system |
63 | /// </summary> | 66 | /// </summary> |
64 | public interface ILogData | 67 | [TypeExtensionPoint("/OpenSim/GridLogData")] |
68 | public interface ILogDataPlugin : IPlugin | ||
65 | { | 69 | { |
66 | void saveLog(string serverDaemon, string target, string methodCall, string arguments, int priority, | 70 | void saveLog(string serverDaemon, string target, string methodCall, string arguments, int priority, |
67 | string logMessage); | 71 | string logMessage); |
@@ -70,22 +74,16 @@ namespace OpenSim.Data | |||
70 | /// Initialises the interface | 74 | /// Initialises the interface |
71 | /// </summary> | 75 | /// </summary> |
72 | void Initialise(string connect); | 76 | void Initialise(string connect); |
73 | 77 | } | |
74 | /// <summary> | 78 | |
75 | /// Closes the interface | 79 | public class LogDataInitialiser : PluginInitialiserBase |
76 | /// </summary> | 80 | { |
77 | void Close(); | 81 | private string connect; |
78 | 82 | public LogDataInitialiser (string s) { connect = s; } | |
79 | /// <summary> | 83 | public override void Initialise (IPlugin plugin) |
80 | /// The plugin being loaded | 84 | { |
81 | /// </summary> | 85 | ILogDataPlugin p = plugin as ILogDataPlugin; |
82 | /// <returns>A string containing the plugin name</returns> | 86 | p.Initialise (connect); |
83 | string getName(); | 87 | } |
84 | |||
85 | /// <summary> | ||
86 | /// The plugins version | ||
87 | /// </summary> | ||
88 | /// <returns>A string containing the plugin version</returns> | ||
89 | string getVersion(); | ||
90 | } | 88 | } |
91 | } | 89 | } |