Mercurial > hg > orthanc
diff Core/Lua/LuaContext.h @ 1447:5ba7471780ae
refactoring: HttpToolbox, DumpJson in Lua
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 01 Jul 2015 17:42:06 +0200 |
parents | 02f5a3f5c0a0 |
children | 3f7722179467 |
line wrap: on
line diff
--- a/Core/Lua/LuaContext.h Wed Jul 01 13:16:12 2015 +0200 +++ b/Core/Lua/LuaContext.h Wed Jul 01 17:42:06 2015 +0200 @@ -57,7 +57,8 @@ static LuaContext& GetLuaContext(lua_State *state); static int PrintToLog(lua_State *state); - static int ParseJsonString(lua_State *state); + static int ParseJson(lua_State *state); + static int DumpJson(lua_State *state); static int SetHttpCredentials(lua_State *state); @@ -74,6 +75,10 @@ const std::string& command); void PushJson(const Json::Value& value); + + static bool GetJson(Json::Value& result, + lua_State *state, + int index); public: LuaContext();