diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-12-06 20:06:30 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-12-06 20:06:30 +0000 |
commit | 6d72639c7de652d08a2c9154b4eefc96e3a49b6f (patch) | |
tree | 16fb7c69f810a3ea8205c8d43e0243ef8ab470c9 /plugins/MirLua/src/m_icolib.cpp | |
parent | 8e23843410f7083e47dd46481cd84c8459ebbba4 (diff) |
MirLua: added sound module
git-svn-id: http://svn.miranda-ng.org/main/trunk@15823 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_icolib.cpp')
-rw-r--r-- | plugins/MirLua/src/m_icolib.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_icolib.cpp b/plugins/MirLua/src/m_icolib.cpp index 30146cd503..5b2a5b23a3 100644 --- a/plugins/MirLua/src/m_icolib.cpp +++ b/plugins/MirLua/src/m_icolib.cpp @@ -2,7 +2,7 @@ static int lua_AddIcon(lua_State *L)
{
- const char* name = luaL_checkstring(L, 1);
+ const char *name = luaL_checkstring(L, 1);
ptrT description(mir_utf8decodeT(luaL_checkstring(L, 2)));
ptrT section(mir_utf8decodeT(luaL_optstring(L, 3, MODULE)));
@@ -25,7 +25,7 @@ static int lua_AddIcon(lua_State *L) static int lua_GetIcon(lua_State *L)
{
- const char* name = luaL_checkstring(L, 1);
+ const char *name = luaL_checkstring(L, 1);
HANDLE res = ::IcoLib_GetIconHandle(name);
lua_pushlightuserdata(L, res);
@@ -52,8 +52,11 @@ static int lua_RemoveIcon(lua_State *L) static luaL_Reg icolibApi[] =
{
{ "AddIcon", lua_AddIcon },
+ { "Add", lua_AddIcon },
{ "GetIcon", lua_GetIcon },
+ { "Get", lua_GetIcon },
{ "RemoveIcon", lua_RemoveIcon },
+ { "Remove", lua_RemoveIcon },
{ NULL, NULL }
};
|