libweston: create/find output by name
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 2 Nov 2017 12:11:53 +0000 (14:11 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 17 Apr 2018 12:57:41 +0000 (15:57 +0300)
commit1ae9d084770b5ff9257b3c6a114cde231720db13
treeea6eac95707fabc086abdbb313cfed5cbd36cfdf
parent3e8f20187857fbea8dba23241791a84ca4d707f9
libweston: create/find output by name

To let users pick an arbitrary name for an output, to be used as e.g. a
configuration key, add API to create an output with a given name. For
the same configuration purpose, add a search function as well.

For the search function to be predictable, forbid creating multiple
outputs with the same name. Previously, creating multiple outputs with
the same name would have needed detatching to create outputs from the
same head, now that is forbidden.

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