Use a callback object instead of ad-hoc lists for sync and frame events
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 30 Jul 2011 02:51:22 +0000 (19:51 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 27 Aug 2011 16:06:10 +0000 (12:06 -0400)
commit0af17ed98c8f8112c0d43ccbf90367f543846143
tree93a6c58aa836286850b3cdebde9f1e3427cfeb7b
parent1648109c84a5e96fd28a29a276a668050dd6c881
Use a callback object instead of ad-hoc lists for sync and frame events

So obvious in retrospect.  The object system can do all the work for us
and keep track of pending calls as regular objects and we don't need to
abuse the resource system to get them cleaned up on client exit.  We
don't need the custom key management or (broken) lookup, we just sue
object IDs.  And last but not least, anybody can receive the callback,
not just display listeners.
protocol/wayland.xml
src/wayland-client.c
src/wayland-client.h
src/wayland-server.c