Use wl_resource_create() for creating resources
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 28 Jun 2013 01:17:02 +0000 (20:17 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 3 Jul 2013 18:52:06 +0000 (14:52 -0400)
commita85118c1b85df6fbf8f896dca971a5b79a94da71
tree30390d8883a0e823d62a1c7dc9872b33b7e8e111
parentd27cb096adf71139734b434d60cbb28bd4a510b1
Use wl_resource_create() for creating resources

This commit sets the version numbers for all added/created objects.  The
wl_compositor.create_surface implementation was altered to create a surface
with the same version as the underlying wl_compositor.  Since no other
"child interfaces" have version greater than 1, they were all hard-coded to
version 1.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
src/compositor.c
src/compositor.h
src/data-device.c
src/input.c
src/screenshooter.c
src/shell.c
src/tablet-shell.c
src/text-backend.c
src/xwayland/launcher.c
src/zoom.c
tests/weston-test.c