[vlc-devel] commit: Hide fetcher and prepase typedefs ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Sep 14 12:09:08 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Sep 14 11:35:41 2008 +0300| [d62129ac74220d751b528a24c12e4dfb3a764f2e] | committer: Rémi Denis-Courmont 

Hide fetcher and prepase typedefs

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

 include/vlc_common.h             |    2 --
 src/playlist/playlist_internal.h |   20 ++++++++++----------
 2 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 2cb64a0..3190e66 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -170,8 +170,6 @@ typedef struct playlist_export_t playlist_export_t;
 typedef struct services_discovery_t services_discovery_t;
 typedef struct services_discovery_sys_t services_discovery_sys_t;
 typedef struct playlist_add_t playlist_add_t;
-typedef struct playlist_preparse_t playlist_preparse_t;
-typedef struct playlist_fetcher_t playlist_fetcher_t;
 
 /* Modules */
 typedef struct module_bank_t module_bank_t;
diff --git a/src/playlist/playlist_internal.h b/src/playlist/playlist_internal.h
index cdc4f3c..4a4f75a 100644
--- a/src/playlist/playlist_internal.h
+++ b/src/playlist/playlist_internal.h
@@ -37,22 +37,15 @@
 #include "input/input_internal.h"
 #include <assert.h>
 
-struct playlist_private_t
-{
-    playlist_preparse_t  *p_preparse; /**< Preparser object */
-    playlist_fetcher_t   *p_fetcher; /**< Meta and art fetcher object */
-    sout_instance_t      *p_sout; /**< Kept sout instance */
-};
-
-struct playlist_preparse_t
+typedef struct playlist_preparse_t
 {
     VLC_COMMON_MEMBERS
     vlc_mutex_t     lock;
     int             i_waiting;
     input_item_t  **pp_waiting;
-};
+} playlist_preparse_t;
 
-struct playlist_fetcher_t
+typedef struct playlist_fetcher_t
 {
     VLC_COMMON_MEMBERS
     vlc_mutex_t     lock;
@@ -61,6 +54,13 @@ struct playlist_fetcher_t
     input_item_t    **pp_waiting;
 
     DECL_ARRAY(playlist_album_t) albums;
+} playlist_fetcher_t;
+
+struct playlist_private_t
+{
+    playlist_preparse_t  *p_preparse; /**< Preparser object */
+    playlist_fetcher_t   *p_fetcher; /**< Meta and art fetcher object */
+    sout_instance_t      *p_sout; /**< Kept sout instance */
 };
 
 /*****************************************************************************




More information about the vlc-devel mailing list