From f79400e94ca6f8b609f5d4cbe25c5bbc04b61b77 Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Sun, 1 May 2011 18:22:53 -0700
Subject: Broke down Caps.cs into a generic Caps object that simply
registers/unregisters capabilities and a specific bunch of capability
implementations in Linden space called BunchOfCaps. Renamed a few methods
that were misnomers. Compiles but doesn't work.
---
OpenSim/Region/Framework/Interfaces/ICapabilitiesModule.cs | 14 +++++---------
OpenSim/Region/Framework/Scenes/Scene.cs | 8 ++++----
2 files changed, 9 insertions(+), 13 deletions(-)
(limited to 'OpenSim/Region/Framework')
diff --git a/OpenSim/Region/Framework/Interfaces/ICapabilitiesModule.cs b/OpenSim/Region/Framework/Interfaces/ICapabilitiesModule.cs
index 73bffa0..522c82d 100644
--- a/OpenSim/Region/Framework/Interfaces/ICapabilitiesModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/ICapabilitiesModule.cs
@@ -34,31 +34,27 @@ namespace OpenSim.Region.Framework.Interfaces
{
public interface ICapabilitiesModule
{
- void NewUserConnection(AgentCircuitData agent);
-
///
/// Add a caps handler for the given agent. If the CAPS handler already exists for this agent,
/// then it is replaced by a new CAPS handler.
- ///
- /// FIXME: On login this is called twice, once for the login and once when the connection is made.
- /// This is somewhat innefficient and should be fixed. The initial login creation is necessary
- /// since the client asks for capabilities immediately after being informed of the seed.
///
///
///
- void AddCapsHandler(UUID agentId);
+ void CreateCaps(UUID agentId);
///
/// Remove the caps handler for a given agent.
///
///
- void RemoveCapsHandler(UUID agentId);
+ void RemoveCaps(UUID agentId);
///
/// Will return null if the agent doesn't have a caps handler registered
///
///
- Caps GetCapsHandlerForUser(UUID agentId);
+ Caps GetCapsForUser(UUID agentId);
+
+ void SetAgentCapsSeeds(AgentCircuitData agent);
Dictionary GetChildrenSeeds(UUID agentID);
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 7c5e246..b537381 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -3033,7 +3033,7 @@ namespace OpenSim.Region.Framework.Scenes
m_sceneGraph.removeUserCount(!childagentYN);
if (CapsModule != null)
- CapsModule.RemoveCapsHandler(agentID);
+ CapsModule.RemoveCaps(agentID);
// REFACTORING PROBLEM -- well not really a problem, but just to point out that whatever
// this method is doing is HORRIBLE!!!
@@ -3290,8 +3290,8 @@ namespace OpenSim.Region.Framework.Scenes
if (CapsModule != null)
{
- CapsModule.NewUserConnection(agent);
- CapsModule.AddCapsHandler(agent.AgentID);
+ CapsModule.SetAgentCapsSeeds(agent);
+ CapsModule.CreateCaps(agent.AgentID);
}
}
else
@@ -3309,7 +3309,7 @@ namespace OpenSim.Region.Framework.Scenes
sp.AdjustKnownSeeds();
if (CapsModule != null)
- CapsModule.NewUserConnection(agent);
+ CapsModule.SetAgentCapsSeeds(agent);
}
}
--
cgit v1.1