summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_sounds.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-04-04 09:44:12 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-04-04 09:44:12 +0000
commit32089106fa10eba08e946693cb2939a4ab293f77 (patch)
tree102d714e16eb4d5c8da2a6a34d497ad10724c35f /plugins/MirLua/src/m_sounds.cpp
parente1110157f8c2989a58aa12ddeef91669525d188f (diff)
MirLua:
- no need to copy pointer data in MT - project cleanup - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@16584 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_sounds.cpp')
-rw-r--r--plugins/MirLua/src/m_sounds.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/MirLua/src/m_sounds.cpp b/plugins/MirLua/src/m_sounds.cpp
index 3575ccf546..cd31adfe76 100644
--- a/plugins/MirLua/src/m_sounds.cpp
+++ b/plugins/MirLua/src/m_sounds.cpp
@@ -1,6 +1,6 @@
#include "stdafx.h"
-static int lua_AddSound(lua_State *L)
+static int sounds_AddSound(lua_State *L)
{
ptrA name(mir_utf8decodeA(luaL_checkstring(L, 1)));
ptrT description(mir_utf8decodeT(luaL_checkstring(L, 2)));
@@ -22,7 +22,7 @@ static int lua_AddSound(lua_State *L)
return 1;
}
-static int lua_PlaySound(lua_State *L)
+static int sounds_PlaySound(lua_State *L)
{
const char *name = luaL_checkstring(L, 1);
@@ -32,7 +32,7 @@ static int lua_PlaySound(lua_State *L)
return 1;
}
-static int lua_PlayFile(lua_State *L)
+static int sounds_PlayFile(lua_State *L)
{
ptrT filePath(mir_utf8decodeT(luaL_checkstring(L, 1)));
@@ -44,10 +44,10 @@ static int lua_PlayFile(lua_State *L)
static luaL_Reg soundApi[] =
{
- { "AddSound", lua_AddSound },
- { "PlaySound", lua_PlaySound },
+ { "AddSound", sounds_AddSound },
+ { "PlaySound", sounds_PlaySound },
- { "PlayFile", lua_PlayFile },
+ { "PlayFile", sounds_PlayFile },
{ NULL, NULL }
};