Commit 9fa60983 authored by Emil Velikov's avatar Emil Velikov Committed by Daniel Stone

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 <>
Cc: Miguel A . Vico <>
Suggested-by: Arnaud Vrac's avatarArnaud Vrac <>
Signed-off-by: Emil Velikov's avatarEmil Velikov <>
Reviewed-by: default avatarMiguel A Vico Moya <>
parent 8d8f2600
......@@ -91,7 +91,7 @@ struct wl_egl_window_v3 {
int attached_width;
int attached_height;
void *private;
void *driver_private;
void (*resize_callback)(struct wl_egl_window *, void *);
void (*destroy_window_callback)(void *);
......@@ -208,7 +208,7 @@ int main(int argc, char **argv)
CHECK_MEMBER (_v2, _v3, dy);
CHECK_MEMBER (_v2, _v3, attached_width);
CHECK_MEMBER (_v2, _v3, attached_height);
CHECK_MEMBER (_v2, _v3, private);
CHECK_RENAMED_MEMBER(_v2, _v3, private, driver_private);
CHECK_MEMBER (_v2, _v3, resize_callback);
CHECK_MEMBER (_v2, _v3, destroy_window_callback);
......@@ -223,7 +223,7 @@ int main(int argc, char **argv)
CHECK_MEMBER_CURRENT(_v3, attached_width);
CHECK_MEMBER_CURRENT(_v3, attached_height);
CHECK_MEMBER_CURRENT(_v3, driver_private);
CHECK_MEMBER_CURRENT(_v3, resize_callback);
CHECK_MEMBER_CURRENT(_v3, destroy_window_callback);
......@@ -53,7 +53,7 @@ struct wl_egl_window {
int attached_width;
int attached_height;
void *private;
void *driver_private;
void (*resize_callback)(struct wl_egl_window *, void *);
void (*destroy_window_callback)(void *);
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment