From 46363eef857b69761f1d6d28da5a53a954f76900 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sun, 20 May 2018 21:09:53 +0300 Subject: Revert "Merge branch 'master' of https://github.com/miranda-ng/miranda-ng" This reverts commit 3f90207479ee0a6530631812717801a54093658c, reversing changes made to 7d6b89fd45814936d0edeff664bf5efb2d19b875. --- plugins/MirLua/src/mlua_environment.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua/src/mlua_environment.h') diff --git a/plugins/MirLua/src/mlua_environment.h b/plugins/MirLua/src/mlua_environment.h index 3d6b6382fb..aa6ebb103a 100644 --- a/plugins/MirLua/src/mlua_environment.h +++ b/plugins/MirLua/src/mlua_environment.h @@ -1,8 +1,10 @@ -#pragma once +#ifndef _LUA_ENVIRONMENT_H_ +#define _LUA_ENVIRONMENT_H_ -class CMLuaEnvironment : public CMPluginBase +class CMLuaEnvironment { private: + int m_id; std::map m_hookRefs; std::map m_serviceRefs; @@ -17,6 +19,8 @@ public: static CMLuaEnvironment* GetEnvironment(lua_State *L); static int GetEnvironmentId(lua_State *L); + int GetId() const; + void AddHookRef(HANDLE h, int ref); void ReleaseHookRef(HANDLE h); @@ -25,3 +29,5 @@ public: bool Load(); }; + +#endif //_LUA_ENVIRONMENT_H_ -- cgit v1.2.3