Skip to content

Commit

Permalink
glbufferpool: move typedef's into the forward decleration file
Browse files Browse the repository at this point in the history
Otherwise, for example, clang will warn about typedef redefinitions
being a C11 feature.
  • Loading branch information
ystreet authored and tp-m committed Dec 9, 2017
1 parent 6bb560a commit 33f73b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions gst-libs/gst/gl/gstgl_fwd.h
Expand Up @@ -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;
Expand Down
6 changes: 1 addition & 5 deletions gst-libs/gst/gl/gstglbufferpool.h
Expand Up @@ -25,14 +25,10 @@
#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())
Expand Down

0 comments on commit 33f73b4

Please sign in to comment.