X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fresource.h;h=ae993e83a8c6c1be57e4bd54b42dd97aef3417f1;hp=2debe3cd24970e5c429c3fed950d1f40ca018deb;hb=8f09986340e602a69398b2866a265ea3f16609c6;hpb=c6a36fdf2fc2e7a1c2bc4c8d16f2a3bb575b5a2f diff --git a/discover/resource.h b/discover/resource.h index 2debe3c..ae993e8 100644 --- a/discover/resource.h +++ b/discover/resource.h @@ -3,6 +3,9 @@ #include +struct discover_boot_option; +struct discover_device; +struct device_handler; struct pb_url; /** @@ -19,6 +22,9 @@ struct resource { }; }; +void resolve_resource_against_device(struct resource *res, + struct discover_device *dev, const char *path); + /** * devpath resources. * @@ -34,14 +40,15 @@ struct resource { * callback. */ -struct resource *create_devpath_resource(void *ctx, +struct resource *create_devpath_resource(struct discover_boot_option *opt, struct discover_device *orig_device, const char *devpath); +struct resource *create_url_resource(struct discover_boot_option *opt, + struct pb_url *url); + bool resolve_devpath_resource(struct device_handler *dev, struct resource *res); - - #endif /* RESOURCE_H */