glbufferpool: move typedef's into the forward decleration file
authorMatthew Waters <matthew@centricular.com>
Thu, 29 Oct 2015 14:16:02 +0000 (01:16 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:10 +0000 (19:32 +0000)
Otherwise, for example, clang will warn about typedef redefinitions
being a C11 feature.

gst-libs/gst/gl/gstgl_fwd.h
gst-libs/gst/gl/gstglbufferpool.h

index f76e672..652bb32 100644 (file)
@@ -67,6 +67,10 @@ typedef struct _GstGLUploadMeta GstGLUploadMeta;
 typedef struct _GstGLUploadMetaClass GstGLUploadMetaClass;
 typedef struct _GstGLUploadMetaPrivate GstGLUploadMetaPrivate;
 
+typedef struct _GstGLBufferPool GstGLBufferPool;
+typedef struct _GstGLBufferPoolClass GstGLBufferPoolClass;
+typedef struct _GstGLBufferPoolPrivate GstGLBufferPoolPrivate;
+
 typedef struct _GstGLColorConvert GstGLColorConvert;
 typedef struct _GstGLColorConvertClass GstGLColorConvertClass;
 typedef struct _GstGLColorConvertPrivate GstGLColorConvertPrivate;
index cea1175..cfdb23c 100644 (file)
 #include <gst/video/gstvideometa.h>
 #include <gst/video/gstvideopool.h>
 
-#include <gst/gl/gstgl_fwd.h>
+#include <gst/gl/gl.h>
 
 G_BEGIN_DECLS
 
-typedef struct _GstGLBufferPool GstGLBufferPool;
-typedef struct _GstGLBufferPoolClass GstGLBufferPoolClass;
-typedef struct _GstGLBufferPoolPrivate GstGLBufferPoolPrivate;
-
 /* buffer pool functions */
 GType gst_gl_buffer_pool_get_type (void);
 #define GST_TYPE_GL_BUFFER_POOL      (gst_gl_buffer_pool_get_type())