From c5ae6f4846ca4bd8e13ffa08a293950433f3096c Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Wed, 7 Dec 2016 11:43:08 +1100 Subject: 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 Signed-off-by: Samuel Mendoza-Jonas --- discover/device-handler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'discover/device-handler.h') 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, -- cgit v1.2.1