summaryrefslogtreecommitdiffstats
path: root/discover/resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'discover/resource.c')
-rw-r--r--discover/resource.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/discover/resource.c b/discover/resource.c
index 917a6dc..964c1a4 100644
--- a/discover/resource.c
+++ b/discover/resource.c
@@ -111,3 +111,14 @@ bool resolve_devpath_resource(struct device_handler *handler,
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;
+}
OpenPOWER on IntegriCloud