Add lease request and release protocol 36/26236/1
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Fri, 19 Feb 2021 03:52:55 +0000 (03:52 +0000)
committerDamian Hobson-Garcia <dhobsong@igel.co.jp>
Tue, 6 Apr 2021 06:58:47 +0000 (15:58 +0900)
commitabb27e7774e3cd12bd3cfe3d4858bbe590e59be0
tree2b676f85323f0297ffd187d3aef2c0b224e2ff99
parentd196375b8b130e119285fb19984870edc6941a90
Add lease request and release protocol

Explicitly request / release leases instead of implicitly
by opening and closing the connection.  This will allow the
lease manager to take different action when a client
shuts down gracefully vs when it crashes, holding a lease.

Bug-AGL: SPEC-3862

Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Change-Id: Ibc68bee855ce18e56eb6f57e5ad1743248320013
common/dlm-protocol.c [new file with mode: 0644]
common/dlm-protocol.h [new file with mode: 0644]
common/meson.build
drm-lease-manager/lease-server.c
drm-lease-manager/test/test-socket-client.c
libdlmclient/dlmclient.c
libdlmclient/test/test-socket-server.c