res->resolved = true;
}
-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 *res;
struct pb_url *url;
- res = talloc(ctx, struct resource);
+ res = talloc(opt, struct resource);
pos = strchr(devpath, ':');
return true;
}
+
+struct resource *create_url_resource(struct discover_boot_option *opt,
+ struct pb_url *url)
+{
+ struct resource *res;
+
+ res = talloc(opt, struct resource);
+ res->url = url;
+ res->resolved = true;
+
+ return res;
+}