summaryrefslogtreecommitdiffstats
path: root/discover/resource.h
Commit message (Collapse)AuthorAgeFilesLines
* discover/resource: Provide resolve_resource_against_deviceJeremy Kerr2013-05-161-2/+3
| | | | | | | | Any other implementation of resources will need to resolve againsst particular devices, so make resolve_devpath_against_device publically-accessible, and rename to not be devpath-specific. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* discover: Always associate resources with a boot optionJeremy Kerr2013-05-151-2/+4
| | | | | | | | | | | We should always be tallocing resources to a boot option context; anything else (for example, the discover context) may have a different lifetime. In order to enforce this, we change the void *ctx argument to the context_create functions to a struct discover_boot_option. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* discover/resource.h: Add forward declarationsJeremy Kerr2013-05-071-0/+2
| | | | | | We need to define a few structs for the params of resource functions. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* discover: Add URL resourcesJeremy Kerr2013-04-291-0/+2
| | | | | | | URL resources are simple: the URLs are already resolved, so not much to do here. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* discover: Add devpath resourcesJeremy Kerr2013-04-291-0/+24
| | | | | | | | | Add a generic resource type, to handle "dev:path"-style file references. This creates a duplicate of is_prefix_ignorecase, which we'll switch over to later. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* discover: Add struct resourceJeremy Kerr2013-04-291-0/+23
Introduce a new type, struct resource, for handling resources such as kernels and initrds. This allows the parsers to better describe resources that are required for booting. Firstly, we enforce all resources to be URLs, rather than local paths. Also, resources allow us to describe files devices that have not-yet been hotplugged. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
OpenPOWER on IntegriCloud