]> git.sesse.net Git - vlc/commitdiff
Lua: remove var.command
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 23 Apr 2013 19:43:05 +0000 (22:43 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 23 Apr 2013 19:43:05 +0000 (22:43 +0300)
(not to be confused with var.libvlc_command and var.vlm_command)

modules/lua/libs/variables.c
share/lua/README.txt

index 68a18eafcad82d4bd743cb82a6e88cb651f576e8..e1d06070764e7120343a2d799a3f23d8d76891d2 100644 (file)
@@ -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 },
index 58f4d22cd47a06e278e92d35ad1a32724d987177..7ac5272880c6261482b23c43f86aa0085ed82bd4 100644 (file)
@@ -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".