[PATCH wayland 0/4] Make wl_resource opaque

Jason Ekstrand jason at jlekstrand.net
Sat Jun 1 15:40:51 PDT 2013


This commit series provides a path for making the wl_resource structure opaque
and special-casing wl_buffer.

The first patch in the series is a primarily a bugfix patch for wl_buffer and
is a good idea anyway.

The last patch in the series should not be applied until all direct wl_resource
accesses have been removed from weston.

Jason Ekstrand (4):
  Add a "side" field and some sanity checks to wl_map.
  Add support for flags in the wl_map API and add a WL_MAP_ENTRY_LEGACY
    flag
  Add accessor functions for wl_resource and deprecate
    wl_client_add_resource
  Make wl_resource opaque

 src/wayland-client.c  | 16 +++++------
 src/wayland-private.h | 16 +++++++++--
 src/wayland-server.c  | 78 ++++++++++++++++++++++++++++++++++++++++++++++-----
 src/wayland-server.h  | 53 +++++++++++++++++-----------------
 src/wayland-shm.c     | 35 ++++++++++++-----------
 src/wayland-util.c    | 65 ++++++++++++++++++++++++++++++++++++------
 src/wayland-util.h    |  7 +++++
 7 files changed, 201 insertions(+), 69 deletions(-)

-- 
1.8.1.4



More information about the wayland-devel mailing list