summaryrefslogtreecommitdiffstats
path: root/lib/types
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-14 14:44:23 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-20 16:40:22 +1100
commit75c97cfd449b2bac8e61af1017a83bdf43f5e8fe (patch)
treecc6b4a0bf23e58cb1cd737a3cefdf7c54c4f7566 /lib/types
parent6a065198be213092c67071ee77eccf3e493a4cba (diff)
downloadtalos-petitboot-75c97cfd449b2bac8e61af1017a83bdf43f5e8fe.tar.gz
talos-petitboot-75c97cfd449b2bac8e61af1017a83bdf43f5e8fe.zip
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>
Diffstat (limited to 'lib/types')
-rw-r--r--lib/types/types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/types/types.h b/lib/types/types.h
index 506510b..63f1b21 100644
--- a/lib/types/types.h
+++ b/lib/types/types.h
@@ -76,6 +76,12 @@ struct status {
STATUS_ERROR,
} type;
char *message;
+ bool backlog;
+};
+
+struct statuslog_entry {
+ struct status *status;
+ struct list_item list;
};
struct interface_info {
OpenPOWER on IntegriCloud