From 5444648fe1ff9b79f3db5ee6feadd51341f59d71 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 15 Mar 2013 16:13:32 +0800 Subject: discover: Handle unresolved resources This change adds an unresolved resource queue - any unresolved resources discovered by parsers are added to this queue rather than being reported to the clients. When we discover a new device, we try to resolve any resources in the queue against the new device. If resolution succeeds, we can send the option to clients. Signed-off-by: Jeremy Kerr --- discover/device-handler.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'discover/device-handler.h') diff --git a/discover/device-handler.h b/discover/device-handler.h index 5dead24..be55f73 100644 --- a/discover/device-handler.h +++ b/discover/device-handler.h @@ -27,6 +27,7 @@ struct discover_device { }; struct discover_boot_option { + struct parser *source; struct discover_device *device; struct boot_option *option; struct list_item list; @@ -38,6 +39,7 @@ struct discover_boot_option { struct discover_context { + struct parser *parser; struct event *event; struct discover_device *device; struct list boot_options; -- cgit v1.2.1