mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-07-12 11:03:56 -04:00
wayland-egl: rename wl_egl_window::private to driver_private
private is a reserved keyword in C++. Thus if one is to have a backend driver written in said language build will fail as below: .../wayland-egl-backend.h:56:8: expected unqualified-id before ‘private’ Rename it to driver_private and update the test. NOTE: version bump is not required since: - this is a pure API change, ABI is identical - hardware drivers already require [minor] changes to move to the upstream wayland-egl-backend.h Cc: Arnaud Vrac <rawoul@gmail.com> Cc: Miguel A . Vico <mvicomoya@nvidia.com> Suggested-by: Arnaud Vrac <rawoul@gmail.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Miguel A Vico Moya <mvicomoya@nvidia.com>
This commit is contained in:
parent
8d8f2600ec
commit
9fa60983b5
3 changed files with 6 additions and 6 deletions
|
|
@ -49,7 +49,7 @@ wl_egl_window_resize(struct wl_egl_window *egl_window,
|
|||
egl_window->dy = dy;
|
||||
|
||||
if (egl_window->resize_callback)
|
||||
egl_window->resize_callback(egl_window, egl_window->private);
|
||||
egl_window->resize_callback(egl_window, egl_window->driver_private);
|
||||
}
|
||||
|
||||
WL_EXPORT struct wl_egl_window *
|
||||
|
|
@ -89,7 +89,7 @@ WL_EXPORT void
|
|||
wl_egl_window_destroy(struct wl_egl_window *egl_window)
|
||||
{
|
||||
if (egl_window->destroy_window_callback)
|
||||
egl_window->destroy_window_callback(egl_window->private);
|
||||
egl_window->destroy_window_callback(egl_window->driver_private);
|
||||
free(egl_window);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue