path: root/discover/device-handler.h
diff options
authorNishanth Aravamudan <>2015-08-19 14:05:43 -0700
committerSamuel Mendoza-Jonas <>2015-12-18 13:06:53 +1100
commitf155a58a64c660e46e74123293482561b816a39a (patch)
tree9dd50fadc6c42cdbc0f34d28d67cac4653240946 /discover/device-handler.h
parent32d3249e252fe201eb81155cbf3b800ce5cf88e0 (diff)
discover: extend URL in UI to support auto-discovery
The URL field currently only supports loading a particular file for static network configurations. But it makes sense in certain static network configurations to 'auto-discover' a file like petitboot does with DHCP -- based off the MAC address and IP. Extend device_handler_process_url to take those as parameters, and toggle off the URL ending in a '/' to indicate whether to 'auto-discover' or directly load the specified URL. Signed-off-by: Nishanth Aravamudan <> Signed-off-by: Samuel Mendoza-Jonas <>
Diffstat (limited to 'discover/device-handler.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h
index d18910a..e5501ec 100644
--- a/discover/device-handler.h
+++ b/discover/device-handler.h
@@ -133,7 +133,7 @@ void device_handler_cancel_default(struct device_handler *handler);
void device_handler_update_config(struct device_handler *handler,
struct config *config);
void device_handler_process_url(struct device_handler *handler,
- const char *url);
+ const char *url, const char *mac, const char *ip);
void device_handler_reinit(struct device_handler *handler);
int device_request_write(struct discover_device *dev, bool *release);
OpenPOWER on IntegriCloud