[PATCH weston 2/7] weston-egl-ext.h: remove EGL_EGLEXT_PROTOTYPES sections

Emil Velikov emil.l.velikov at gmail.com
Mon Jul 4 14:27:14 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Those the function declarations alongside the EGL_EGLEXT_PROTOTYPES
guards. Although those are copy/paste sections from the header(s),
having and/or using them is a bad idea, as per the EGL spec.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
If people like them one could keep them I, but considering they are not
used (and they shouldn't be used) it's better to remove them.
---
 libweston/weston-egl-ext.h | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/libweston/weston-egl-ext.h b/libweston/weston-egl-ext.h
index 32f6108..e1754f5 100644
--- a/libweston/weston-egl-ext.h
+++ b/libweston/weston-egl-ext.h
@@ -33,10 +33,6 @@
 
 struct wl_display;
 
-#ifdef EGL_EGLEXT_PROTOTYPES
-EGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display);
-EGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display);
-#endif
 typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
 #endif
@@ -63,18 +59,12 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWL) (EGLDisplay dpy,
 #define EGL_TEXTURE_EXTERNAL_WL         0x31DA
 
 struct wl_resource;
-#ifdef EGL_EGLEXT_PROTOTYPES
-EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL(EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
-#endif
 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
 #endif
 
 #ifndef EGL_WL_create_wayland_buffer_from_image
 #define EGL_WL_create_wayland_buffer_from_image 1
 
-#ifdef EGL_EGLEXT_PROTOTYPES
-EGLAPI struct wl_buffer * EGLAPIENTRY eglCreateWaylandBufferFromImageWL(EGLDisplay dpy, EGLImageKHR image);
-#endif
 typedef struct wl_buffer * (EGLAPIENTRYP PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL) (EGLDisplay dpy, EGLImageKHR image);
 #endif
 
-- 
2.8.2



More information about the wayland-devel mailing list