The following patch series implements custom dispatchers by adding an additional field to wl_object.
Accompanying this series is a patch to weston that belongs between patches 2 and 3 of this series. This series requires the following patch by Jonas Ådahl: http://lists.freedesktop.org/archives/wayland-devel/2013-March/007830.html Jason Ekstrand (6): Change wl_closure_invoke to take an opcode instead of an actual function pointer Add wl_resource_init and use it in libwayland implementations of data sharing and SHM Add a dispatcher field to wl_object. Add null dispatchers to test objects Add wl_argument versions of event and request marshallers Add dispatcher versions of functions that take an interface src/connection.c | 56 ++++++++++++++++++++++++++++----- src/data-device.c | 16 +++------- src/wayland-client.c | 79 ++++++++++++++++++++++++++++++++++++++++------ src/wayland-client.h | 6 ++++ src/wayland-private.h | 13 +------- src/wayland-server.c | 82 +++++++++++++++++++++++++++++++++++++----------- src/wayland-server.h | 41 ++++++++++++++++++++++++ src/wayland-shm.c | 24 ++++---------- src/wayland-util.h | 33 ++++++++++++++++++- tests/connection-test.c | 17 +++++----- tests/os-wrappers-test.c | 6 ++-- 11 files changed, 283 insertions(+), 90 deletions(-) -- 1.8.1.4 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel