path: root/discover/device-handler.h
diff options
authorJeremy Kerr <>2013-03-15 16:13:32 +0800
committerJeremy Kerr <>2013-04-29 14:41:04 +1000
commit5444648fe1ff9b79f3db5ee6feadd51341f59d71 (patch)
tree87f8499a982d18abd9c54166549960819dc53d10 /discover/device-handler.h
parentf7818748090c534b8d835b970373936463bff84a (diff)
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 <>
Diffstat (limited to 'discover/device-handler.h')
1 files changed, 2 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud