compositor-headless: Support starting with zero outputs
authorArmin Krezović <krezovic.armin@gmail.com>
Thu, 23 Jun 2016 09:59:29 +0000 (11:59 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 27 Jun 2016 10:17:05 +0000 (13:17 +0300)
commitd84deeb17343ac726a1d769a2413eed6626e5865
tree45d6f74711aebf393b3fea4ec44574933c2a917e
parent5c2f20edb0bca7bb955b14bd94a6bd6abc6f5a5d
compositor-headless: Support starting with zero outputs

This patch adds a new command line option which can be
used to tell headless backend not to create any
virtual outputs.

This will be used for output hotplug emulation, where
weston will start with no outputs available, and the
virtual output will be created at runtime.

v2:

- Use bool instead of int for the indicator flag
- Move final newspace to a separate line in command
  line options

Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: Armin Krezović <krezovic.armin@gmail.com>
compositor/main.c
libweston/compositor-headless.c
libweston/compositor-headless.h