diff options
Diffstat (limited to 'OpenSim/Framework/Communications/Capabilities')
17 files changed, 45 insertions, 45 deletions
diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index b4a0473..28e56da 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs | |||
@@ -159,7 +159,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
159 | m_capsHandlers["SEED"] = new RestStreamHandler("POST", capsBase + m_requestPath, CapsRequest); | 159 | m_capsHandlers["SEED"] = new RestStreamHandler("POST", capsBase + m_requestPath, CapsRequest); |
160 | m_log.Warn("[SEED]: " + capsBase + m_requestPath); | 160 | m_log.Warn("[SEED]: " + capsBase + m_requestPath); |
161 | //m_capsHandlers["MapLayer"] = | 161 | //m_capsHandlers["MapLayer"] = |
162 | // new LLSDStreamhandler<OSDMapRequest, OSDMapLayerResponse>("POST", | 162 | // new LLSDStreamhandler<LLSDMapRequest, LLSDMapLayerResponse>("POST", |
163 | // capsBase + m_mapLayerPath, | 163 | // capsBase + m_mapLayerPath, |
164 | // GetMapLayer); | 164 | // GetMapLayer); |
165 | m_capsHandlers["NewFileAgentInventory"] = | 165 | m_capsHandlers["NewFileAgentInventory"] = |
@@ -297,7 +297,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
297 | Hashtable inventoryhash = (Hashtable)foldersrequested[i]; | 297 | Hashtable inventoryhash = (Hashtable)foldersrequested[i]; |
298 | 298 | ||
299 | LLSDFetchInventoryDescendents llsdRequest = new LLSDFetchInventoryDescendents(); | 299 | LLSDFetchInventoryDescendents llsdRequest = new LLSDFetchInventoryDescendents(); |
300 | LLSDHelpers.DeserialiseOSDMap(inventoryhash, llsdRequest); | 300 | LLSDHelpers.DeserialiseLLSDMap(inventoryhash, llsdRequest); |
301 | LLSDInventoryDescendents reply = FetchInventoryReply(llsdRequest); | 301 | LLSDInventoryDescendents reply = FetchInventoryReply(llsdRequest); |
302 | 302 | ||
303 | inventoryitemstr = LLSDHelpers.SerialiseLLSDReply(reply); | 303 | inventoryitemstr = LLSDHelpers.SerialiseLLSDReply(reply); |
@@ -431,7 +431,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
431 | { | 431 | { |
432 | m_log.Debug("[CAPS]: MapLayer Request in region: " + m_regionName); | 432 | m_log.Debug("[CAPS]: MapLayer Request in region: " + m_regionName); |
433 | LLSDMapLayerResponse mapResponse = new LLSDMapLayerResponse(); | 433 | LLSDMapLayerResponse mapResponse = new LLSDMapLayerResponse(); |
434 | mapResponse.LayerData.Array.Add(GetOSDMapLayerResponse()); | 434 | mapResponse.LayerData.Array.Add(GetLLSDMapLayerResponse()); |
435 | return mapResponse; | 435 | return mapResponse; |
436 | } | 436 | } |
437 | 437 | ||
@@ -439,9 +439,9 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
439 | /// | 439 | /// |
440 | /// </summary> | 440 | /// </summary> |
441 | /// <returns></returns> | 441 | /// <returns></returns> |
442 | protected static OSDMapLayer GetOSDMapLayerResponse() | 442 | protected static LLSDMapLayer GetLLSDMapLayerResponse() |
443 | { | 443 | { |
444 | OSDMapLayer mapLayer = new OSDMapLayer(); | 444 | LLSDMapLayer mapLayer = new LLSDMapLayer(); |
445 | mapLayer.Right = 5000; | 445 | mapLayer.Right = 5000; |
446 | mapLayer.Top = 5000; | 446 | mapLayer.Top = 5000; |
447 | mapLayer.ImageID = new UUID("00000000-0000-1111-9999-000000000006"); | 447 | mapLayer.ImageID = new UUID("00000000-0000-1111-9999-000000000006"); |
@@ -545,7 +545,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
545 | 545 | ||
546 | Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(Utils.StringToBytes(request)); | 546 | Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(Utils.StringToBytes(request)); |
547 | LLSDTaskScriptUpdate llsdUpdateRequest = new LLSDTaskScriptUpdate(); | 547 | LLSDTaskScriptUpdate llsdUpdateRequest = new LLSDTaskScriptUpdate(); |
548 | LLSDHelpers.DeserialiseOSDMap(hash, llsdUpdateRequest); | 548 | LLSDHelpers.DeserialiseLLSDMap(hash, llsdUpdateRequest); |
549 | 549 | ||
550 | string capsBase = "/CAPS/" + m_capsObjectPath; | 550 | string capsBase = "/CAPS/" + m_capsObjectPath; |
551 | string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000"); | 551 | string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000"); |
@@ -600,10 +600,10 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
600 | OSHttpRequest httpRequest, OSHttpResponse httpResponse) | 600 | OSHttpRequest httpRequest, OSHttpResponse httpResponse) |
601 | { | 601 | { |
602 | m_log.Debug("[CAPS]: NoteCardAgentInventory Request in region: " + m_regionName); | 602 | m_log.Debug("[CAPS]: NoteCardAgentInventory Request in region: " + m_regionName); |
603 | //OpenMetaverse.StructuredData.OSDMap hash = (OpenMetaverse.StructuredData.OSDMap)OpenMetaverse.StructuredData.LLSDParser.DeserializeBinary(Utils.StringToBytes(request)); | 603 | //OpenMetaverse.StructuredData.LLSDMap hash = (OpenMetaverse.StructuredData.LLSDMap)OpenMetaverse.StructuredData.LLSDParser.DeserializeBinary(Utils.StringToBytes(request)); |
604 | Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(Utils.StringToBytes(request)); | 604 | Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(Utils.StringToBytes(request)); |
605 | LLSDItemUpdate llsdRequest = new LLSDItemUpdate(); | 605 | LLSDItemUpdate llsdRequest = new LLSDItemUpdate(); |
606 | LLSDHelpers.DeserialiseOSDMap(hash, llsdRequest); | 606 | LLSDHelpers.DeserialiseLLSDMap(hash, llsdRequest); |
607 | 607 | ||
608 | string capsBase = "/CAPS/" + m_capsObjectPath; | 608 | string capsBase = "/CAPS/" + m_capsObjectPath; |
609 | string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000"); | 609 | string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000"); |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSD.cs b/OpenSim/Framework/Communications/Capabilities/LLSD.cs index e754256..44c4a05 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSD.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSD.cs | |||
@@ -561,7 +561,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
561 | endPos = FindEnd(llsd, 1); | 561 | endPos = FindEnd(llsd, 1); |
562 | 562 | ||
563 | if (Double.TryParse(llsd.Substring(1, endPos - 1), NumberStyles.Float, | 563 | if (Double.TryParse(llsd.Substring(1, endPos - 1), NumberStyles.Float, |
564 | Utils.EnUsCulture.NumberFormat, out value)) | 564 | Helpers.EnUsCulture.NumberFormat, out value)) |
565 | return value; | 565 | return value; |
566 | else | 566 | else |
567 | throw new LLSDParseException("Failed to parse double value type"); | 567 | throw new LLSDParseException("Failed to parse double value type"); |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDArray.cs b/OpenSim/Framework/Communications/Capabilities/LLSDArray.cs index 668ca79..3579cc2 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDArray.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDArray.cs | |||
@@ -30,11 +30,11 @@ using System.Collections; | |||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [LLSDType("ARRAY")] | 32 | [LLSDType("ARRAY")] |
33 | public class OSDArray | 33 | public class LLSDArray |
34 | { | 34 | { |
35 | public ArrayList Array = new ArrayList(); | 35 | public ArrayList Array = new ArrayList(); |
36 | 36 | ||
37 | public OSDArray() | 37 | public LLSDArray() |
38 | { | 38 | { |
39 | } | 39 | } |
40 | } | 40 | } |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadRequest.cs b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadRequest.cs index 16547d5..5833b65 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadRequest.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadRequest.cs | |||
@@ -30,7 +30,7 @@ using OpenMetaverse; | |||
30 | 30 | ||
31 | namespace OpenSim.Framework.Communications.Capabilities | 31 | namespace OpenSim.Framework.Communications.Capabilities |
32 | { | 32 | { |
33 | [OSDMap] | 33 | [LLSDMap] |
34 | public class LLSDAssetUploadRequest | 34 | public class LLSDAssetUploadRequest |
35 | { | 35 | { |
36 | public string asset_type = String.Empty; | 36 | public string asset_type = String.Empty; |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadResponse.cs b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadResponse.cs index 04e9ed7..63b3351 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadResponse.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDAssetUploadResponse.cs | |||
@@ -29,7 +29,7 @@ using System; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [OSDMap] | 32 | [LLSDMap] |
33 | public class LLSDAssetUploadResponse | 33 | public class LLSDAssetUploadResponse |
34 | { | 34 | { |
35 | public string uploader = String.Empty; | 35 | public string uploader = String.Empty; |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDCapEvent.cs b/OpenSim/Framework/Communications/Capabilities/LLSDCapEvent.cs index d8a6265..5ff21b8 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDCapEvent.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDCapEvent.cs | |||
@@ -31,7 +31,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
31 | public class LLSDCapEvent | 31 | public class LLSDCapEvent |
32 | { | 32 | { |
33 | public int id = 0; | 33 | public int id = 0; |
34 | public OSDArray events = new OSDArray(); | 34 | public LLSDArray events = new LLSDArray(); |
35 | 35 | ||
36 | public LLSDCapEvent() | 36 | public LLSDCapEvent() |
37 | { | 37 | { |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs b/OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs index ae4a3db..b14bfdd 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs | |||
@@ -44,7 +44,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
44 | XmlTextWriter writer = new XmlTextWriter(sw); | 44 | XmlTextWriter writer = new XmlTextWriter(sw); |
45 | writer.Formatting = Formatting.None; | 45 | writer.Formatting = Formatting.None; |
46 | writer.WriteStartElement(String.Empty, "llsd", String.Empty); | 46 | writer.WriteStartElement(String.Empty, "llsd", String.Empty); |
47 | SerializeOSDType(writer, obj); | 47 | SerializeLLSDType(writer, obj); |
48 | writer.WriteEndElement(); | 48 | writer.WriteEndElement(); |
49 | writer.Close(); | 49 | writer.Close(); |
50 | 50 | ||
@@ -53,7 +53,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
53 | return sw.ToString(); | 53 | return sw.ToString(); |
54 | } | 54 | } |
55 | 55 | ||
56 | private static void SerializeOSDType(XmlTextWriter writer, object obj) | 56 | private static void SerializeLLSDType(XmlTextWriter writer, object obj) |
57 | { | 57 | { |
58 | Type myType = obj.GetType(); | 58 | Type myType = obj.GetType(); |
59 | LLSDType[] llsdattributes = (LLSDType[]) myType.GetCustomAttributes(typeof (LLSDType), false); | 59 | LLSDType[] llsdattributes = (LLSDType[]) myType.GetCustomAttributes(typeof (LLSDType), false); |
@@ -76,7 +76,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
76 | fieldName = fieldName.Replace("___", "-"); | 76 | fieldName = fieldName.Replace("___", "-"); |
77 | writer.WriteString(fieldName); | 77 | writer.WriteString(fieldName); |
78 | writer.WriteEndElement(); | 78 | writer.WriteEndElement(); |
79 | SerializeOSDType(writer, fieldValue); | 79 | SerializeLLSDType(writer, fieldValue); |
80 | } | 80 | } |
81 | else | 81 | else |
82 | { | 82 | { |
@@ -87,13 +87,13 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
87 | writer.WriteEndElement(); | 87 | writer.WriteEndElement(); |
88 | LLSD.LLSDWriteOne(writer, fieldValue); | 88 | LLSD.LLSDWriteOne(writer, fieldValue); |
89 | // OpenMetaverse.StructuredData.LLSDParser.SerializeXmlElement( | 89 | // OpenMetaverse.StructuredData.LLSDParser.SerializeXmlElement( |
90 | // writer, OpenMetaverse.StructuredData.OSD.FromObject(fieldValue)); | 90 | // writer, OpenMetaverse.StructuredData.LLSD.FromObject(fieldValue)); |
91 | } | 91 | } |
92 | } | 92 | } |
93 | writer.WriteEndElement(); | 93 | writer.WriteEndElement(); |
94 | break; | 94 | break; |
95 | case "ARRAY": | 95 | case "ARRAY": |
96 | // OSDArray arrayObject = obj as OSDArray; | 96 | // LLSDArray arrayObject = obj as LLSDArray; |
97 | // ArrayList a = arrayObject.Array; | 97 | // ArrayList a = arrayObject.Array; |
98 | ArrayList a = (ArrayList) obj.GetType().GetField("Array").GetValue(obj); | 98 | ArrayList a = (ArrayList) obj.GetType().GetField("Array").GetValue(obj); |
99 | if (a != null) | 99 | if (a != null) |
@@ -101,7 +101,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
101 | writer.WriteStartElement(String.Empty, "array", String.Empty); | 101 | writer.WriteStartElement(String.Empty, "array", String.Empty); |
102 | foreach (object item in a) | 102 | foreach (object item in a) |
103 | { | 103 | { |
104 | SerializeOSDType(writer, item); | 104 | SerializeLLSDType(writer, item); |
105 | } | 105 | } |
106 | writer.WriteEndElement(); | 106 | writer.WriteEndElement(); |
107 | } | 107 | } |
@@ -112,11 +112,11 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
112 | { | 112 | { |
113 | LLSD.LLSDWriteOne(writer, obj); | 113 | LLSD.LLSDWriteOne(writer, obj); |
114 | //OpenMetaverse.StructuredData.LLSDParser.SerializeXmlElement( | 114 | //OpenMetaverse.StructuredData.LLSDParser.SerializeXmlElement( |
115 | // writer, OpenMetaverse.StructuredData.OSD.FromObject(obj)); | 115 | // writer, OpenMetaverse.StructuredData.LLSD.FromObject(obj)); |
116 | } | 116 | } |
117 | } | 117 | } |
118 | 118 | ||
119 | public static object DeserialiseOSDMap(Hashtable llsd, object obj) | 119 | public static object DeserialiseLLSDMap(Hashtable llsd, object obj) |
120 | { | 120 | { |
121 | Type myType = obj.GetType(); | 121 | Type myType = obj.GetType(); |
122 | LLSDType[] llsdattributes = (LLSDType[]) myType.GetCustomAttributes(typeof (LLSDType), false); | 122 | LLSDType[] llsdattributes = (LLSDType[]) myType.GetCustomAttributes(typeof (LLSDType), false); |
@@ -133,12 +133,12 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
133 | FieldInfo field = myType.GetField(keyName); | 133 | FieldInfo field = myType.GetField(keyName); |
134 | if (field != null) | 134 | if (field != null) |
135 | { | 135 | { |
136 | // if (enumerator.Value is OpenMetaverse.StructuredData.OSDMap) | 136 | // if (enumerator.Value is OpenMetaverse.StructuredData.LLSDMap) |
137 | if (enumerator.Value is Hashtable) | 137 | if (enumerator.Value is Hashtable) |
138 | { | 138 | { |
139 | object fieldValue = field.GetValue(obj); | 139 | object fieldValue = field.GetValue(obj); |
140 | DeserialiseOSDMap((Hashtable) enumerator.Value, fieldValue); | 140 | DeserialiseLLSDMap((Hashtable) enumerator.Value, fieldValue); |
141 | // DeserialiseOSDMap((OpenMetaverse.StructuredData.OSDMap) enumerator.Value, fieldValue); | 141 | // DeserialiseLLSDMap((OpenMetaverse.StructuredData.LLSDMap) enumerator.Value, fieldValue); |
142 | } | 142 | } |
143 | else if (enumerator.Value is ArrayList) | 143 | else if (enumerator.Value is ArrayList) |
144 | { | 144 | { |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs b/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs index 3651513..ff36821 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDInventoryItem.cs | |||
@@ -29,7 +29,7 @@ using OpenMetaverse; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [OSDMap] | 32 | [LLSDMap] |
33 | public class LLSDInventoryItem | 33 | public class LLSDInventoryItem |
34 | { | 34 | { |
35 | public UUID parent_id; | 35 | public UUID parent_id; |
@@ -47,7 +47,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
47 | public int created_at; | 47 | public int created_at; |
48 | } | 48 | } |
49 | 49 | ||
50 | [OSDMap] | 50 | [LLSDMap] |
51 | public class LLSDPermissions | 51 | public class LLSDPermissions |
52 | { | 52 | { |
53 | public UUID creator_id; | 53 | public UUID creator_id; |
@@ -61,20 +61,20 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
61 | public bool is_owner_group; | 61 | public bool is_owner_group; |
62 | } | 62 | } |
63 | 63 | ||
64 | [OSDMap] | 64 | [LLSDMap] |
65 | public class LLSDSaleInfo | 65 | public class LLSDSaleInfo |
66 | { | 66 | { |
67 | public int sale_price; | 67 | public int sale_price; |
68 | public string sale_type; | 68 | public string sale_type; |
69 | } | 69 | } |
70 | 70 | ||
71 | [OSDMap] | 71 | [LLSDMap] |
72 | public class LLSDInventoryDescendents | 72 | public class LLSDInventoryDescendents |
73 | { | 73 | { |
74 | public OSDArray folders = new OSDArray(); | 74 | public LLSDArray folders = new LLSDArray(); |
75 | } | 75 | } |
76 | 76 | ||
77 | [OSDMap] | 77 | [LLSDMap] |
78 | public class LLSDFetchInventoryDescendents | 78 | public class LLSDFetchInventoryDescendents |
79 | { | 79 | { |
80 | public UUID folder_id; | 80 | public UUID folder_id; |
@@ -84,13 +84,13 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
84 | public bool fetch_items; | 84 | public bool fetch_items; |
85 | } | 85 | } |
86 | 86 | ||
87 | [OSDMap] | 87 | [LLSDMap] |
88 | public class LLSDInventoryFolderContents | 88 | public class LLSDInventoryFolderContents |
89 | { | 89 | { |
90 | public UUID agent___id; // the (three "_") "___" so the serialising knows to change this to a "-" | 90 | public UUID agent___id; // the (three "_") "___" so the serialising knows to change this to a "-" |
91 | public int descendents; | 91 | public int descendents; |
92 | public UUID folder___id; //as LL can't decide if they are going to use "_" or "-" to separate words in the field names | 92 | public UUID folder___id; //as LL can't decide if they are going to use "_" or "-" to separate words in the field names |
93 | public OSDArray items = new OSDArray(); | 93 | public LLSDArray items = new LLSDArray(); |
94 | public UUID owner___id; // and of course we can't have field names with "-" in | 94 | public UUID owner___id; // and of course we can't have field names with "-" in |
95 | public int version; | 95 | public int version; |
96 | } | 96 | } |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDItemUpdate.cs b/OpenSim/Framework/Communications/Capabilities/LLSDItemUpdate.cs index 4568732..c147bd3 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDItemUpdate.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDItemUpdate.cs | |||
@@ -29,7 +29,7 @@ using OpenMetaverse; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [OSDMap] | 32 | [LLSDMap] |
33 | public class LLSDItemUpdate | 33 | public class LLSDItemUpdate |
34 | { | 34 | { |
35 | public UUID item_id; | 35 | public UUID item_id; |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDMapLayer.cs b/OpenSim/Framework/Communications/Capabilities/LLSDMapLayer.cs index 356fa5e..fc381e4 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDMapLayer.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDMapLayer.cs | |||
@@ -30,7 +30,7 @@ using OpenMetaverse; | |||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [LLSDType("MAP")] | 32 | [LLSDType("MAP")] |
33 | public class OSDMapLayer | 33 | public class LLSDMapLayer |
34 | { | 34 | { |
35 | public int Left = 0; | 35 | public int Left = 0; |
36 | public int Right = 0; | 36 | public int Right = 0; |
@@ -38,7 +38,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
38 | public int Bottom = 0; | 38 | public int Bottom = 0; |
39 | public UUID ImageID = UUID.Zero; | 39 | public UUID ImageID = UUID.Zero; |
40 | 40 | ||
41 | public OSDMapLayer() | 41 | public LLSDMapLayer() |
42 | { | 42 | { |
43 | } | 43 | } |
44 | } | 44 | } |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDMapLayerResponse.cs b/OpenSim/Framework/Communications/Capabilities/LLSDMapLayerResponse.cs index 26815f9..7dabbec 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDMapLayerResponse.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDMapLayerResponse.cs | |||
@@ -31,7 +31,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
31 | public class LLSDMapLayerResponse | 31 | public class LLSDMapLayerResponse |
32 | { | 32 | { |
33 | public LLSDMapRequest AgentData = new LLSDMapRequest(); | 33 | public LLSDMapRequest AgentData = new LLSDMapRequest(); |
34 | public OSDArray LayerData = new OSDArray(); | 34 | public LLSDArray LayerData = new LLSDArray(); |
35 | 35 | ||
36 | public LLSDMapLayerResponse() | 36 | public LLSDMapLayerResponse() |
37 | { | 37 | { |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDParcelVoiceInfoResponse.cs b/OpenSim/Framework/Communications/Capabilities/LLSDParcelVoiceInfoResponse.cs index 829a2a9..c045dcf 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDParcelVoiceInfoResponse.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDParcelVoiceInfoResponse.cs | |||
@@ -30,7 +30,7 @@ using System.Collections; | |||
30 | 30 | ||
31 | namespace OpenSim.Framework.Communications.Capabilities | 31 | namespace OpenSim.Framework.Communications.Capabilities |
32 | { | 32 | { |
33 | [OSDMap] | 33 | [LLSDMap] |
34 | public class LLSDParcelVoiceInfoResponse | 34 | public class LLSDParcelVoiceInfoResponse |
35 | { | 35 | { |
36 | public int parcel_local_id; | 36 | public int parcel_local_id; |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDStreamHandler.cs b/OpenSim/Framework/Communications/Capabilities/LLSDStreamHandler.cs index c68a205..7fcbb81 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDStreamHandler.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDStreamHandler.cs | |||
@@ -53,12 +53,12 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
53 | //string requestBody = streamReader.ReadToEnd(); | 53 | //string requestBody = streamReader.ReadToEnd(); |
54 | //streamReader.Close(); | 54 | //streamReader.Close(); |
55 | 55 | ||
56 | // OpenMetaverse.StructuredData.OSDMap hash = (OpenMetaverse.StructuredData.OSDMap) | 56 | // OpenMetaverse.StructuredData.LLSDMap hash = (OpenMetaverse.StructuredData.LLSDMap) |
57 | // OpenMetaverse.StructuredData.LLSDParser.DeserializeXml(new XmlTextReader(request)); | 57 | // OpenMetaverse.StructuredData.LLSDParser.DeserializeXml(new XmlTextReader(request)); |
58 | 58 | ||
59 | Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(request); | 59 | Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(request); |
60 | TRequest llsdRequest = new TRequest(); | 60 | TRequest llsdRequest = new TRequest(); |
61 | LLSDHelpers.DeserialiseOSDMap(hash, llsdRequest); | 61 | LLSDHelpers.DeserialiseLLSDMap(hash, llsdRequest); |
62 | 62 | ||
63 | TResponse response = m_method(llsdRequest); | 63 | TResponse response = m_method(llsdRequest); |
64 | 64 | ||
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDTaskInventoryUploadComplete.cs b/OpenSim/Framework/Communications/Capabilities/LLSDTaskInventoryUploadComplete.cs index bcea657..b34cbf9 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDTaskInventoryUploadComplete.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDTaskInventoryUploadComplete.cs | |||
@@ -29,7 +29,7 @@ using OpenMetaverse; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [OSDMap] | 32 | [LLSDMap] |
33 | public class LLSDTaskInventoryUploadComplete | 33 | public class LLSDTaskInventoryUploadComplete |
34 | { | 34 | { |
35 | /// <summary> | 35 | /// <summary> |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDTaskScriptUpdate.cs b/OpenSim/Framework/Communications/Capabilities/LLSDTaskScriptUpdate.cs index 7401768..730e95b 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDTaskScriptUpdate.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDTaskScriptUpdate.cs | |||
@@ -29,7 +29,7 @@ using OpenMetaverse; | |||
29 | 29 | ||
30 | namespace OpenSim.Framework.Communications.Capabilities | 30 | namespace OpenSim.Framework.Communications.Capabilities |
31 | { | 31 | { |
32 | [OSDMap] | 32 | [LLSDMap] |
33 | public class LLSDTaskScriptUpdate | 33 | public class LLSDTaskScriptUpdate |
34 | { | 34 | { |
35 | /// <summary> | 35 | /// <summary> |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDType.cs b/OpenSim/Framework/Communications/Capabilities/LLSDType.cs index 949e119..181a465 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDType.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDType.cs | |||
@@ -46,9 +46,9 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
46 | } | 46 | } |
47 | 47 | ||
48 | [AttributeUsage(AttributeTargets.Class)] | 48 | [AttributeUsage(AttributeTargets.Class)] |
49 | public class OSDMap : LLSDType | 49 | public class LLSDMap : LLSDType |
50 | { | 50 | { |
51 | public OSDMap() : base("MAP") | 51 | public LLSDMap() : base("MAP") |
52 | { | 52 | { |
53 | } | 53 | } |
54 | } | 54 | } |
diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDVoiceAccountResponse.cs b/OpenSim/Framework/Communications/Capabilities/LLSDVoiceAccountResponse.cs index 6cd5ee3..8143233 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDVoiceAccountResponse.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDVoiceAccountResponse.cs | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | namespace OpenSim.Framework.Communications.Capabilities | 29 | namespace OpenSim.Framework.Communications.Capabilities |
30 | { | 30 | { |
31 | [OSDMap] | 31 | [LLSDMap] |
32 | public class LLSDVoiceAccountResponse | 32 | public class LLSDVoiceAccountResponse |
33 | { | 33 | { |
34 | public string username; | 34 | public string username; |