[vlc-commits] lua: privatize intf_sys_t

Pierre Ynard git at videolan.org
Wed Nov 16 09:41:45 CET 2016


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Nov 16 09:40:47 2016 +0100| [09b208c2899875bceee729b30b00c7284447a724] | committer: Pierre Ynard

lua: privatize intf_sys_t

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

 modules/lua/intf.c | 10 ++++++++++
 modules/lua/vlc.h  | 11 -----------
 2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/modules/lua/intf.c b/modules/lua/intf.c
index 210caf0..46738dc 100644
--- a/modules/lua/intf.c
+++ b/modules/lua/intf.c
@@ -47,6 +47,16 @@ static void *Run( void * );
 static const char * const ppsz_intf_options[] = { "intf", "config", NULL };
 
 /*****************************************************************************
+ * Local structures
+ *****************************************************************************/
+struct intf_sys_t
+{
+    char *psz_filename;
+    lua_State *L;
+    vlc_thread_t thread;
+    vlclua_dtable_t dtable;
+};
+/*****************************************************************************
  *
  *****************************************************************************/
 static inline void luaL_register_submodule( lua_State *L, const char *psz_name,
diff --git a/modules/lua/vlc.h b/modules/lua/vlc.h
index 6d55b3d..0186bfa 100644
--- a/modules/lua/vlc.h
+++ b/modules/lua/vlc.h
@@ -204,16 +204,5 @@ void vlclua_fd_interrupt( vlclua_dtable_t * );
 void vlclua_fd_cleanup( vlclua_dtable_t * );
 struct vlc_interrupt *vlclua_set_interrupt( lua_State *L );
 
-/**
- * Per-interface private state
- */
-struct intf_sys_t
-{
-    char *psz_filename;
-    lua_State *L;
-    vlc_thread_t thread;
-    vlclua_dtable_t dtable;
-};
-
 #endif /* VLC_LUA_H */
 



More information about the vlc-commits mailing list