Rename new JsonScript functions JsonPathType() -> JsonGetPathType() and JsonArrayLength() -> JsonGetArrayLength()
This is for consistentency with the verb:noun naming approach existing json script functions and other script functions. Corresponding c# methods also changed since verb:noun is also the .net c# method naming guideline (as used by OpenSimulator) and for consistency with script functions. As agreed with cmickeyb0.7.4-extended
parent
1df97c2385
commit
fe06b49dd6
|
@ -48,7 +48,7 @@ namespace OpenSim.Region.Framework.Interfaces
|
|||
bool CreateStore(string value, ref UUID result);
|
||||
bool DestroyStore(UUID storeID);
|
||||
|
||||
JsonStoreNodeType PathType(UUID storeID, string path);
|
||||
JsonStoreNodeType GetPathType(UUID storeID, string path);
|
||||
bool TestStore(UUID storeID);
|
||||
bool TestPath(UUID storeID, string path, bool useJson);
|
||||
|
||||
|
@ -59,6 +59,6 @@ namespace OpenSim.Region.Framework.Interfaces
|
|||
void TakeValue(UUID storeID, string path, bool useJson, TakeValueCallback cback);
|
||||
void ReadValue(UUID storeID, string path, bool useJson, TakeValueCallback cback);
|
||||
|
||||
int ArrayLength(UUID storeID, string path);
|
||||
int GetArrayLength(UUID storeID, string path);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -234,7 +234,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
|
|||
///
|
||||
/// </summary>
|
||||
// -----------------------------------------------------------------
|
||||
public JsonStoreNodeType PathType(UUID storeID, string path)
|
||||
public JsonStoreNodeType GetPathType(UUID storeID, string path)
|
||||
{
|
||||
if (! m_enabled) return JsonStoreNodeType.Undefined;
|
||||
|
||||
|
@ -362,7 +362,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
|
|||
///
|
||||
/// </summary>
|
||||
// -----------------------------------------------------------------
|
||||
public int ArrayLength(UUID storeID, string path)
|
||||
public int GetArrayLength(UUID storeID, string path)
|
||||
{
|
||||
if (! m_enabled) return -1;
|
||||
|
||||
|
|
|
@ -320,9 +320,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
|
|||
/// </summary>
|
||||
// -----------------------------------------------------------------
|
||||
[ScriptInvocation]
|
||||
public int JsonPathType(UUID hostID, UUID scriptID, UUID storeID, string path)
|
||||
public int JsonGetPathType(UUID hostID, UUID scriptID, UUID storeID, string path)
|
||||
{
|
||||
return (int)m_store.PathType(storeID,path);
|
||||
return (int)m_store.GetPathType(storeID,path);
|
||||
}
|
||||
|
||||
[ScriptInvocation]
|
||||
|
@ -371,9 +371,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
|
|||
/// </summary>
|
||||
// -----------------------------------------------------------------
|
||||
[ScriptInvocation]
|
||||
public int JsonArrayLength(UUID hostID, UUID scriptID, UUID storeID, string path)
|
||||
public int JsonGetArrayLength(UUID hostID, UUID scriptID, UUID storeID, string path)
|
||||
{
|
||||
return m_store.ArrayLength(storeID,path);
|
||||
return m_store.GetArrayLength(storeID,path);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue