summaryrefslogtreecommitdiffstats
path: root/discover/paths.h
diff options
context:
space:
mode:
Diffstat (limited to 'discover/paths.h')
-rw-r--r--discover/paths.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/discover/paths.h b/discover/paths.h
index 20a2249..93788e9 100644
--- a/discover/paths.h
+++ b/discover/paths.h
@@ -16,7 +16,12 @@ char *join_paths(void *alloc_ctx, const char *a, const char *b);
*/
const char *mount_base(void);
+typedef void (*load_url_callback)(void *data, int *status);
+
/* Load a (potentially remote) file, and return a guaranteed-local name */
+char *load_url_async(void *ctx, struct pb_url *url, unsigned int *tempfile,
+ load_url_callback url_cb);
+
char *load_url(void *ctx, struct pb_url *url, unsigned int *tempfile);
#endif /* PATHS_H */
OpenPOWER on IntegriCloud