summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.h
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-06-09 11:47:20 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-06-28 16:17:21 +1000
commit1a72ffef7837cd2aa3e6be945ec03fb6b5caa51a (patch)
treee2680bc7dc7744f58ac7f2cc9f224f6a22928fa4 /discover/device-handler.h
parentdc96fc7df262a0b72ece710dcfc9ffab1c952dec (diff)
downloadtalos-petitboot-1a72ffef7837cd2aa3e6be945ec03fb6b5caa51a.tar.gz
talos-petitboot-1a72ffef7837cd2aa3e6be945ec03fb6b5caa51a.zip
discover/device-handler: Make boot_status() public
Rename boot_status() to device_handler_boot_status() and make it accessible by files that include device-handler.h. This enables the boot status to be updated from additional callers, in particular within parser functions. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/device-handler.h')
-rw-r--r--discover/device-handler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h
index 12f5ce0..6b1a757 100644
--- a/discover/device-handler.h
+++ b/discover/device-handler.h
@@ -4,6 +4,7 @@
#include <stdbool.h>
#include <list/list.h>
+#include <types/types.h>
struct device_handler;
struct discover_device;
@@ -96,6 +97,8 @@ int device_handler_conf(struct device_handler *handler,
void device_handler_remove(struct device_handler *handler,
struct discover_device *device);
+void device_handler_boot_status(void *arg, struct boot_status *status);
+
struct discover_context *device_handler_discover_context_create(
struct device_handler *handler,
struct discover_device *device);
OpenPOWER on IntegriCloud