waylandsink: tidy up the header files
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Tue, 4 Feb 2014 15:32:31 +0000 (16:32 +0100)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Tue, 17 Jun 2014 11:51:20 +0000 (13:51 +0200)
ext/wayland/gstwaylandsink.h
ext/wayland/waylandpool.h

index cb3383e..9e9b011 100644 (file)
@@ -42,6 +42,8 @@
 
 #include <wayland-client.h>
 
+G_BEGIN_DECLS
+
 #define GST_TYPE_WAYLAND_SINK \
            (gst_wayland_sink_get_type())
 #define GST_WAYLAND_SINK(obj) \
@@ -87,7 +89,9 @@ struct shm_pool {
 typedef struct _GstWaylandSink GstWaylandSink;
 typedef struct _GstWaylandSinkClass GstWaylandSinkClass;
 
+G_END_DECLS
 #include "waylandpool.h"
+G_BEGIN_DECLS
 
 struct _GstWaylandSink
 {
index 4089da0..8657e14 100644 (file)
 #ifndef __GST_WAYLAND_BUFFER_POOL_H__
 #define __GST_WAYLAND_BUFFER_POOL_H__
 
+#include "gstwaylandsink.h"
+
 G_BEGIN_DECLS
 
-#include "gstwaylandsink.h"
+/* buffer meta */
 typedef struct _GstWlMeta GstWlMeta;
 
-typedef struct _GstWaylandBufferPool GstWaylandBufferPool;
-typedef struct _GstWaylandBufferPoolClass GstWaylandBufferPoolClass;
-
 GType gst_wl_meta_api_get_type (void);
 #define GST_WL_META_API_TYPE  (gst_wl_meta_api_get_type())
+
 const GstMetaInfo * gst_wl_meta_get_info (void);
 #define GST_WL_META_INFO  (gst_wl_meta_get_info())
 
@@ -46,12 +46,15 @@ struct _GstWlMeta {
   size_t size;
 };
 
-/* buffer pool functions */
+/* buffer pool */
 #define GST_TYPE_WAYLAND_BUFFER_POOL      (gst_wayland_buffer_pool_get_type())
 #define GST_IS_WAYLAND_BUFFER_POOL(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_WAYLAND_BUFFER_POOL))
 #define GST_WAYLAND_BUFFER_POOL(obj)      (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_WAYLAND_BUFFER_POOL, GstWaylandBufferPool))
 #define GST_WAYLAND_BUFFER_POOL_CAST(obj) ((GstWaylandBufferPool*)(obj))
 
+typedef struct _GstWaylandBufferPool GstWaylandBufferPool;
+typedef struct _GstWaylandBufferPoolClass GstWaylandBufferPoolClass;
+
 struct _GstWaylandBufferPool
 {
   GstBufferPool bufferpool;