]> git.ozlabs.org Git - petitboot/commit
discover: Maintain a backlog of status updates
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Wed, 14 Dec 2016 03:44:23 +0000 (14:44 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 20 Dec 2016 05:40:22 +0000 (16:40 +1100)
commit75c97cfd449b2bac8e61af1017a83bdf43f5e8fe
treecc6b4a0bf23e58cb1cd737a3cefdf7c54c4f7566
parent6a065198be213092c67071ee77eccf3e493a4cba
discover: Maintain a backlog of status updates

Add status updates to a persistent list in the discover_server struct,
and send each client the backlog on connect. This avoids clients missing
useful messages from early init. Clients will only show this in the
backlog screen to avoid flooding the client's status line.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/boot.c
discover/device-handler.c
discover/discover-server.c
lib/pb-protocol/pb-protocol.c
lib/types/types.h
ui/ncurses/nc-cui.c
ui/ncurses/nc-statuslog.c