summaryrefslogtreecommitdiffstats
path: root/discover/resource.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-05-08 16:39:58 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-05-16 11:56:28 +0800
commitca4dc846bddf8feaafacbdb9c6ebb086a9d99723 (patch)
tree26be94928e14652bcc85ee4411de70c36e7002c0 /discover/resource.h
parenta5db3ced87f5f24500f785b70af8b8630bc1c077 (diff)
downloadpetitboot-ca4dc846bddf8feaafacbdb9c6ebb086a9d99723.zip
petitboot-ca4dc846bddf8feaafacbdb9c6ebb086a9d99723.tar.gz
discover/resource: Provide resolve_resource_against_device
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>
Diffstat (limited to 'discover/resource.h')
-rw-r--r--discover/resource.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/discover/resource.h b/discover/resource.h
index 3ef13a5..ae993e8 100644
--- a/discover/resource.h
+++ b/discover/resource.h
@@ -22,6 +22,9 @@ struct resource {
};
};
+void resolve_resource_against_device(struct resource *res,
+ struct discover_device *dev, const char *path);
+
/**
* devpath resources.
*
@@ -47,7 +50,5 @@ struct resource *create_url_resource(struct discover_boot_option *opt,
bool resolve_devpath_resource(struct device_handler *dev,
struct resource *res);
-
-
#endif /* RESOURCE_H */
OpenPOWER on IntegriCloud