[vlc-devel] [PATCH] LUA SD: Rename node:add_node to node:add_subnode for consistency with node:add_subitem()
Edward Wang
edward.c.wang at compdigitec.com
Wed Jan 11 22:26:32 CET 2012
Rename node:add_node() to node:add_subnode() to be coherent with node:add_subitem()
Close #3475
---
modules/lua/libs/sd.c | 6 +++---
share/lua/README.txt | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/lua/libs/sd.c b/modules/lua/libs/sd.c
index e03a210..67e1eb1 100644
--- a/modules/lua/libs/sd.c
+++ b/modules/lua/libs/sd.c
@@ -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 }
};
@@ -283,7 +283,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" );
diff --git a/share/lua/README.txt b/share/lua/README.txt
index aae5ed0..747d8e4 100644
--- a/share/lua/README.txt
+++ b/share/lua/README.txt
@@ -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
------
--
1.7.5.4
More information about the vlc-devel
mailing list