From ba99f2a1a5bf24f3682ec889eeccf9cd02e37105 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 13 May 2009 00:29:50 +0000 Subject: Add interface, stub and bare implmentation for llHTTPResponse(). --- .../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 10 ++++++++++ OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs | 1 + OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 8102b2f..859aec7 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -8878,6 +8878,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api return null; } + + public void llHTTPResponse(string url, int status, string body) + { + // Partial implementation: support for parameter flags needed + // see http://wiki.secondlife.com/wiki/llHTTPResponse + + m_host.AddScriptLPS(1); + NotImplemented("llHTTPResponse"); + } + public void llResetLandBanList() { m_host.AddScriptLPS(1); diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs index d314572..ac527c6 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs @@ -199,6 +199,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces void llGroundRepel(double height, int water, double tau); LSL_Vector llGroundSlope(LSL_Vector offset); LSL_String llHTTPRequest(string url, LSL_List parameters, string body); + void llHTTPResponse(string url, int status, string body); LSL_String llInsertString(string dst, int position, string src); void llInstantMessage(string user, string message); LSL_String llIntegerToBase64(int number); diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs index e4cfedb..945932e 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs @@ -854,6 +854,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase return m_LSL_Functions.llHTTPRequest(url, parameters, body); } + public void llHTTPResponse(string url, int status, string body) + { + m_LSL_Functions.llHTTPResponse(url, status, body); + } + public LSL_String llInsertString(string dst, int position, string src) { return m_LSL_Functions.llInsertString(dst, position, src); -- cgit v1.1