Mantis #7664: Added IHypergridLinker interface to establish a contract about what implementers need to provide publicly. This is used by 3rd-party addons such as Wifi.

0.8.2-post-fixes
Diva Canto 2015-08-01 09:30:34 -07:00
parent 368ea78d14
commit 32d87aa168
2 changed files with 8 additions and 2 deletions

View File

@ -47,7 +47,7 @@ using OpenMetaverse;
namespace OpenSim.Services.GridService namespace OpenSim.Services.GridService
{ {
public class HypergridLinker public class HypergridLinker : IHypergridLinker
{ {
private static readonly ILog m_log = private static readonly ILog m_log =
LogManager.GetLogger( LogManager.GetLogger(
@ -191,7 +191,7 @@ namespace OpenSim.Services.GridService
return TryLinkRegionToCoords(scopeID, mapName, xloc, yloc, UUID.Zero, out reason); return TryLinkRegionToCoords(scopeID, mapName, xloc, yloc, UUID.Zero, out reason);
} }
private GridRegion TryLinkRegionToCoords(UUID scopeID, string mapName, int xloc, int yloc, UUID ownerID, out string reason) public GridRegion TryLinkRegionToCoords(UUID scopeID, string mapName, int xloc, int yloc, UUID ownerID, out string reason)
{ {
reason = string.Empty; reason = string.Empty;
GridRegion regInfo = null; GridRegion regInfo = null;

View File

@ -124,6 +124,12 @@ namespace OpenSim.Services.Interfaces
Dictionary<string,object> GetExtraFeatures(); Dictionary<string,object> GetExtraFeatures();
} }
public interface IHypergridLinker
{
GridRegion TryLinkRegionToCoords(UUID scopeID, string mapName, int xloc, int yloc, UUID ownerID, out string reason);
bool TryUnlinkRegion(string mapName);
}
public class GridRegion public class GridRegion
{ {
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);