lease-server: Allow multiple client connections 10/26210/3
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>
Tue, 6 Apr 2021 01:33:11 +0000 (10:33 +0900)
commitecaaf9e2ad40181d916049510823ce8557ecd91e
treeb78438e8c5c610cef5a79dfaeba060c2a521125d
parent220eb2fad6c21338c32989e69f45646b4e8d5f0f
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

Change-Id: I48cc392dd62a8c06ea74178bc52c627032817203
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
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