aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Interfaces/IJsonStoreModule.cs
diff options
context:
space:
mode:
authorMic Bowman2013-03-05 20:33:17 -0800
committerMic Bowman2013-03-05 20:33:17 -0800
commit9875e840f7e71f0b253c0b2aa90d47edc9c77b64 (patch)
treec2d71dc50c1f9eb48879d65038c6efd2ccca5686 /OpenSim/Region/Framework/Interfaces/IJsonStoreModule.cs
parentConvert doubles passed back through the MOD interface into LSL_Floats (diff)
downloadopensim-SC-9875e840f7e71f0b253c0b2aa90d47edc9c77b64.zip
opensim-SC-9875e840f7e71f0b253c0b2aa90d47edc9c77b64.tar.gz
opensim-SC-9875e840f7e71f0b253c0b2aa90d47edc9c77b64.tar.bz2
opensim-SC-9875e840f7e71f0b253c0b2aa90d47edc9c77b64.tar.xz
Per discussions with justincc... split the JsonStore type
functions into one for node type and one for value type. Define and export constants for both nodes and values.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Interfaces/IJsonStoreModule.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IJsonStoreModule.cs b/OpenSim/Region/Framework/Interfaces/IJsonStoreModule.cs
index 345f01b..b67312e 100644
--- a/OpenSim/Region/Framework/Interfaces/IJsonStoreModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IJsonStoreModule.cs
@@ -41,6 +41,16 @@ namespace OpenSim.Region.Framework.Interfaces
41 Value = 3 41 Value = 3
42 } 42 }
43 43
44 public enum JsonStoreValueType
45 {
46 Undefined = 0,
47 Boolean = 1,
48 Integer = 2,
49 Float = 3,
50 String = 4,
51 UUID = 5
52 }
53
44 public delegate void TakeValueCallback(string s); 54 public delegate void TakeValueCallback(string s);
45 55
46 public interface IJsonStoreModule 56 public interface IJsonStoreModule
@@ -49,7 +59,9 @@ namespace OpenSim.Region.Framework.Interfaces
49 bool CreateStore(string value, ref UUID result); 59 bool CreateStore(string value, ref UUID result);
50 bool DestroyStore(UUID storeID); 60 bool DestroyStore(UUID storeID);
51 61
52 JsonStoreNodeType GetPathType(UUID storeID, string path); 62 JsonStoreNodeType GetNodeType(UUID storeID, string path);
63 JsonStoreValueType GetValueType(UUID storeID, string path);
64
53 bool TestStore(UUID storeID); 65 bool TestStore(UUID storeID);
54 66
55 bool SetValue(UUID storeID, string path, string value, bool useJson); 67 bool SetValue(UUID storeID, string path, string value, bool useJson);