1 /*
2 * GStreamer
3 * Copyright (C) 2012 Matthew Waters <ystreet00@gmail.com>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef __GST_GL_COMPAT_H__
22#define __GST_GL_COMPAT_H__
23
24#include <gst/gl/gstglconfig.h>
25
26/* undefined typedefs */
27#if !GST_GL_HAVE_GLEGLIMAGEOES
28typedef gpointer GLeglImageOES;
29#endif
30#if !GST_GL_HAVE_GLCHAR
31typedef gchar GLchar;
32#endif
33#if !GST_GL_HAVE_GLSIZEIPTR
34typedef ptrdiff_t GLsizeiptr;
35#endif
36#if !GST_GL_HAVE_GLINTPTR
37typedef ptrdiff_t GLintptr;
38#endif
39#if !GST_GL_HAVE_GLSYNC
40typedef gpointer GLsync;
41#endif
42#if !GST_GL_HAVE_GLUINT64
43typedef guint64 GLuint64;
44#endif
45#if !GST_GL_HAVE_GLINT64
46typedef gint64 GLint64;
47#endif
48
49#if !defined(GST_GL_DEBUG_PROC)
50#if defined(GLDEBUGPROC)
51#define GST_GL_DEBUG_PROC GLDEBUGPROC
52#elif defined(GLDEBUGPROCARB)
53#define GST_GL_DEBUG_PROC GLDEBUGPROCARB
54#elif defined(GLDEBUGPROCKHR)
55#define GST_GL_DEBUG_PROC GLDEBUGPROCKHR
56#else
57typedef void (GSTGLAPI *GST_GL_DEBUG_PROC) (GLenum source,
58 GLenum type,
59 GLuint id,
60 GLenum severity,
61 GLsizei length,
62 const gchar* message,
63 gpointer user_data);
64#endif
65#endif
66
67#endif
68

source code of include/gstreamer-1.0/gst/gl/glprototypes/gstgl_compat.h