Add lease request and release protocol
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>
Wed, 31 Mar 2021 01:24:43 +0000 (10:24 +0900)
commit87aff1d59cf6862acbfd4b0afb5e27b74f987b43
tree2b676f85323f0297ffd187d3aef2c0b224e2ff99
parent39eff5b83791e0c05f929c1f8d1958c7b72849a3
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