diff options
author | Melanie | 2013-01-08 22:32:39 +0100 |
---|---|---|
committer | Melanie | 2013-01-08 22:32:39 +0100 |
commit | 0a393b317dd6449e5a4ebbfc41dd3c8f4d9b2092 (patch) | |
tree | fb0c505ec5f3171b4636f447b0e1b1182d366d13 /OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps | |
parent | Remove now superfluous update of m_lastSize (diff) | |
download | opensim-SC-0a393b317dd6449e5a4ebbfc41dd3c8f4d9b2092.zip opensim-SC-0a393b317dd6449e5a4ebbfc41dd3c8f4d9b2092.tar.gz opensim-SC-0a393b317dd6449e5a4ebbfc41dd3c8f4d9b2092.tar.bz2 opensim-SC-0a393b317dd6449e5a4ebbfc41dd3c8f4d9b2092.tar.xz |
Add the new UpdateAgentInformation cap to make maturity on more recent viewers
work.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs index f6146a9..b06788b 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | |||
@@ -103,6 +103,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
103 | private static readonly string m_getObjectPhysicsDataPath = "0101/"; | 103 | private static readonly string m_getObjectPhysicsDataPath = "0101/"; |
104 | private static readonly string m_getObjectCostPath = "0102/"; | 104 | private static readonly string m_getObjectCostPath = "0102/"; |
105 | private static readonly string m_ResourceCostSelectedPath = "0103/"; | 105 | private static readonly string m_ResourceCostSelectedPath = "0103/"; |
106 | private static readonly string m_UpdateAgentInformationPath = "0500/"; | ||
106 | 107 | ||
107 | 108 | ||
108 | // These are callbacks which will be setup by the scene so that we can update scene data when we | 109 | // These are callbacks which will be setup by the scene so that we can update scene data when we |
@@ -287,6 +288,8 @@ namespace OpenSim.Region.ClientStack.Linden | |||
287 | m_HostCapsObj.RegisterHandler("GetObjectCost", getObjectCostHandler); | 288 | m_HostCapsObj.RegisterHandler("GetObjectCost", getObjectCostHandler); |
288 | IRequestHandler ResourceCostSelectedHandler = new RestStreamHandler("POST", capsBase + m_ResourceCostSelectedPath, ResourceCostSelected); | 289 | IRequestHandler ResourceCostSelectedHandler = new RestStreamHandler("POST", capsBase + m_ResourceCostSelectedPath, ResourceCostSelected); |
289 | m_HostCapsObj.RegisterHandler("ResourceCostSelected", ResourceCostSelectedHandler); | 290 | m_HostCapsObj.RegisterHandler("ResourceCostSelected", ResourceCostSelectedHandler); |
291 | IRequestHandler UpdateAgentInformationHandler = new RestStreamHandler("POST", capsBase + m_UpdateAgentInformationPath, UpdateAgentInformation); | ||
292 | m_HostCapsObj.RegisterHandler("UpdateAgentInformation", UpdateAgentInformationHandler); | ||
290 | 293 | ||
291 | m_HostCapsObj.RegisterHandler( | 294 | m_HostCapsObj.RegisterHandler( |
292 | "CopyInventoryFromNotecard", | 295 | "CopyInventoryFromNotecard", |
@@ -1438,6 +1441,22 @@ namespace OpenSim.Region.ClientStack.Linden | |||
1438 | string response = OSDParser.SerializeLLSDXmlString(resp); | 1441 | string response = OSDParser.SerializeLLSDXmlString(resp); |
1439 | return response; | 1442 | return response; |
1440 | } | 1443 | } |
1444 | |||
1445 | public string UpdateAgentInformation(string request, string path, | ||
1446 | string param, IOSHttpRequest httpRequest, | ||
1447 | IOSHttpResponse httpResponse) | ||
1448 | { | ||
1449 | OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request); | ||
1450 | OSDMap resp = new OSDMap(); | ||
1451 | |||
1452 | OSDMap accessPrefs = new OSDMap(); | ||
1453 | accessPrefs["max"] = "A"; | ||
1454 | |||
1455 | resp["access_prefs"] = accessPrefs; | ||
1456 | |||
1457 | string response = OSDParser.SerializeLLSDXmlString(resp); | ||
1458 | return response; | ||
1459 | } | ||
1441 | } | 1460 | } |
1442 | 1461 | ||
1443 | public class AssetUploader | 1462 | public class AssetUploader |