summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/gstgl_fwd.h
diff options
context:
space:
mode:
authorJulien Isorce <jisorce@oblong.com>2017-07-07 16:15:12 +0100
committerTim-Philipp Müller <tim@centricular.com>2017-12-09 19:32:29 +0000
commit4952fdd956959782902d1ad435142f758341545b (patch)
treeae5c4f2fda31170dd64b96c843730c043157e831 /gst-libs/gst/gl/gstgl_fwd.h
parent632015a9e8ad978e276823cabd024c40965bd723 (diff)
gl: do not include GL headers in public gstgl headers
Except for gst/gl/gstglfuncs.h It is up to the client app to include these headers. It is coherent with the fact that gstreamer-gl.pc does not require any egl.pc/gles.pc. I.e. it is the responsability of the app to search these headers within its build setup. For example gstreamer-vaapi includes explicitly EGL/egl.h and search for it in its configure.ac. For example with this patch, if an app includes the headers gst/gl/egl/gstglcontext_egl.h gst/gl/egl/gstgldisplay_egl.h gst/gl/egl/gstglmemoryegl.h it will *no longer* automatically include EGL/egl.h and GLES2/gl2.h. Which is good because the app might want to use the gstgl api only without the need to bother about gl headers. Also added a test: cd tests/check && make libs/gstglheaders.check https://bugzilla.gnome.org/show_bug.cgi?id=784779
Diffstat (limited to 'gst-libs/gst/gl/gstgl_fwd.h')
-rw-r--r--gst-libs/gst/gl/gstgl_fwd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstgl_fwd.h b/gst-libs/gst/gl/gstgl_fwd.h
index 8f42e8de8..19ca6f358 100644
--- a/gst-libs/gst/gl/gstgl_fwd.h
+++ b/gst-libs/gst/gl/gstgl_fwd.h
@@ -102,6 +102,10 @@ typedef struct _GstGLOverlayCompositorClass GstGLOverlayCompositorClass;
typedef struct _GstGLQuery GstGLQuery;
+typedef struct _GstGLFuncs GstGLFuncs;
+
+typedef struct _GstGLAsyncDebug GstGLAsyncDebug;
+
#include <gst/gl/gstgl_enums.h>
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC