aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
authordiva2009-05-25 20:30:24 +0000
committerdiva2009-05-25 20:30:24 +0000
commitcb704ecde19c512bfa4fc0b317d37fec63e76713 (patch)
tree1960e54ce2312b95f030009c335b5211322ef60d /OpenSim/Services
parent* reseparate inventory item creator id and creator uuid (diff)
downloadopensim-SC-cb704ecde19c512bfa4fc0b317d37fec63e76713.zip
opensim-SC-cb704ecde19c512bfa4fc0b317d37fec63e76713.tar.gz
opensim-SC-cb704ecde19c512bfa4fc0b317d37fec63e76713.tar.bz2
opensim-SC-cb704ecde19c512bfa4fc0b317d37fec63e76713.tar.xz
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.
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/Interfaces/IAuthenticationService.cs14
-rw-r--r--OpenSim/Services/Interfaces/ISimulationService.cs81
2 files changed, 95 insertions, 0 deletions
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 @@
1using System;
2using OpenMetaverse;
3
4namespace OpenSim.Services.Interfaces
5{
6 public interface IAuthenticationService
7 {
8 string GetNewKey(UUID userID, UUID authToken);
9
10 bool VerifyKey(UUID userID, string key);
11
12 bool VerifySession(UUID iserID, UUID sessionID);
13 }
14}
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 @@
1using System;
2using OpenSim.Framework;
3using OpenMetaverse;
4
5namespace OpenSim.Services.Interfaces
6{
7 public interface ISimulationService
8 {
9 #region Agents
10
11 bool CreateAgent(ulong regionHandle, AgentCircuitData aCircuit, out string reason);
12
13 /// <summary>
14 /// Full child agent update.
15 /// </summary>
16 /// <param name="regionHandle"></param>
17 /// <param name="data"></param>
18 /// <returns></returns>
19 bool UpdateAgent(ulong regionHandle, AgentData data);
20
21 /// <summary>
22 /// Short child agent update, mostly for position.
23 /// </summary>
24 /// <param name="regionHandle"></param>
25 /// <param name="data"></param>
26 /// <returns></returns>
27 bool UpdateAgent(ulong regionHandle, AgentPosition data);
28
29 bool RetrieveAgent(ulong regionHandle, UUID id, out IAgentData agent);
30
31 /// <summary>
32 /// Message from receiving region to departing region, telling it got contacted by the client.
33 /// When sent over REST, it invokes the opaque uri.
34 /// </summary>
35 /// <param name="regionHandle"></param>
36 /// <param name="id"></param>
37 /// <param name="uri"></param>
38 /// <returns></returns>
39 bool ReleaseAgent(ulong regionHandle, UUID id, string uri);
40
41 /// <summary>
42 /// Close agent.
43 /// </summary>
44 /// <param name="regionHandle"></param>
45 /// <param name="id"></param>
46 /// <returns></returns>
47 bool CloseAgent(ulong regionHandle, UUID id);
48
49 #endregion Agents
50
51 #region Objects
52
53 /// <summary>
54 /// Create an object in the destination region. This message is used primarily for prim crossing.
55 /// </summary>
56 /// <param name="regionHandle"></param>
57 /// <param name="sog"></param>
58 /// <param name="isLocalCall"></param>
59 /// <returns></returns>
60 bool CreateObject(ulong regionHandle, ISceneObject sog, bool isLocalCall);
61
62 /// <summary>
63 /// Create an object from the user's inventory in the destination region.
64 /// This message is used primarily by clients.
65 /// </summary>
66 /// <param name="regionHandle"></param>
67 /// <param name="userID"></param>
68 /// <param name="itemID"></param>
69 /// <returns></returns>
70 bool CreateObject(ulong regionHandle, UUID userID, UUID itemID);
71
72 #endregion Objects
73
74 #region Regions
75
76 bool HelloNeighbour(ulong regionHandle, RegionInfo thisRegion);
77
78 #endregion Regions
79
80 }
81}