[PATCH] Update to new fd and wl_registry APIs

Pekka Paalanen ppaalanen at gmail.com
Thu Oct 11 00:36:49 PDT 2012


On Wed, 10 Oct 2012 21:37:41 -0400
Kristian Høgsberg <krh at bitplanet.net> wrote:

> This commit updates the clients and the wayland compositor backend to
> use the new wl_registry mechanism and the thread safe fd API.
> ---
> 
> This is the weston patch that goes with the 8 thread-safety wayland patches.
> The wl_registry changes are mostly mechanical, while the fd changes are a
> little more subtle.
> 
> Kristian
> 
>  clients/desktop-shell.c  |   13 +++--
>  clients/editor.c         |   11 ++--
>  clients/keyboard.c       |   13 ++---
>  clients/screenshot.c     |   22 +++++---
>  clients/simple-egl.c     |   37 ++++++-------
>  clients/simple-shm.c     |   43 ++++++++-------
>  clients/simple-touch.c   |   39 +++++++-------
>  clients/tablet-shell.c   |    9 ++--
>  clients/weston-info.c    |   24 +++++----
>  clients/window.c         |  133 +++++++++++++++++++++++++++++++++-------------
>  clients/window.h         |   12 +++++
>  clients/wscreensaver.c   |    8 +--
>  src/compositor-wayland.c |   49 ++++++++---------
>  13 files changed, 248 insertions(+), 165 deletions(-)

All registry listeners in these seem to be missing the global_remove
handler.

Hmm, we'd really need some test cases for it in 'make check'. Or even
just a simple weston module, that adds or removes a dummy global object
every 2 seconds to excercise the removal paths.


Thanks,
pq


More information about the wayland-devel mailing list