Add 'optional' property to connector configuration 82/27382/3
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Thu, 14 Apr 2022 06:24:11 +0000 (15:24 +0900)
committerDamian Hobson-Garcia <dhobsong@igel.co.jp>
Wed, 20 Apr 2022 01:58:39 +0000 (10:58 +0900)
commit5c27165cdcfb28c8b2eccc139802fa0dd6403776
tree29fcfe154457dfcbdcfd0ed0634ce1b7662c3010
parent84bd108e702b753bc1f7b232c94baa5b84295b5f
Add 'optional' property to connector configuration

All connectors will default to mandatory. i.e. if
any specified connector is in the lease configuration
is not available, that lease will not be created.
Setting a connector as 'optional' lets the lease
creation succeed even if the connector is not
physically present on the system.

Failing to create a lease does not affect the creation
of other leases.  The drm-lease-manager daemon will
run as long as one lease is successfully created.

Bug-AGL: SPEC-3815

Change-Id: I5edf8a97a2a3589e8eb5368c0a5b13adb4cb5c9b
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
drm-lease-manager/drm-lease.h
drm-lease-manager/lease-config.c
drm-lease-manager/lease-manager.c