wayland-drm: avoid deprecated use of struct wl_resource
authorMicah Fedke <micah.fedke@collabora.co.uk>
Tue, 7 Feb 2017 22:29:53 +0000 (17:29 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 19 Sep 2017 18:02:34 +0000 (19:02 +0100)
commitbe52bd17ebf114e7ad16a6d9d0135cdbb0723cd0
treeccd2cd36cf072f37bc44a87091f1fb047ff0781a
parent15a6ebdfbba3b378868aa63f134fc1f6fd3d43be
wayland-drm: avoid deprecated use of struct wl_resource

Wayland v1.2 with commit 1488c96a5db ("Add accessor functions for
wl_resource and deprecate wl_client_add_resource") paves the way towards
making wl_resource opaque.

Namely, new helpers were introduced and the struct was annotated as
deprecated.

Since wayland headers are normally installed in /usr/include, which is
in -isystem, GCC did not generate warnings as documented in the manual.
  "Warnings from system headers are normally suppressed..."

Signed-off-by: Micah Fedke <micah.fedke@collabora.co.uk>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
[Emil Velikov: add commit message]
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/egl/wayland/wayland-drm/wayland-drm.c