summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-18 15:27:08 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-18 15:27:08 +0000
commit3af4bb5ed2c17d17ecc8073cd233277ed8541cf1 (patch)
tree5269a2674b1e50ba322c1636580c84579c321459 /plugins/MirLua/src/mlua.h
parent6f8ff613bd81e4592173e9039ec0dc6f01ce5e6b (diff)
MirLua: scripts reloading pt.1
git-svn-id: http://svn.miranda-ng.org/main/trunk@14245 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua.h')
-rw-r--r--plugins/MirLua/src/mlua.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/MirLua/src/mlua.h b/plugins/MirLua/src/mlua.h
index cf1eb7c0fa..fc10545c42 100644
--- a/plugins/MirLua/src/mlua.h
+++ b/plugins/MirLua/src/mlua.h
@@ -7,15 +7,22 @@ private:
lua_State *L;
static luaL_Reg coreLib[15];
- void Preload(const char *name, lua_CFunction func);
+ void LoadModule(const char *name, lua_CFunction func);
+
+ void LoadCoreModule();
+ void LoadMirandaModules();
+
+ void Load();
+ void Unload();
public:
CMLua();
~CMLua();
- void AddPath(const char *path);
+ void Reload();
- void Load(const char *name);
+ void AddScriptsPath(const char *path);
+ void LoadScript(const char *name);
static WPARAM GetWParam(lua_State *L, int idx);
static LPARAM GetLParam(lua_State *L, int idx);