summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_script.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-02-15 17:09:42 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-02-15 17:09:42 +0000
commit06c13fcc7c6c9b7b8448e550568c5993dbd96628 (patch)
tree8ba39163ab86765cfeed6b8d73d528ee6dd9bd33 /plugins/MirLua/src/mlua_script.h
parenta7967e3364a0b5528433de65cfbb743c57625e72 (diff)
MirLua: returned ability to reload single script
git-svn-id: http://svn.miranda-ng.org/main/trunk@16282 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_script.h')
-rw-r--r--plugins/MirLua/src/mlua_script.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/MirLua/src/mlua_script.h b/plugins/MirLua/src/mlua_script.h
index 76731395fb..742fc9ac75 100644
--- a/plugins/MirLua/src/mlua_script.h
+++ b/plugins/MirLua/src/mlua_script.h
@@ -4,6 +4,8 @@
class CMLuaScript
{
public:
+ lua_State *L;
+
enum Status
{
None,
@@ -12,18 +14,21 @@ public:
};
private:
- lua_State *L;
-
+ int id;
char *moduleName;
TCHAR *fileName;
TCHAR filePath[MAX_PATH];
Status status;
- int unloadRef;
public:
CMLuaScript(lua_State *L, const TCHAR *path);
~CMLuaScript();
+ //const int GetId() const;
+
+ static CMLuaScript* GetScriptFromEnviroment(lua_State *L, int n = 1);
+ static int GetScriptIdFromEnviroment(lua_State *L, int n = 1);
+
const char* GetModuleName() const;
const TCHAR* GetFilePath() const;