[PATCH] weston-egl: Update weston-egl-ext.h: s/wl_buffer/wl_resource
Kristian Høgsberg
hoegsberg at gmail.com
Tue Oct 1 10:43:15 PDT 2013
On Tue, Oct 01, 2013 at 12:27:19PM +0200, Tomeu Vizoso wrote:
> As struct wl_buffer has been deprecated since 1.2.
> ---
> src/weston-egl-ext.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Right, didn't see this warning as I typically compile against mesa.
Kristian
> diff --git a/src/weston-egl-ext.h b/src/weston-egl-ext.h
> index bab87be..8ddf97f 100644
> --- a/src/weston-egl-ext.h
> +++ b/src/weston-egl-ext.h
> @@ -42,15 +42,15 @@
> #define EGL_TEXTURE_EXTERNAL_WL 0x31DA
>
> struct wl_display;
> -struct wl_buffer;
> +struct wl_resource;
> #ifdef EGL_EGLEXT_PROTOTYPES
> EGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display);
> EGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display);
> -EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL(EGLDisplay dpy, struct wl_buffer *buffer, EGLint attribute, EGLint *value);
> +EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL(EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
> #endif
> typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
> typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
> -typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, struct wl_buffer *buffer, EGLint attribute, EGLint *value);
> +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
>
> #endif
>
> --
> 1.8.3.1
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list