Commit 393f9efe authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

LUA SD: Rename node:add_node to node:add_subnode for consistency

Close #3475
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 498f15b3
......@@ -46,11 +46,11 @@
*
*****************************************************************************/
static int vlclua_node_add_subitem( lua_State * );
static int vlclua_node_add_node( lua_State * );
static int vlclua_node_add_subnode( lua_State * );
static const luaL_Reg vlclua_node_reg[] = {
{ "add_subitem", vlclua_node_add_subitem },
{ "add_node", vlclua_node_add_node },
{ "add_subnode", vlclua_node_add_subnode },
{ NULL, NULL }
};
......@@ -276,7 +276,7 @@ static int vlclua_node_add_subitem( lua_State *L )
return 1;
}
static int vlclua_node_add_node( lua_State *L )
static int vlclua_node_add_subnode( lua_State *L )
{
services_discovery_t *p_sd = (services_discovery_t *)vlclua_get_this( L );
input_item_t **pp_node = (input_item_t **)luaL_checkudata( L, 1, "node" );
......
......@@ -336,7 +336,7 @@ sd.remove_item( item ): remove the item.
n = vlc.sd.add_node( {title="Node"} )
n:add_subitem( ... ): Same as sd.add_item(), but as a subitem of n.
n:add_node( ... ): Same as sd.add_node(), but as a subnode of n.
n:add_subnode( ... ): Same as sd.add_node(), but as a subnode of n.
Stream
------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment