X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fpaths.h;h=2f52e8245bea81efa040fefc8bb0803ecf907163;hp=20a22495042b7780820ea3f12678108218d26a11;hb=b3d241164a7e34eed56159f4e0a8a2821b7ebf4d;hpb=5be946cda7b8e2271ade6188ca3f5dc068826619 diff --git a/discover/paths.h b/discover/paths.h index 20a2249..2f52e82 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 */