diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2016-12-08 13:08:15 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-20 15:04:29 +1100 |
commit | b5f9e34d85075afe7aa87b5ce4a1a2d911468e36 (patch) | |
tree | 2f1daf66c1d80f3141a3cd15d8ce1515606e5e10 /discover/device-handler.h | |
parent | c5ae6f4846ca4bd8e13ffa08a293950433f3096c (diff) | |
download | talos-petitboot-b5f9e34d85075afe7aa87b5ce4a1a2d911468e36.tar.gz talos-petitboot-b5f9e34d85075afe7aa87b5ce4a1a2d911468e36.zip |
discover: Add helpers for status reporting
This change adds a couple of helpers for the status reporting API,
allowing callers to provide just a set of printf-style arguments, rather
than having to build up a struct status.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/device-handler.h')
-rw-r--r-- | discover/device-handler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h index 89ca87a..f4022e7 100644 --- a/discover/device-handler.h +++ b/discover/device-handler.h @@ -98,6 +98,10 @@ void device_handler_remove(struct device_handler *handler, void device_handler_status(struct device_handler *handler, struct status *status); +void device_handler_status_info(struct device_handler *handler, + const char *fmt, ...); +void device_handler_status_err(struct device_handler *handler, + const char *fmt, ...); struct discover_context *device_handler_discover_context_create( struct device_handler *handler, |