On Thu, 23 May 2013 10:55:08 +0200 Alexander Larsson <[email protected]> wrote:
> On ons, 2013-05-22 at 20:36 -0500, Jason Ekstrand wrote: > > > > I hate to rain on the parade, but it's not going to be that simple. I > > already tried adding a field to wl_resource and, as it currently > > stands, it causes major issues. As a reminder, this is because > > wl_buffer has a wl_resource field which means that altering > > wl_resource breaks binary compatibility for EGL implementations. > > > > I've been trying to figure out how to do this with my java stuff and I > > really think adding a version flag to wl_resource is the way to do it. > > Unfortunately, but it's not going to be easy. > > Both wl_resource and wl_buffer are server internals though. And the > server API/ABI is not yet frozen. (In fact we just massively broke it.) > > wl_buffer does appear in the client header, but just as a declaration, > not the type definition. > > So, this doesn't necessary seem that hard. libEGL contains server-side code, too, for implementing EGL_WL_bind_wayland_display. http://cgit.freedesktop.org/mesa/mesa/tree/src/egl/wayland/wayland-drm/wayland-drm.h struct wl_drm_buffer will break. I'm beginning to think maybe we should simply fordib embedding a struct wl_resource, to make it future proof. In the future. Cheers, pq _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
