lease-server: Allow multiple client connections
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Tue, 9 Mar 2021 03:05:29 +0000 (12:05 +0900)
committerDamian Hobson-Garcia <dhobsong@igel.co.jp>
Wed, 31 Mar 2021 01:23:36 +0000 (10:23 +0900)
commit8655f325bb6db9261185b05a581eb861fe491013
tree5c3302faf3486151c839a2fe9d813eec36fc710b
parenteea1e14902a445e51910ad970fdbc42368df68d5
lease-server: Allow multiple client connections

Allow multiple clients to issue lease requests
on a server at the same time. This is
necessary to be able to grant or deny leases,
not just on a first-come-first-served basis.

Future patches will add extra contitions,
such as command-line options and lease configuration
settings to determine when and how lease requests should
be granted.

This update changes the behaviour of the lease-server interface
so that it reports every client connection request, instead of
when a server has accepted a request, so update the test suite to
reflect this.

Bug-AGL: SPEC-3816

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