[PATCH 0/3] Introduce shm pool helper functions
Andre Heider
a.heider at gmail.com
Sat Aug 4 06:22:52 PDT 2012
This set adds a couple of helper function to wayland-client to handle
shm pools.
Motivation: I noticed the amount of code duplication on client side.
On top of that, wayland already maintains this platform independent.
I'm not happy with the names of the functions, and the API needs a few more
thoughts before declaring it public, but I wanted to get some comments about
this first.
Similar to wayland-cursor, this could also be shoved into its own library.
Also see the follow up patch set for weston.
Andre Heider (3):
Introduce a static lib for shared code
wayland-client: Introduce shm pool helper function
wayland-cursor: Adapt to new shm pool helper functions
configure.ac | 1 +
cursor/Makefile.am | 12 ++---
cursor/os-compatibility.c | 128 ---------------------------------------------
cursor/os-compatibility.h | 31 -----------
cursor/wayland-cursor.c | 117 +++++++++--------------------------------
shared/Makefile.am | 9 ++++
shared/os-compatibility.c | 128 +++++++++++++++++++++++++++++++++++++++++++++
shared/os-compatibility.h | 31 +++++++++++
src/Makefile.am | 6 ++-
src/wayland-client.c | 110 ++++++++++++++++++++++++++++++++++++++
src/wayland-client.h | 23 ++++++++
11 files changed, 338 insertions(+), 258 deletions(-)
delete mode 100644 cursor/os-compatibility.c
delete mode 100644 cursor/os-compatibility.h
create mode 100644 shared/Makefile.am
create mode 100644 shared/os-compatibility.c
create mode 100644 shared/os-compatibility.h
--
1.7.10.4
More information about the wayland-devel
mailing list