[vlc-commits] LUA SD: Rename node:add_node to node:add_subnode for consistency

Edward Wang git at videolan.org
Thu Jan 12 01:19:18 CET 2012


vlc | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Wed Jan 11 16:26:32 2012 -0500| [393f9efed0c35c5a254ed096f217d6edfb2ed601] | committer: Jean-Baptiste Kempf

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

Close #3475

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=393f9efed0c35c5a254ed096f217d6edfb2ed601
---

 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 d88cab2..d1009c8 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 }
 };
 
@@ -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" );
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
 ------



More information about the vlc-commits mailing list