]> git.ozlabs.org Git - petitboot/blobdiff - discover/paths.h
discover: Add an asynchronous version of load_url
[petitboot] / discover / paths.h
index 20a22495042b7780820ea3f12678108218d26a11..93788e9d863fb7331535fcbec97df3ae72edb192 100644 (file)
@@ -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 */