diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/IClientAPI.cs | 1 | ||||
-rw-r--r-- | OpenSim/Framework/IScene.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/SLUtil.cs | 28 | ||||
-rw-r--r-- | OpenSim/Framework/Util.cs | 18 |
4 files changed, 49 insertions, 0 deletions
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index 3126e57..4577758 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs | |||
@@ -1480,5 +1480,6 @@ namespace OpenSim.Framework | |||
1480 | void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt); | 1480 | void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt); |
1481 | 1481 | ||
1482 | void SendChangeUserRights(UUID agentID, UUID friendID, int rights); | 1482 | void SendChangeUserRights(UUID agentID, UUID friendID, int rights); |
1483 | void SendTextBoxRequest(string message, int chatChannel, string objectname, string ownerFirstName, string ownerLastName, UUID objectId); | ||
1483 | } | 1484 | } |
1484 | } | 1485 | } |
diff --git a/OpenSim/Framework/IScene.cs b/OpenSim/Framework/IScene.cs index 27b3d47..86d63f8 100644 --- a/OpenSim/Framework/IScene.cs +++ b/OpenSim/Framework/IScene.cs | |||
@@ -91,6 +91,8 @@ namespace OpenSim.Framework | |||
91 | /// </exception> | 91 | /// </exception> |
92 | bool PresenceChildStatus(UUID agentId); | 92 | bool PresenceChildStatus(UUID agentId); |
93 | 93 | ||
94 | bool TryGetAvatar(UUID agentID, out object scenePresence); | ||
95 | |||
94 | T RequestModuleInterface<T>(); | 96 | T RequestModuleInterface<T>(); |
95 | T[] RequestModuleInterfaces<T>(); | 97 | T[] RequestModuleInterfaces<T>(); |
96 | 98 | ||
diff --git a/OpenSim/Framework/SLUtil.cs b/OpenSim/Framework/SLUtil.cs index 81d82be..2fc5bdf 100644 --- a/OpenSim/Framework/SLUtil.cs +++ b/OpenSim/Framework/SLUtil.cs | |||
@@ -59,6 +59,20 @@ namespace OpenSim.Framework | |||
59 | return "application/vnd.ll.gesture"; | 59 | return "application/vnd.ll.gesture"; |
60 | case AssetType.Simstate: | 60 | case AssetType.Simstate: |
61 | return "application/x-metaverse-simstate"; | 61 | return "application/x-metaverse-simstate"; |
62 | case AssetType.FavoriteFolder: | ||
63 | return "application/vnd.ll.favoritefolder"; | ||
64 | case AssetType.Link: | ||
65 | return "application/vnd.ll.link"; | ||
66 | case AssetType.LinkFolder: | ||
67 | return "application/vnd.ll.linkfolder"; | ||
68 | case AssetType.CurrentOutfitFolder: | ||
69 | return "application/vnd.ll.currentoutfitfolder"; | ||
70 | case AssetType.OutfitFolder: | ||
71 | return "application/vnd.ll.outfitfolder"; | ||
72 | case AssetType.MyOutfitsFolder: | ||
73 | return "application/vnd.ll.myoutfitsfolder"; | ||
74 | case AssetType.InboxFolder: | ||
75 | return "application/vnd.ll.inboxfolder"; | ||
62 | case AssetType.Unknown: | 76 | case AssetType.Unknown: |
63 | default: | 77 | default: |
64 | return "application/octet-stream"; | 78 | return "application/octet-stream"; |
@@ -123,6 +137,20 @@ namespace OpenSim.Framework | |||
123 | return (sbyte)AssetType.Gesture; | 137 | return (sbyte)AssetType.Gesture; |
124 | case "application/x-metaverse-simstate": | 138 | case "application/x-metaverse-simstate": |
125 | return (sbyte)AssetType.Simstate; | 139 | return (sbyte)AssetType.Simstate; |
140 | case "application/vnd.ll.favoritefolder": | ||
141 | return (sbyte)AssetType.FavoriteFolder; | ||
142 | case "application/vnd.ll.link": | ||
143 | return (sbyte)AssetType.Link; | ||
144 | case "application/vnd.ll.linkfolder": | ||
145 | return (sbyte)AssetType.LinkFolder; | ||
146 | case "application/vnd.ll.currentoutfitfolder": | ||
147 | return (sbyte)AssetType.CurrentOutfitFolder; | ||
148 | case "application/vnd.ll.outfitfolder": | ||
149 | return (sbyte)AssetType.OutfitFolder; | ||
150 | case "application/vnd.ll.myoutfitsfolder": | ||
151 | return (sbyte)AssetType.MyOutfitsFolder; | ||
152 | case "application/vnd.ll.inboxfolder": | ||
153 | return (sbyte)AssetType.InboxFolder; | ||
126 | case "application/octet-stream": | 154 | case "application/octet-stream": |
127 | default: | 155 | default: |
128 | return (sbyte)AssetType.Unknown; | 156 | return (sbyte)AssetType.Unknown; |
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 0ccc193..8cb9127 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -29,6 +29,7 @@ using System; | |||
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Data; | 31 | using System.Data; |
32 | using System.Diagnostics; | ||
32 | using System.Globalization; | 33 | using System.Globalization; |
33 | using System.IO; | 34 | using System.IO; |
34 | using System.IO.Compression; | 35 | using System.IO.Compression; |
@@ -1443,6 +1444,7 @@ namespace OpenSim.Framework | |||
1443 | } | 1444 | } |
1444 | 1445 | ||
1445 | #endregion FireAndForget Threading Pattern | 1446 | #endregion FireAndForget Threading Pattern |
1447 | |||
1446 | /// <summary> | 1448 | /// <summary> |
1447 | /// Environment.TickCount is an int but it counts all 32 bits so it goes positive | 1449 | /// Environment.TickCount is an int but it counts all 32 bits so it goes positive |
1448 | /// and negative every 24.9 days. This trims down TickCount so it doesn't wrap | 1450 | /// and negative every 24.9 days. This trims down TickCount so it doesn't wrap |
@@ -1467,5 +1469,21 @@ namespace OpenSim.Framework | |||
1467 | Int32 diff = EnvironmentTickCount() - prevValue; | 1469 | Int32 diff = EnvironmentTickCount() - prevValue; |
1468 | return (diff >= 0) ? diff : (diff + EnvironmentTickCountMask + 1); | 1470 | return (diff >= 0) ? diff : (diff + EnvironmentTickCountMask + 1); |
1469 | } | 1471 | } |
1472 | |||
1473 | /// <summary> | ||
1474 | /// Prints the call stack at any given point. Useful for debugging. | ||
1475 | /// </summary> | ||
1476 | public static void PrintCallStack() | ||
1477 | { | ||
1478 | StackTrace stackTrace = new StackTrace(); // get call stack | ||
1479 | StackFrame[] stackFrames = stackTrace.GetFrames(); // get method calls (frames) | ||
1480 | |||
1481 | // write call stack method names | ||
1482 | foreach (StackFrame stackFrame in stackFrames) | ||
1483 | { | ||
1484 | m_log.Debug(stackFrame.GetMethod().DeclaringType + "." + stackFrame.GetMethod().Name); // write method name | ||
1485 | } | ||
1486 | } | ||
1487 | |||
1470 | } | 1488 | } |
1471 | } | 1489 | } |