diff Core/Lua/LuaContext.h @ 3442:dd1e68f2d0c0

Fix issue #106 (Unable to export preview as jpeg from Lua script)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 24 Jun 2019 16:06:47 +0200
parents 4e43e67f8ecf
children 94f4a18a79cc
line wrap: on
line diff
--- a/Core/Lua/LuaContext.h	Mon Jun 24 12:37:52 2019 +0200
+++ b/Core/Lua/LuaContext.h	Mon Jun 24 16:06:47 2019 +0200
@@ -87,11 +87,12 @@
     void ExecuteInternal(std::string* output,
                          const std::string& command);
 
-    void GetJson(Json::Value& result,
-                 int top,
-                 bool keepStrings);
+    static void GetJson(Json::Value& result,
+                        lua_State* state,
+                        int top,
+                        bool keepStrings);
 
-    void SetHttpHeaders(lua_State* state, int top);
+    void SetHttpHeaders(int top);
     
   public:
     LuaContext();
@@ -136,5 +137,10 @@
                                          const char* name);
 
     void PushJson(const Json::Value& value);
+
+    static void GetDictionaryArgument(std::map<std::string, std::string>& target,
+                                      lua_State* state,
+                                      int top,
+                                      bool keyToLowerCase);
   };
 }