From cb704ecde19c512bfa4fc0b317d37fec63e76713 Mon Sep 17 00:00:00 2001
From: diva
Date: Mon, 25 May 2009 20:30:24 +0000
Subject: Beginning of refactoring RESTComms/LocalComms in the new style of
services and connectors. This commit has the beginning of the In connector,
not the Out. Nothing of this is finished yet, and it doesn't run. But it
should compile ok.
---
.../Services/Interfaces/IAuthenticationService.cs | 14 ++++
OpenSim/Services/Interfaces/ISimulationService.cs | 81 ++++++++++++++++++++++
2 files changed, 95 insertions(+)
create mode 100644 OpenSim/Services/Interfaces/IAuthenticationService.cs
create mode 100644 OpenSim/Services/Interfaces/ISimulationService.cs
(limited to 'OpenSim/Services/Interfaces')
diff --git a/OpenSim/Services/Interfaces/IAuthenticationService.cs b/OpenSim/Services/Interfaces/IAuthenticationService.cs
new file mode 100644
index 0000000..25ceaa6
--- /dev/null
+++ b/OpenSim/Services/Interfaces/IAuthenticationService.cs
@@ -0,0 +1,14 @@
+using System;
+using OpenMetaverse;
+
+namespace OpenSim.Services.Interfaces
+{
+ public interface IAuthenticationService
+ {
+ string GetNewKey(UUID userID, UUID authToken);
+
+ bool VerifyKey(UUID userID, string key);
+
+ bool VerifySession(UUID iserID, UUID sessionID);
+ }
+}
diff --git a/OpenSim/Services/Interfaces/ISimulationService.cs b/OpenSim/Services/Interfaces/ISimulationService.cs
new file mode 100644
index 0000000..da5410b
--- /dev/null
+++ b/OpenSim/Services/Interfaces/ISimulationService.cs
@@ -0,0 +1,81 @@
+using System;
+using OpenSim.Framework;
+using OpenMetaverse;
+
+namespace OpenSim.Services.Interfaces
+{
+ public interface ISimulationService
+ {
+ #region Agents
+
+ bool CreateAgent(ulong regionHandle, AgentCircuitData aCircuit, out string reason);
+
+ ///
+ /// Full child agent update.
+ ///
+ ///
+ ///
+ ///
+ bool UpdateAgent(ulong regionHandle, AgentData data);
+
+ ///
+ /// Short child agent update, mostly for position.
+ ///
+ ///
+ ///
+ ///
+ bool UpdateAgent(ulong regionHandle, AgentPosition data);
+
+ bool RetrieveAgent(ulong regionHandle, UUID id, out IAgentData agent);
+
+ ///
+ /// Message from receiving region to departing region, telling it got contacted by the client.
+ /// When sent over REST, it invokes the opaque uri.
+ ///
+ ///
+ ///
+ ///
+ ///
+ bool ReleaseAgent(ulong regionHandle, UUID id, string uri);
+
+ ///
+ /// Close agent.
+ ///
+ ///
+ ///
+ ///
+ bool CloseAgent(ulong regionHandle, UUID id);
+
+ #endregion Agents
+
+ #region Objects
+
+ ///
+ /// Create an object in the destination region. This message is used primarily for prim crossing.
+ ///
+ ///
+ ///
+ ///
+ ///
+ bool CreateObject(ulong regionHandle, ISceneObject sog, bool isLocalCall);
+
+ ///
+ /// Create an object from the user's inventory in the destination region.
+ /// This message is used primarily by clients.
+ ///
+ ///
+ ///
+ ///
+ ///
+ bool CreateObject(ulong regionHandle, UUID userID, UUID itemID);
+
+ #endregion Objects
+
+ #region Regions
+
+ bool HelloNeighbour(ulong regionHandle, RegionInfo thisRegion);
+
+ #endregion Regions
+
+ }
+}
--
cgit v1.1