From ac9503ed65dfee2e8fee80ebfc06a9bceb381f7a Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Thu, 13 Feb 2014 13:15:31 +0100 Subject: [PATCH] waylandsink: cleanup header includes --- ext/wayland/gstwaylandsink.c | 1 + ext/wayland/gstwaylandsink.h | 19 ------------------- ext/wayland/waylandpool.c | 17 +++++++---------- ext/wayland/waylandpool.h | 3 +++ ext/wayland/wldisplay.c | 4 ++++ ext/wayland/wlvideoformat.c | 4 ++++ ext/wayland/wlwindow.c | 4 ++++ 7 files changed, 23 insertions(+), 29 deletions(-) diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c index 6c12c357b5..e6f3668c0a 100644 --- a/ext/wayland/gstwaylandsink.c +++ b/ext/wayland/gstwaylandsink.c @@ -42,6 +42,7 @@ #include "gstwaylandsink.h" #include "wlvideoformat.h" +#include "waylandpool.h" /* signals */ enum diff --git a/ext/wayland/gstwaylandsink.h b/ext/wayland/gstwaylandsink.h index c72b54c327..7b474929de 100644 --- a/ext/wayland/gstwaylandsink.h +++ b/ext/wayland/gstwaylandsink.h @@ -22,23 +22,8 @@ #ifndef __GST_WAYLAND_VIDEO_SINK_H__ #define __GST_WAYLAND_VIDEO_SINK_H__ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - #include -#include #include -#include #include @@ -63,10 +48,6 @@ G_BEGIN_DECLS typedef struct _GstWaylandSink GstWaylandSink; typedef struct _GstWaylandSinkClass GstWaylandSinkClass; -G_END_DECLS -#include "waylandpool.h" -G_BEGIN_DECLS - struct _GstWaylandSink { GstVideoSink parent; diff --git a/ext/wayland/waylandpool.c b/ext/wayland/waylandpool.c index f80c4406fd..941057247a 100644 --- a/ext/wayland/waylandpool.c +++ b/ext/wayland/waylandpool.c @@ -22,20 +22,17 @@ #include "config.h" #endif -/* Object header */ -#include "gstwaylandsink.h" +#include "waylandpool.h" #include "wldisplay.h" #include "wlvideoformat.h" -/* Debugging category */ -#include - -/* Helper functions */ -#include -#include -#include - +#include +#include +#include #include +#include +#include +#include /* wl metadata */ GType diff --git a/ext/wayland/waylandpool.h b/ext/wayland/waylandpool.h index c274feb959..2dd8534f60 100644 --- a/ext/wayland/waylandpool.h +++ b/ext/wayland/waylandpool.h @@ -21,6 +21,9 @@ #ifndef __GST_WAYLAND_BUFFER_POOL_H__ #define __GST_WAYLAND_BUFFER_POOL_H__ +#include +#include + #include "gstwaylandsink.h" G_BEGIN_DECLS diff --git a/ext/wayland/wldisplay.c b/ext/wayland/wldisplay.c index 5f142fb360..13708ce668 100644 --- a/ext/wayland/wldisplay.c +++ b/ext/wayland/wldisplay.c @@ -18,6 +18,10 @@ * Boston, MA 02110-1301 USA. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "wldisplay.h" #include diff --git a/ext/wayland/wlvideoformat.c b/ext/wayland/wlvideoformat.c index ff2858b617..eedd1b39e7 100644 --- a/ext/wayland/wlvideoformat.c +++ b/ext/wayland/wlvideoformat.c @@ -21,6 +21,10 @@ * Boston, MA 02110-1301 USA. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "wlvideoformat.h" typedef struct diff --git a/ext/wayland/wlwindow.c b/ext/wayland/wlwindow.c index 97107ef185..79a5a2273c 100644 --- a/ext/wayland/wlwindow.c +++ b/ext/wayland/wlwindow.c @@ -20,6 +20,10 @@ * Boston, MA 02110-1301 USA. */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "wlwindow.h" G_DEFINE_TYPE (GstWlWindow, gst_wl_window, G_TYPE_OBJECT);