From ba8850f25446fafd0fe49b80be84a25d06303d65 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 13 May 2009 03:09:30 +0000 Subject: Plumb request and return URL functions. Implements llRequestURL, llRequestSecureURL, llReleaseURL --- .../ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index a6080d6..cdb91fb 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -82,6 +82,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api private bool m_automaticLinkPermission=false; private IMessageTransferModule m_TransferModule = null; private int m_notecardLineReadCharsMax = 255; + private IUrlModule m_UrlModule = null; //private static readonly ILog m_log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); @@ -107,6 +108,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api m_TransferModule = m_ScriptEngine.World.RequestModuleInterface(); + m_UrlModule = m_ScriptEngine.World.RequestModuleInterface(); + AsyncCommands = new AsyncCommandManager(ScriptEngine); } @@ -2700,7 +2703,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api public void llReleaseURL(string url) { m_host.AddScriptLPS(1); - NotImplemented("llReleaseURL"); + if (m_UrlModule != null) + m_UrlModule.ReleaseURL(url); } public void llAttachToAvatar(int attachment) @@ -8030,7 +8034,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api public LSL_String llRequestSecureURL() { m_host.AddScriptLPS(1); - NotImplemented("llRequestSecureURL"); + if (m_UrlModule != null) + return m_UrlModule.RequestSecureURL(m_ScriptEngine.ScriptModule, m_host, m_itemID).ToString(); return UUID.Zero.ToString(); } @@ -8110,7 +8115,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api public LSL_String llRequestURL() { m_host.AddScriptLPS(1); - NotImplemented("llRequestURL"); + + if (m_UrlModule != null) + return m_UrlModule.RequestURL(m_ScriptEngine.ScriptModule, m_host, m_itemID).ToString(); return UUID.Zero.ToString(); } -- cgit v1.1