discover: Handle unresolved resources
authorJeremy Kerr <jk@ozlabs.org>
Fri, 15 Mar 2013 08:13:32 +0000 (16:13 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 29 Apr 2013 04:41:04 +0000 (14:41 +1000)
commit5444648fe1ff9b79f3db5ee6feadd51341f59d71
tree87f8499a982d18abd9c54166549960819dc53d10
parentf7818748090c534b8d835b970373936463bff84a
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 <jk@ozlabs.org>
discover/device-handler.c
discover/device-handler.h
discover/parser.c