aboutsummaryrefslogtreecommitdiffstats
path: root/common
AgeCommit message (Collapse)AuthorFilesLines
2022-03-25log: Add line number to debug log outputDamian Hobson-Garcia1-2/+3
Some debug logging, such as memory allocation failure, uses similar log messageing in several places. Add the file line number to the debug log to help differentiate where notable errors occured. Bug-AGL: SPEC-3815 Change-Id: I2151e21533716ea0badbb6303b713e644b544e6d Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2021-04-06Move lease fd send/receive to dlm-protocolDamian Hobson-Garcia2-0/+85
Collect all protocol related functionality in the same place instead of spreading it around across different modules. Bug-AGL: SPEC-3862 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp> Change-Id: I169a200401e4feaa289d53240a7f5467d6a88bd3
2021-04-06Add lease request and release protocolDamian Hobson-Garcia3-0/+99
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
2021-02-19Add initial versionDamian Hobson-Garcia7-0/+257
The initial version implements the basic functionality of the client/server communication and lease management. For now, one lease is created per valid connector (dependent on CRTC availablity). Bug-AGL: SPEC-3729 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp> Change-Id: I2b37a892742cc22bdc53a5172c8ad3d8a7bb5e66