discover: Add URL resources
[petitboot] / discover / resource.c
index 917a6dcbf4f8fdbedff2e544d648978d1ea6b353..964c1a4d40f78b68ff922980a86c930e699cc3db 100644 (file)
@@ -111,3 +111,14 @@ bool resolve_devpath_resource(struct device_handler *handler,
 
        return true;
 }
 
        return true;
 }
+
+struct resource *create_url_resource(void *ctx, struct pb_url *url)
+{
+       struct resource *res;
+
+       res = talloc(ctx, struct resource);
+       res->url = url;
+       res->resolved = true;
+
+       return res;
+}