Commit 06fb88fa authored by Jean-Philippe André's avatar Jean-Philippe André

Lua: also return node name in XML's next_node() method

parent 1e505da4
......@@ -129,8 +129,10 @@ static int vlclua_xml_create_reader( lua_State *L )
static int vlclua_xml_reader_next_node( lua_State *L )
{
xml_reader_t *p_reader = *(xml_reader_t**)luaL_checkudata( L, 1, "xml_reader" );
lua_pushinteger( L, xml_ReaderNextNode( p_reader, NULL ) );
return 1;
const char *psz_name;
lua_pushinteger( L, xml_ReaderNextNode( p_reader, &psz_name ) );
lua_pushstring( L, psz_name );
return 2;
}
static int vlclua_xml_reader_value( lua_State *L )
......
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