[PATCH wayland 0/3] Add versioning to wl_resource

Jason Ekstrand jason at jlekstrand.net
Wed Jun 26 20:18:00 PDT 2013


This patch series adds version information to wl_resource so that we can
detect invalid requests based on version at the libwayland level.  This
series is based on the wl_resource_opaque patch so it is included.

P.S. Kristian, I think I'm ok with the #ifdef guards around wl_resource
etc. for whatever it's worth.  It'll make it a little harder to build
things like mesa against libwayland 1.2 but then again that's the
objective.

Jason Ekstrand (2):
  Add version information to wl_message signatures.
  Add a version field to wl_resource and verify request versions before 
       calling them

Kristian Høgsberg (1):
  server: Make wl_object and wl_resource opaque structs

 src/connection.c      | 55 ++++++++++++++++++++++++++++++++++++----------
 src/scanner.c         |  6 ++++-
 src/wayland-client.c  |  4 ++--
 src/wayland-private.h |  9 ++++++++
 src/wayland-server.c  | 61 ++++++++++++++++++++++++++++++++++++++++++---------
 src/wayland-server.h  | 48 ++++++++++++++++------------------------
 src/wayland-shm.c     | 11 ++++++----
 src/wayland-util.h    |  6 -----
 8 files changed, 136 insertions(+), 64 deletions(-)

-- 
1.8.2.1



More information about the wayland-devel mailing list