From 94e2768cc7494abfd9be9d64209e1d42b2dfe76e Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 13 May 2009 01:58:17 +0000 Subject: [PATCH] Add interface, stub implementation and script stub for llGetHTTPHeader(). --- .../ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 ++++++++ .../Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs | 1 + .../Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 862ff509c0..e2bdd59d28 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -7646,6 +7646,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api return DateTime.UtcNow.TimeOfDay.TotalSeconds; } + public LSL_String llGetHTTPHeader(LSL_Key request_id, string header) + { + m_host.AddScriptLPS(1); + NotImplemented("llGetHTTPHeader"); + return String.Empty; + } + + public LSL_String llGetSimulatorHostname() { 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 9ebc0416d3..a575f877d6 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs @@ -123,6 +123,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces LSL_Integer llGetFreeURLs(); LSL_Vector llGetGeometricCenter(); LSL_Float llGetGMTclock(); + LSL_String llGetHTTPHeader(LSL_Key request_id, string header); LSL_Key llGetInventoryCreator(string item); LSL_Key llGetInventoryKey(string name); LSL_String llGetInventoryName(int type, 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 202130e2b4..8299087528 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs @@ -474,6 +474,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase return m_LSL_Functions.llGetGMTclock(); } + public LSL_String llGetHTTPHeader(LSL_Key request_id, string header) + { + return m_LSL_Functions.llGetHTTPHeader(request_id, header); + } + public LSL_Key llGetInventoryCreator(string item) { return m_LSL_Functions.llGetInventoryCreator(item);