libweston: add weston_head_is_enabled()
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 15 Feb 2018 13:18:20 +0000 (15:18 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 12 Apr 2018 11:26:17 +0000 (14:26 +0300)
commit8e552fd3bf1158f61fdf9022bb2d5f1a24e9c014
tree1645838a7074bf52a9c0e0464d87b5d05ae8fba9
parent7fe858be814362d93a635eab50b77581e8e7db71
libweston: add weston_head_is_enabled()

Enabled is orthogonal from connected. A connected head could be
disabled, or a disconnected head could in the future be enabled.

Compositors quite likely want to check if a head is already enabled
before starting to take it into use.

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