diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2016-12-07 11:43:08 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-20 15:04:26 +1100 |
commit | c5ae6f4846ca4bd8e13ffa08a293950433f3096c (patch) | |
tree | 51fcbd90ce451b6b09d6162b975d6eb349efcea3 /discover/device-handler.h | |
parent | 685fc9d70bb5f09ef345ea0f3d8c3422fd77d611 (diff) | |
download | talos-petitboot-c5ae6f4846ca4bd8e13ffa08a293950433f3096c.tar.gz talos-petitboot-c5ae6f4846ca4bd8e13ffa08a293950433f3096c.zip |
discover: separate status-reporting function from boot() callback
Currently, the device_discover_boot_status function is both used for
internal status updates, as well as the callback passed to boot().
This change splits this into two functions; one for the latter and one
for the former. The latter just has a void * for its first argument, to
match the boot_status_fn type.
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h index c6f3ad1..89ca87a 100644 --- a/discover/device-handler.h +++ b/discover/device-handler.h @@ -96,7 +96,8 @@ int device_handler_dhcp(struct device_handler *handler, void device_handler_remove(struct device_handler *handler, struct discover_device *device); -void device_handler_boot_status(void *arg, struct status *status); +void device_handler_status(struct device_handler *handler, + struct status *status); struct discover_context *device_handler_discover_context_create( struct device_handler *handler, |