libweston: support user data on weston_output
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 7 Nov 2017 08:15:01 +0000 (10:15 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 17 Apr 2018 12:57:41 +0000 (15:57 +0300)
commit37b7c6ebb5418fb5048edaaad1e9e5f617613c8d
tree56f2a567593e8ec0be94f4f8590a9e2488a6b82f
parent1ae9d084770b5ff9257b3c6a114cde231720db13
libweston: support user data on weston_output

Support attaching custom data to a weston_output by the traditional
destroy listener / wl_signal_get approach.

Needs a new destroy signal, because user data lifetime should be the
lifetime of the weston_output regradless of its enabled status. The old
destroy signal is for output consumers that only care about enabled
outputs in the system and gets emitted on disable, not on destroy.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
libweston/compositor.c
libweston/compositor.h