cogland: Use wl_client_add_object instead of wl_client_add_resource
cogland: Use wl_client_add_object instead of wl_client_add_resource

wl_client_add_resource has been deprecated in the Wayland API in
favour of wl_client_add_object which returns a pointer to a
wl_resource which it allocates instead of the compositor having to
embed it in a larger struct. As far as I understand the idea is to
eventually make wl_resource completely opaque. This patch changes
Cogland accordingly.

Reviewed-by: Robert Bragg <12e9293ec6b30c7fa8a0926af42807e929c1684f@linux.intel.com>

gcampax/cogl,djdeath/cogl,djdeath/cogl,gcampax/cogl,gcampax/cogl,gcampax/cogl,djdeath/cogl