aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Data/IFriendsData.cs4
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs7
-rw-r--r--OpenSim/Region/Framework/Interfaces/IFriendsModule.cs9
3 files changed, 17 insertions, 3 deletions
diff --git a/OpenSim/Data/IFriendsData.cs b/OpenSim/Data/IFriendsData.cs
index 3ddde19..7618976 100644
--- a/OpenSim/Data/IFriendsData.cs
+++ b/OpenSim/Data/IFriendsData.cs
@@ -35,8 +35,8 @@ namespace OpenSim.Data
35 public class FriendsData 35 public class FriendsData
36 { 36 {
37 public UUID PrincipalID; 37 public UUID PrincipalID;
38 public string FriendID; 38 public string Friend;
39 public string Flags; 39 public Dictionary<string, string> Data;
40 } 40 }
41 41
42 /// <summary> 42 /// <summary>
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index a07b6e2..a9388ef 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -40,7 +40,7 @@ using OpenSim.Framework.Communications;
40using OpenSim.Region.Framework.Interfaces; 40using OpenSim.Region.Framework.Interfaces;
41using OpenSim.Region.Framework.Scenes; 41using OpenSim.Region.Framework.Scenes;
42using OpenSim.Services.Interfaces; 42using OpenSim.Services.Interfaces;
43using GridRegion = OpenSim.Services.Interfaces.GridRegion; 43using FriendInfo = OpenSim.Region.Framework.Interfaces.FriendInfo;
44 44
45namespace OpenSim.Region.CoreModules.Avatar.Friends 45namespace OpenSim.Region.CoreModules.Avatar.Friends
46{ 46{
@@ -88,5 +88,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
88 { 88 {
89 return 1; 89 return 1;
90 } 90 }
91
92 public FriendInfo[] GetFriends(UUID PrincipalID)
93 {
94 return new FriendInfo[0];
95 }
91 } 96 }
92} 97}
diff --git a/OpenSim/Region/Framework/Interfaces/IFriendsModule.cs b/OpenSim/Region/Framework/Interfaces/IFriendsModule.cs
index 239a2ba..cab6374 100644
--- a/OpenSim/Region/Framework/Interfaces/IFriendsModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IFriendsModule.cs
@@ -31,6 +31,14 @@ using System.Collections.Generic;
31 31
32namespace OpenSim.Region.Framework.Interfaces 32namespace OpenSim.Region.Framework.Interfaces
33{ 33{
34 public struct FriendInfo
35 {
36 public UUID PrincipalID;
37 public string Friend;
38 int MyRights;
39 int TheirRights;
40 }
41
34 public interface IFriendsModule 42 public interface IFriendsModule
35 { 43 {
36 /// <summary> 44 /// <summary>
@@ -47,5 +55,6 @@ namespace OpenSim.Region.Framework.Interfaces
47 /// <param name="offerMessage"></param> 55 /// <param name="offerMessage"></param>
48 void OfferFriendship(UUID fromUserId, IClientAPI toUserClient, string offerMessage); 56 void OfferFriendship(UUID fromUserId, IClientAPI toUserClient, string offerMessage);
49 uint GetFriendPerms(UUID PrincipalID, UUID FriendID); 57 uint GetFriendPerms(UUID PrincipalID, UUID FriendID);
58 FriendInfo[] GetFriends(UUID PrincipalID);
50 } 59 }
51} 60}