[vlc-commits] Lua: remove var.command
Rémi Denis-Courmont
git at videolan.org
Tue Apr 23 21:52:29 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 23 22:43:05 2013 +0300| [12d87f6a900081335d0b1a1955c890e2d6712597] | committer: Rémi Denis-Courmont
Lua: remove var.command
(not to be confused with var.libvlc_command and var.vlm_command)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=12d87f6a900081335d0b1a1955c890e2d6712597
---
modules/lua/libs/variables.c | 24 ------------------------
share/lua/README.txt | 2 --
2 files changed, 26 deletions(-)
diff --git a/modules/lua/libs/variables.c b/modules/lua/libs/variables.c
index 68a18ea..e1d0607 100644
--- a/modules/lua/libs/variables.c
+++ b/modules/lua/libs/variables.c
@@ -230,29 +230,6 @@ static int vlclua_var_get_list( lua_State *L )
return 2;
}
-static int vlclua_command( lua_State *L )
-{
- vlc_object_t * p_this = vlclua_get_this( L );
- char *psz_msg;
-
- const char *psz_name = luaL_checkstring( L, 1 );
- const char *psz_cmd = luaL_checkstring( L, 2 );
- const char *psz_arg = luaL_checkstring( L, 3 );
- int ret = var_Command( p_this, psz_name, psz_cmd, psz_arg, &psz_msg );
- lua_pop( L, 3 );
-
- if( psz_msg )
- {
- lua_pushstring( L, psz_msg );
- free( psz_msg );
- }
- else
- {
- lua_pushliteral( L, "" );
- }
- return vlclua_push_ret( L, ret ) + 1;
-}
-
static int vlclua_libvlc_command( lua_State *L )
{
vlc_object_t * p_this = vlclua_get_this( L );
@@ -373,7 +350,6 @@ static const luaL_Reg vlclua_var_reg[] = {
{ "set", vlclua_var_set },
{ "create", vlclua_var_create },
{ "trigger_callback", vlclua_trigger_callback },
- { "command", vlclua_command },
{ "libvlc_command", vlclua_libvlc_command },
{ "inc_integer", vlclua_inc_integer },
{ "dec_integer", vlclua_dec_integer },
diff --git a/share/lua/README.txt b/share/lua/README.txt
index 58f4d22..7ac5272 100644
--- a/share/lua/README.txt
+++ b/share/lua/README.txt
@@ -384,8 +384,6 @@ var.create( object, name, value ): Create and set the object's variable "name"
var.trigger_callback( object, name ): Trigger the callbacks associated with the
object's "name" variable.
-var.command( object name, name, argument ): Issue "object name"'s "name"
- command with argument "argument".
var.libvlc_command( name, argument ): Issue libvlc's "name" command with
argument "argument".
More information about the vlc-commits
mailing list