diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins')
4 files changed, 22 insertions, 22 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/HttpRequest.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/HttpRequest.cs index f5a965b..4c7dc8d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/HttpRequest.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/HttpRequest.cs | |||
@@ -26,7 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using OpenSim.Region.Environment.Interfaces; | 29 | using OpenSim.Region.Framework.Interfaces; |
30 | using OpenSim.Region.Environment.Modules.Scripting.HttpRequest; | 30 | using OpenSim.Region.Environment.Modules.Scripting.HttpRequest; |
31 | using OpenSim.Region.ScriptEngine.Shared; | 31 | using OpenSim.Region.ScriptEngine.Shared; |
32 | using OpenSim.Region.ScriptEngine.Interfaces; | 32 | using OpenSim.Region.ScriptEngine.Interfaces; |
@@ -48,13 +48,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
48 | if (m_CmdManager.m_ScriptEngine.World == null) | 48 | if (m_CmdManager.m_ScriptEngine.World == null) |
49 | return; | 49 | return; |
50 | 50 | ||
51 | IHttpRequests iHttpReq = | 51 | IHttpRequestModule iHttpReq = |
52 | m_CmdManager.m_ScriptEngine.World.RequestModuleInterface<IHttpRequests>(); | 52 | m_CmdManager.m_ScriptEngine.World.RequestModuleInterface<IHttpRequestModule>(); |
53 | 53 | ||
54 | HttpRequestClass httpInfo = null; | 54 | HttpRequestClass httpInfo = null; |
55 | 55 | ||
56 | if (iHttpReq != null) | 56 | if (iHttpReq != null) |
57 | httpInfo = iHttpReq.GetNextCompletedRequest(); | 57 | httpInfo = (HttpRequestClass)iHttpReq.GetNextCompletedRequest(); |
58 | 58 | ||
59 | while (httpInfo != null) | 59 | while (httpInfo != null) |
60 | { | 60 | { |
@@ -67,24 +67,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
67 | // implemented here yet anyway. Should be fixed if/when maxsize | 67 | // implemented here yet anyway. Should be fixed if/when maxsize |
68 | // is supported | 68 | // is supported |
69 | 69 | ||
70 | iHttpReq.RemoveCompletedRequest(httpInfo.reqID); | 70 | iHttpReq.RemoveCompletedRequest(httpInfo.ReqID); |
71 | 71 | ||
72 | object[] resobj = new object[] | 72 | object[] resobj = new object[] |
73 | { | 73 | { |
74 | new LSL_Types.LSLString(httpInfo.reqID.ToString()), | 74 | new LSL_Types.LSLString(httpInfo.ReqID.ToString()), |
75 | new LSL_Types.LSLInteger(httpInfo.status), | 75 | new LSL_Types.LSLInteger(httpInfo.Status), |
76 | new LSL_Types.list(), | 76 | new LSL_Types.list(), |
77 | new LSL_Types.LSLString(httpInfo.response_body) | 77 | new LSL_Types.LSLString(httpInfo.ResponseBody) |
78 | }; | 78 | }; |
79 | 79 | ||
80 | foreach (IScriptEngine e in m_CmdManager.ScriptEngines) | 80 | foreach (IScriptEngine e in m_CmdManager.ScriptEngines) |
81 | { | 81 | { |
82 | if (e.PostObjectEvent(httpInfo.localID, | 82 | if (e.PostObjectEvent(httpInfo.LocalID, |
83 | new EventParams("http_response", | 83 | new EventParams("http_response", |
84 | resobj, new DetectParams[0]))) | 84 | resobj, new DetectParams[0]))) |
85 | break; | 85 | break; |
86 | } | 86 | } |
87 | httpInfo = iHttpReq.GetNextCompletedRequest(); | 87 | httpInfo = (HttpRequestClass)iHttpReq.GetNextCompletedRequest(); |
88 | } | 88 | } |
89 | } | 89 | } |
90 | } | 90 | } |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Listener.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Listener.cs index b72d17c..eba52bf 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Listener.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Listener.cs | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using OpenMetaverse; | 29 | using OpenMetaverse; |
30 | using OpenSim.Region.Environment.Interfaces; | 30 | using OpenSim.Region.Framework.Interfaces; |
31 | using OpenSim.Region.Environment.Modules.Scripting.WorldComm; | 31 | using OpenSim.Region.Environment.Modules.Scripting.WorldComm; |
32 | using OpenSim.Region.ScriptEngine.Interfaces; | 32 | using OpenSim.Region.ScriptEngine.Interfaces; |
33 | using OpenSim.Region.ScriptEngine.Shared; | 33 | using OpenSim.Region.ScriptEngine.Shared; |
@@ -56,7 +56,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
56 | { | 56 | { |
57 | while (comms.HasMessages()) | 57 | while (comms.HasMessages()) |
58 | { | 58 | { |
59 | ListenerInfo lInfo = comms.GetNextMessage(); | 59 | ListenerInfo lInfo = (ListenerInfo)comms.GetNextMessage(); |
60 | 60 | ||
61 | //Deliver data to prim's listen handler | 61 | //Deliver data to prim's listen handler |
62 | object[] resobj = new object[] | 62 | object[] resobj = new object[] |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs index 808d880..f132518 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | |||
@@ -30,7 +30,7 @@ using System.Collections.Generic; | |||
30 | using OpenMetaverse; | 30 | using OpenMetaverse; |
31 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenSim.Framework.Communications.Cache; | 32 | using OpenSim.Framework.Communications.Cache; |
33 | using OpenSim.Region.Environment.Scenes; | 33 | using OpenSim.Region.Framework.Scenes; |
34 | using OpenSim.Region.ScriptEngine.Shared; | 34 | using OpenSim.Region.ScriptEngine.Shared; |
35 | using OpenSim.Region.ScriptEngine.Shared.Api; | 35 | using OpenSim.Region.ScriptEngine.Shared.Api; |
36 | 36 | ||
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/XmlRequest.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/XmlRequest.cs index a7699a1..bf1a923 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/XmlRequest.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/XmlRequest.cs | |||
@@ -26,7 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using OpenSim.Region.Environment.Interfaces; | 29 | using OpenSim.Region.Framework.Interfaces; |
30 | using OpenSim.Region.Environment.Modules.Scripting.XMLRPC; | 30 | using OpenSim.Region.Environment.Modules.Scripting.XMLRPC; |
31 | using OpenSim.Region.ScriptEngine.Interfaces; | 31 | using OpenSim.Region.ScriptEngine.Interfaces; |
32 | using OpenSim.Region.ScriptEngine.Shared; | 32 | using OpenSim.Region.ScriptEngine.Shared; |
@@ -52,7 +52,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
52 | 52 | ||
53 | if (xmlrpc != null) | 53 | if (xmlrpc != null) |
54 | { | 54 | { |
55 | RPCRequestInfo rInfo = xmlrpc.GetNextCompletedRequest(); | 55 | RPCRequestInfo rInfo = (RPCRequestInfo)xmlrpc.GetNextCompletedRequest(); |
56 | 56 | ||
57 | while (rInfo != null) | 57 | while (rInfo != null) |
58 | { | 58 | { |
@@ -80,10 +80,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
80 | break; | 80 | break; |
81 | } | 81 | } |
82 | 82 | ||
83 | rInfo = xmlrpc.GetNextCompletedRequest(); | 83 | rInfo = (RPCRequestInfo)xmlrpc.GetNextCompletedRequest(); |
84 | } | 84 | } |
85 | 85 | ||
86 | SendRemoteDataRequest srdInfo = xmlrpc.GetNextCompletedSRDRequest(); | 86 | SendRemoteDataRequest srdInfo = (SendRemoteDataRequest)xmlrpc.GetNextCompletedSRDRequest(); |
87 | 87 | ||
88 | while (srdInfo != null) | 88 | while (srdInfo != null) |
89 | { | 89 | { |
@@ -93,23 +93,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
93 | object[] resobj = new object[] | 93 | object[] resobj = new object[] |
94 | { | 94 | { |
95 | new LSL_Types.LSLInteger(3), | 95 | new LSL_Types.LSLInteger(3), |
96 | new LSL_Types.LSLString(srdInfo.channel.ToString()), | 96 | new LSL_Types.LSLString(srdInfo.Channel.ToString()), |
97 | new LSL_Types.LSLString(srdInfo.GetReqID().ToString()), | 97 | new LSL_Types.LSLString(srdInfo.GetReqID().ToString()), |
98 | new LSL_Types.LSLString(String.Empty), | 98 | new LSL_Types.LSLString(String.Empty), |
99 | new LSL_Types.LSLInteger(srdInfo.idata), | 99 | new LSL_Types.LSLInteger(srdInfo.Idata), |
100 | new LSL_Types.LSLString(srdInfo.sdata) | 100 | new LSL_Types.LSLString(srdInfo.Sdata) |
101 | }; | 101 | }; |
102 | 102 | ||
103 | foreach (IScriptEngine e in m_CmdManager.ScriptEngines) | 103 | foreach (IScriptEngine e in m_CmdManager.ScriptEngines) |
104 | { | 104 | { |
105 | if (e.PostScriptEvent( | 105 | if (e.PostScriptEvent( |
106 | srdInfo.m_itemID, new EventParams( | 106 | srdInfo.ItemID, new EventParams( |
107 | "remote_data", resobj, | 107 | "remote_data", resobj, |
108 | new DetectParams[0]))) | 108 | new DetectParams[0]))) |
109 | break; | 109 | break; |
110 | } | 110 | } |
111 | 111 | ||
112 | srdInfo = xmlrpc.GetNextCompletedSRDRequest(); | 112 | srdInfo = (SendRemoteDataRequest)xmlrpc.GetNextCompletedSRDRequest(); |
113 | } | 113 | } |
114 | } | 114 | } |
115 | } | 115 | } |