[PATCH wayland 0/3] Convert SHM buffers to a wl_shm_buffer opaque

Jason Ekstrand jason at jlekstrand.net
Thu Jun 20 18:36:46 PDT 2013


This series converts the SHM buffers over to an opaque wl_shm_buffer
structure that does NOT derive from wl_buffer.  In particular, it has a
resource pointer instead of using the legacy wl_buffer with inline
resource.

The first two patches do NOT break ABI; the third one does.

Jason Ekstrand (3):
  Add a wl_resource_instance_of function
  Change SHM wl_buffer functions to use the wl_shm_buffer structure
  Change wl_shm_buffer to use a resource pointer

 src/connection.c      |  8 ++---
 src/wayland-private.h |  3 ++
 src/wayland-server.c  |  9 ++++++
 src/wayland-server.h  | 25 ++++++++++------
 src/wayland-shm.c     | 81 +++++++++++++++++++--------------------------------
 5 files changed, 62 insertions(+), 64 deletions(-)

-- 
1.8.1.4



More information about the wayland-devel mailing list