diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-06-13 18:22:20 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-06-13 18:22:20 +0000 |
commit | 1c6b8b1f06d26f3ac4db17d6eb203538ba358057 (patch) | |
tree | 28847ce93f6162b33245d0d714a75cdb4303ff7c /plugins/MirLua/src/m_protocols.cpp | |
parent | bfef141fa44aace5d845bfa0d06e4435c97984ba (diff) |
MirLua: break backward compatibility
- removed BLOB metatable
- m_database's blob now used simple lua table
- removed deprecated functions from m_core
- added PROTORECVEVENT metatable
- added GCDEST metatable
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@16968 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_protocols.cpp')
-rw-r--r-- | plugins/MirLua/src/m_protocols.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/MirLua/src/m_protocols.cpp b/plugins/MirLua/src/m_protocols.cpp index 493978283c..21ac0683a5 100644 --- a/plugins/MirLua/src/m_protocols.cpp +++ b/plugins/MirLua/src/m_protocols.cpp @@ -180,7 +180,14 @@ LUAMOD_API int luaopen_m_protocols(lua_State *L) MT<CCSDATA>(L, "CCSDATA")
.Field(&CCSDATA::hContact, "hContact", LUA_TINTEGER)
- .Field([](CCSDATA *ccs) { return ((PROTORECVEVENT*)ccs->lParam)->szMessage; }, "Message", LUA_TSTRING);
+ .Field(&CCSDATA::szProtoService, "Service", LUA_TSTRINGA)
+ .Field([](CCSDATA *ccd) { return (void*)ccd->wParam; }, "wParam", LUA_TLIGHTUSERDATA)
+ .Field([](CCSDATA *ccd) { return (void*)ccd->lParam; }, "lParam", LUA_TLIGHTUSERDATA);
+
+ MT<PROTORECVEVENT>(L, "PROTORECVEVENT")
+ .Field(&PROTORECVEVENT::timestamp, "Timestamp", LUA_TINTEGER)
+ .Field(&PROTORECVEVENT::flags, "Flags", LUA_TINTEGER)
+ .Field(&PROTORECVEVENT::szMessage, "Message", LUA_TSTRING);
return 1;
}
|