[vlc-commits] lua: Expose vlclua_input_item_get to the rest of the lua lib

Hugo Beauzée-Luyssen git at videolan.org
Thu Sep 21 17:49:24 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Sep 20 17:28:30 2017 +0200| [17b37dd4ddad7c3d91ad532f7c65e9e6de189ec5] | committer: Hugo Beauzée-Luyssen

lua: Expose vlclua_input_item_get to the rest of the lua lib

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

 modules/lua/libs.h       | 1 +
 modules/lua/libs/input.c | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/lua/libs.h b/modules/lua/libs.h
index c553bbf2ac..945c5583e9 100644
--- a/modules/lua/libs.h
+++ b/modules/lua/libs.h
@@ -50,5 +50,6 @@ void luaopen_win( lua_State *L );
 #endif
 
 int vlclua_url_parse( lua_State *L );
+int vlclua_input_item_get( lua_State *L, input_item_t *p_item );
 
 #endif
diff --git a/modules/lua/libs/input.c b/modules/lua/libs/input.c
index 7ec51959eb..6614397c50 100644
--- a/modules/lua/libs/input.c
+++ b/modules/lua/libs/input.c
@@ -272,8 +272,6 @@ static int vlclua_input_item_delete( lua_State *L )
     return 1;
 }
 
-static int vlclua_input_item_get( lua_State *L, input_item_t *p_item );
-
 static int vlclua_input_item_get_current( lua_State *L )
 {
     input_thread_t *p_input = vlclua_get_input_internal( L );
@@ -416,7 +414,7 @@ static const luaL_Reg vlclua_input_item_reg[] = {
     { NULL, NULL }
 };
 
-static int vlclua_input_item_get( lua_State *L, input_item_t *p_item )
+int vlclua_input_item_get( lua_State *L, input_item_t *p_item )
 {
     input_item_Hold( p_item );
     input_item_t **pp = lua_newuserdata( L, sizeof( input_item_t* ) );



More information about the vlc-commits mailing list