[vlc-devel] commit: Move intf_sys_t and intf_thread_t definitions ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat May 23 20:18:17 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 23 19:15:32 2009 +0300| [9e8ea4a66948f20483ffdda1d9eb83f3798d2dd1] | committer: Rémi Denis-Courmont 

Move intf_sys_t and intf_thread_t definitions

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

 include/vlc_common.h                           |    4 ----
 include/vlc_interface.h                        |   10 ++++++----
 modules/gui/qt4/components/extended_panels.hpp |    2 +-
 3 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index f75611f..88b938b 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -176,10 +176,6 @@ typedef struct module_cache_t module_cache_t;
 
 typedef struct config_category_t config_category_t;
 
-/* Interface */
-typedef struct intf_thread_t intf_thread_t;
-typedef struct intf_sys_t intf_sys_t;
-
 /* Input */
 typedef struct input_thread_t input_thread_t;
 typedef struct input_thread_sys_t input_thread_sys_t;
diff --git a/include/vlc_interface.h b/include/vlc_interface.h
index fae34b5..b59bd9d 100644
--- a/include/vlc_interface.h
+++ b/include/vlc_interface.h
@@ -44,8 +44,10 @@ typedef struct intf_dialog_args_t intf_dialog_args_t;
  * @{
  */
 
+typedef struct intf_sys_t intf_sys_t;
+
 /** Describe all interface-specific data of the interface thread */
-struct intf_thread_t
+typedef struct intf_thread_t
 {
     VLC_COMMON_MEMBERS
 
@@ -60,14 +62,14 @@ struct intf_thread_t
 
     /** Interface module */
     module_t *   p_module;
-    void      ( *pf_run )    ( intf_thread_t * ); /** Run function */
+    void      ( *pf_run )    ( struct intf_thread_t * ); /** Run function */
 
     /** Specific for dialogs providers */
-    void ( *pf_show_dialog ) ( intf_thread_t *, int, int,
+    void ( *pf_show_dialog ) ( struct intf_thread_t *, int, int,
                                intf_dialog_args_t * );
 
     config_chain_t *p_cfg;
-};
+} intf_thread_t;
 
 /** \brief Arguments passed to a dialogs provider
  *  This describes the arguments passed to the dialogs provider. They are
diff --git a/modules/gui/qt4/components/extended_panels.hpp b/modules/gui/qt4/components/extended_panels.hpp
index 3d498c7..5568ea7 100644
--- a/modules/gui/qt4/components/extended_panels.hpp
+++ b/modules/gui/qt4/components/extended_panels.hpp
@@ -48,7 +48,7 @@ class ExtVideo: public QObject
     Q_OBJECT
     friend class ExtendedDialog;
 public:
-    ExtVideo( intf_thread_t *, QTabWidget * );
+    ExtVideo( struct intf_thread_t *, QTabWidget * );
     virtual ~ExtVideo();
     /*void gotoConf( QObject* );*/
 private:




More information about the vlc-devel mailing list