aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/IGridData.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/IGridData.cs45
1 files changed, 22 insertions, 23 deletions
diff --git a/OpenSim/Data/IGridData.cs b/OpenSim/Data/IGridData.cs
index e242312..fa24d82 100644
--- a/OpenSim/Data/IGridData.cs
+++ b/OpenSim/Data/IGridData.cs
@@ -26,6 +26,10 @@
26 */ 26 */
27 27
28using libsecondlife; 28using libsecondlife;
29using Mono.Addins;
30using OpenSim.Framework;
31
32[assembly : AddinRoot("OpenSim.Data", "0.5")]
29 33
30namespace OpenSim.Data 34namespace OpenSim.Data
31{ 35{
@@ -40,9 +44,15 @@ namespace OpenSim.Data
40 /// <summary> 44 /// <summary>
41 /// A standard grid interface 45 /// A standard grid interface
42 /// </summary> 46 /// </summary>
43 public interface IGridData 47 [TypeExtensionPoint("/OpenSim/GridDataStore")]
48 public interface IGridDataPlugin : IPlugin
44 { 49 {
45 /// <summary> 50 /// <summary>
51 /// Initialises the interface
52 /// </summary>
53 void Initialise(string connect);
54
55 /// <summary>
46 /// Returns a sim profile from a regionHandle 56 /// Returns a sim profile from a regionHandle
47 /// </summary> 57 /// </summary>
48 /// <param name="regionHandle">A 64bit Region Handle</param> 58 /// <param name="regionHandle">A 64bit Region Handle</param>
@@ -84,28 +94,6 @@ namespace OpenSim.Data
84 bool AuthenticateSim(LLUUID UUID, ulong regionHandle, string simrecvkey); 94 bool AuthenticateSim(LLUUID UUID, ulong regionHandle, string simrecvkey);
85 95
86 /// <summary> 96 /// <summary>
87 /// Initialises the interface
88 /// </summary>
89 void Initialise(string connect);
90
91 /// <summary>
92 /// Closes the interface
93 /// </summary>
94 void Close();
95
96 /// <summary>
97 /// The plugin being loaded
98 /// </summary>
99 /// <returns>A string containing the plugin name</returns>
100 string getName();
101
102 /// <summary>
103 /// The plugins version
104 /// </summary>
105 /// <returns>A string containing the plugin version</returns>
106 string getVersion();
107
108 /// <summary>
109 /// Adds a new profile to the database 97 /// Adds a new profile to the database
110 /// </summary> 98 /// </summary>
111 /// <param name="profile">The profile to add</param> 99 /// <param name="profile">The profile to add</param>
@@ -116,4 +104,15 @@ namespace OpenSim.Data
116 104
117 ReservationData GetReservationAtPoint(uint x, uint y); 105 ReservationData GetReservationAtPoint(uint x, uint y);
118 } 106 }
107
108 public class GridDataStoreInitialiser : PluginInitialiserBase
109 {
110 private string connect;
111 public GridDataStoreInitialiser (string s) { connect = s; }
112 public override void Initialise (IPlugin plugin)
113 {
114 IGridDataPlugin p = plugin as IGridDataPlugin;
115 p.Initialise (connect);
116 }
117 }
119} 118}