On Wed, Feb 27, 2013 at 09:29:54PM -0600, Jason Ekstrand wrote: > This sequence demonstrates how we could implement custom dispatchers via > wl_object instead of wl_interface. This has the added benefit of not breaking > ABI client-side and only breaking it server-side. See also: > > http://lists.freedesktop.org/archives/wayland-devel/2013-February/007559.html > > Following this patch series is a patch to weston so that it will build against > these libwayland patches. I have left a few bits out of this series such as > alternate versions of wl_resource_post_event and wl_resource_queue_event. > However, while we're trying to nail down exactly how to implement dispatchers, > there's no reason to send those to the list again.
I think those all look good. If we can just figure out the wl_resource details in the weston patch, I'm ok with this approach. Kristian > You can also see this on my personal fork of libwayland: > > https://github.com/jekstrand/wayland > > Jason Ekstrand (4): > 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 > > src/connection.c | 29 ++++++++++++++++++++++------- > src/data-device.c | 16 ++++------------ > src/wayland-client.c | 11 +++++++---- > src/wayland-private.h | 15 ++------------- > src/wayland-server.c | 9 ++------- > src/wayland-server.h | 17 +++++++++++++++++ > src/wayland-shm.c | 24 ++++++------------------ > src/wayland-util.h | 29 ++++++++++++++++++++++++++++- > tests/connection-test.c | 17 +++++++++-------- > tests/os-wrappers-test.c | 6 +++--- > 10 files changed, 100 insertions(+), 73 deletions(-) > > -- > 1.8.1.2 > > _______________________________________________ > wayland-devel mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/wayland-devel _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
