diff options
Diffstat (limited to 'OpenSim/Framework/IUserData.cs')
-rw-r--r-- | OpenSim/Framework/IUserData.cs | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/OpenSim/Framework/IUserData.cs b/OpenSim/Framework/IUserData.cs index 5952713..27686c0 100644 --- a/OpenSim/Framework/IUserData.cs +++ b/OpenSim/Framework/IUserData.cs | |||
@@ -33,7 +33,7 @@ namespace OpenSim.Framework | |||
33 | /// <summary> | 33 | /// <summary> |
34 | /// An interface for connecting to user storage servers. | 34 | /// An interface for connecting to user storage servers. |
35 | /// </summary> | 35 | /// </summary> |
36 | public interface IUserData | 36 | public interface IUserData : IPlugin |
37 | { | 37 | { |
38 | /// <summary> | 38 | /// <summary> |
39 | /// Returns a user profile from a database via their UUID | 39 | /// Returns a user profile from a database via their UUID |
@@ -154,18 +154,6 @@ namespace OpenSim.Framework | |||
154 | bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID inventory); | 154 | bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID inventory); |
155 | 155 | ||
156 | /// <summary> | 156 | /// <summary> |
157 | /// Returns the plugin version | ||
158 | /// </summary> | ||
159 | /// <returns>Plugin version in MAJOR.MINOR.REVISION.BUILD format</returns> | ||
160 | string Version {get;} | ||
161 | |||
162 | /// <summary> | ||
163 | /// Returns the plugin name | ||
164 | /// </summary> | ||
165 | /// <returns>Plugin name, eg MySQL User Provider</returns> | ||
166 | string Name {get;} | ||
167 | |||
168 | /// <summary> | ||
169 | /// Initialises the plugin (artificial constructor) | 157 | /// Initialises the plugin (artificial constructor) |
170 | /// </summary> | 158 | /// </summary> |
171 | void Initialise(string connect); | 159 | void Initialise(string connect); |
@@ -182,4 +170,15 @@ namespace OpenSim.Framework | |||
182 | void RemoveAttachment(LLUUID user, LLUUID item); | 170 | void RemoveAttachment(LLUUID user, LLUUID item); |
183 | List<LLUUID> GetAttachments(LLUUID user); | 171 | List<LLUUID> GetAttachments(LLUUID user); |
184 | } | 172 | } |
185 | } \ No newline at end of file | 173 | |
174 | public class UserDataInitialiser : PluginInitialiserBase | ||
175 | { | ||
176 | private string connect; | ||
177 | public UserDataInitialiser (string s) { connect = s; } | ||
178 | public override void Initialise (IPlugin plugin) | ||
179 | { | ||
180 | IUserData p = plugin as IUserData; | ||
181 | p.Initialise (connect); | ||
182 | } | ||
183 | } | ||
184 | } | ||