diff Core/Lua/LuaContext.h @ 1437:02f5a3f5c0a0

access to the REST API from Lua
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2015 18:41:33 +0200
parents 6e7e5ed91c2d
children 5ba7471780ae
line wrap: on
line diff
--- a/Core/Lua/LuaContext.h	Tue Jun 30 17:19:26 2015 +0200
+++ b/Core/Lua/LuaContext.h	Tue Jun 30 18:41:33 2015 +0200
@@ -57,6 +57,7 @@
     static LuaContext& GetLuaContext(lua_State *state);
 
     static int PrintToLog(lua_State *state);
+    static int ParseJsonString(lua_State *state);
 
     static int SetHttpCredentials(lua_State *state);
 
@@ -107,5 +108,14 @@
     {
       httpClient_.SetProxy(proxy);
     }
+
+    void RegisterFunction(const char* name,
+                          lua_CFunction func);
+
+    void SetGlobalVariable(const char* name,
+                           void* value);
+
+    static const void* GetGlobalVariable(lua_State* state,
+                                         const char* name);
   };
 }