waylandsink: cleanup header includes
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Thu, 13 Feb 2014 12:15:31 +0000 (13:15 +0100)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Tue, 17 Jun 2014 11:51:22 +0000 (13:51 +0200)
ext/wayland/gstwaylandsink.c
ext/wayland/gstwaylandsink.h
ext/wayland/waylandpool.c
ext/wayland/waylandpool.h
ext/wayland/wldisplay.c
ext/wayland/wlvideoformat.c
ext/wayland/wlwindow.c

index 6c12c35..e6f3668 100644 (file)
@@ -42,6 +42,7 @@
 
 #include "gstwaylandsink.h"
 #include "wlvideoformat.h"
+#include "waylandpool.h"
 
 /* signals */
 enum
index c72b54c..7b47492 100644 (file)
 #ifndef __GST_WAYLAND_VIDEO_SINK_H__
 #define __GST_WAYLAND_VIDEO_SINK_H__
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-#include <sys/ioctl.h>
-#include <sys/mman.h>
-#include <fcntl.h>
-#include <assert.h>
-#include <unistd.h>
-
 #include <gst/gst.h>
-#include <gst/video/video.h>
 #include <gst/video/gstvideosink.h>
-#include <gst/video/gstvideometa.h>
 
 #include <wayland-client.h>
 
@@ -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;
index f80c440..9410572 100644 (file)
 #include "config.h"
 #endif
 
-/* Object header */
-#include "gstwaylandsink.h"
+#include "waylandpool.h"
 #include "wldisplay.h"
 #include "wlvideoformat.h"
 
-/* Debugging category */
-#include <gst/gstinfo.h>
-
-/* Helper functions */
-#include <gst/video/video.h>
-#include <gst/video/gstvideometa.h>
-#include <gst/video/gstvideopool.h>
-
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <errno.h>
+#include <unistd.h>
+#include <sys/mman.h>
+#include <sys/types.h>
 
 /* wl metadata */
 GType
index c274feb..2dd8534 100644 (file)
@@ -21,6 +21,9 @@
 #ifndef __GST_WAYLAND_BUFFER_POOL_H__
 #define __GST_WAYLAND_BUFFER_POOL_H__
 
+#include <gst/video/video.h>
+#include <gst/video/gstvideometa.h>
+
 #include "gstwaylandsink.h"
 
 G_BEGIN_DECLS
index 5f142fb..13708ce 100644 (file)
  * Boston, MA 02110-1301 USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "wldisplay.h"
 
 #include <errno.h>
index ff2858b..eedd1b3 100644 (file)
  * Boston, MA 02110-1301 USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "wlvideoformat.h"
 
 typedef struct
index 97107ef..79a5a22 100644 (file)
  * Boston, MA 02110-1301 USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "wlwindow.h"
 
 G_DEFINE_TYPE (GstWlWindow, gst_wl_window, G_TYPE_OBJECT);