[vlc-devel] commit: Include vlc_services_discovery.h only where needed ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jan 10 18:15:37 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Jan 10 19:15:34 2009 +0200| [7ab4f13d30c26e769f8ae7f48499109e3b177ab8] | committer: Rémi Denis-Courmont 

Include vlc_services_discovery.h only where needed

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

 include/vlc_playlist.h                 |    3 ---
 modules/gui/qt4/menus.cpp              |    1 +
 modules/services_discovery/bonjour.c   |    1 +
 modules/services_discovery/hal.c       |    1 +
 modules/services_discovery/podcast.c   |    2 ++
 modules/services_discovery/upnp_cc.cpp |    1 +
 src/playlist/services_discovery.c      |    1 +
 7 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h
index 1b0d348..4a885e5 100644
--- a/include/vlc_playlist.h
+++ b/include/vlc_playlist.h
@@ -30,9 +30,6 @@ extern "C" {
 
 #include <vlc_input.h>
 #include <vlc_events.h>
-#include <vlc_services_discovery.h>
-#include <stdio.h>
-#include <stdlib.h>
 
 TYPEDEF_ARRAY(playlist_item_t*, playlist_item_array_t);
 
diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index f18835a..32fda56 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -32,6 +32,7 @@
 #endif
 
 #include <vlc_intf_strings.h>
+#include <vlc_services_discovery.h>
 
 #include "menus.hpp"
 
diff --git a/modules/services_discovery/bonjour.c b/modules/services_discovery/bonjour.c
index a22bbe8..5c7f840 100644
--- a/modules/services_discovery/bonjour.c
+++ b/modules/services_discovery/bonjour.c
@@ -33,6 +33,7 @@
 #include <vlc_plugin.h>
 #include <vlc_playlist.h>
 #include <vlc_arrays.h>
+#include <vlc_services_discovery.h>
 
 #include <avahi-client/client.h>
 #include <avahi-client/publish.h>
diff --git a/modules/services_discovery/hal.c b/modules/services_discovery/hal.c
index a4ef703..2765b00 100644
--- a/modules/services_discovery/hal.c
+++ b/modules/services_discovery/hal.c
@@ -30,6 +30,7 @@
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_playlist.h>
+#include <vlc_services_discovery.h>
 
 #include <vlc_network.h>
 
diff --git a/modules/services_discovery/podcast.c b/modules/services_discovery/podcast.c
index ceaf68f..aa96ea5 100644
--- a/modules/services_discovery/podcast.c
+++ b/modules/services_discovery/podcast.c
@@ -32,6 +32,8 @@
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_playlist.h>
+#include <vlc_services_discovery.h>
+
 #include <vlc_network.h>
 #include <assert.h>
 
diff --git a/modules/services_discovery/upnp_cc.cpp b/modules/services_discovery/upnp_cc.cpp
index 09bce0f..aed508b 100644
--- a/modules/services_discovery/upnp_cc.cpp
+++ b/modules/services_discovery/upnp_cc.cpp
@@ -39,6 +39,7 @@
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_playlist.h>
+#include <vlc_services_discovery.h>
 
 /* FIXME: thread-safety ?? */
 /* FIXME: playlist locking */
diff --git a/src/playlist/services_discovery.c b/src/playlist/services_discovery.c
index 03b11ca..6bf8638 100644
--- a/src/playlist/services_discovery.c
+++ b/src/playlist/services_discovery.c
@@ -28,6 +28,7 @@
 #include <vlc_common.h>
 #include "vlc_playlist.h"
 #include "vlc_events.h"
+#include <vlc_services_discovery.h>
 #include "playlist_internal.h"
 #include "../libvlc.h"
 




More information about the vlc-devel mailing list