[RFC wayland 1/9] wayland-egl: import libwayland-egl.so frontend library from Mesa

Duncan Roe duncan_roe at optusnet.com.au
Tue Sep 19 05:24:40 UTC 2017


Hi Emil,

On Mon, Sep 18, 2017 at 02:18:42PM +0100, Emil Velikov wrote:
> Hi Duncan,
>
> On 17 September 2017 at 09:04, Duncan Roe <duncan_roe at optusnet.com.au> wrote:
> > On Fri, Sep 15, 2017 at 11:29:19AM +0100, Emil Velikov wrote:
> >> From: Emil Velikov <emil.velikov at collabora.com>
...
>
> > From checking header files it does seem to me that the layout of struct
> > wl_egl_window is indeed opaque to the outside world, but all the same wouldn't
> > it be better to be able to see what version of the library one had installed?
> >
> Why? Can you please elaborate.
>
I searched /usr/include for includes of wayland-egl-priv.h. There weren't any
(as one would hope, since Mesa doesn't expose it).

I then searched /usr/include for declarations of struct wl_surface:

qt5/QtWaylandCompositor/5.7.1/QtWaylandCompositor/private/wayland-wayland-server-protocol.h
    90 struct wl_subsurface;
    91 struct wl_surface;
    92 struct wl_touch;

It's declared but not defined. Code can only work with pointers to the struct
and not its elements, which is what I meant by saying it was "opaque".

Similar results for:
qt5/QtWaylandCompositor/5.7.1/QtWaylandCompositor/private/wayland-surface-extension-server-protocol.h:64
qt5/QtWaylandCompositor/5.7.1/QtWaylandCompositor/private/wayland-qtkey-extension-server-protocol.h:62
qt5/QtWaylandCompositor/5.7.1/QtWaylandCompositor/private/wayland-text-input-unstable-v2-server-protocol.h:51
qt5/QtWaylandCompositor/5.7.1/QtWaylandCompositor/private/wayland-xdg-shell-server-protocol.h:55
qt5/QtWaylandClient/5.7.1/QtWaylandClient/private/wayland-wayland-client-protocol.h:88
qt5/QtWaylandClient/5.7.1/QtWaylandClient/private/wayland-surface-extension-client-protocol.h:61
qt5/QtWaylandClient/5.7.1/QtWaylandClient/private/wayland-qtkey-extension-client-protocol.h:59
qt5/QtWaylandClient/5.7.1/QtWaylandClient/private/wayland-text-input-unstable-v2-client-protocol.h:48
qt5/QtWaylandClient/5.7.1/QtWaylandClient/private/wayland-xdg-shell-client-protocol.h:52
wayland-egl-core.h:37
wayland-server-protocol.h:91
wayland-client-protocol.h:88
vlc/plugins/vlc_vout_window.h:44

Cheers ... Duncan.


More information about the wayland-devel mailing list