Mercurial > hg > orthanc
diff Core/Lua/LuaContext.h @ 1587:d7e569640d09
New function "GetOrthancConfiguration()" to get the Orthanc configuration
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 26 Aug 2015 12:12:25 +0200 |
parents | 9ea3d082b064 |
children | 54bafe0e7e7b |
line wrap: on
line diff
--- a/Core/Lua/LuaContext.h Wed Aug 26 07:40:18 2015 +0200 +++ b/Core/Lua/LuaContext.h Wed Aug 26 12:12:25 2015 +0200 @@ -53,8 +53,6 @@ std::string log_; HttpClient httpClient_; - static LuaContext& GetLuaContext(lua_State *state); - static int PrintToLog(lua_State *state); static int ParseJson(lua_State *state); static int DumpJson(lua_State *state); @@ -73,8 +71,6 @@ void ExecuteInternal(std::string* output, const std::string& command); - void PushJson(const Json::Value& value); - void GetJson(Json::Value& result, int top); @@ -118,7 +114,11 @@ void SetGlobalVariable(const char* name, void* value); + static LuaContext& GetLuaContext(lua_State *state); + static const void* GetGlobalVariable(lua_State* state, const char* name); + + void PushJson(const Json::Value& value); }; }