X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fpaths.h;h=35673b7eaef6cc1228d95019fd6ccfe0f5302612;hp=ed0e153f88a63c169c66308811db10e8d1c6793b;hb=4c03332555b2d87029be525f854a42bb90bc4e4b;hpb=e983d818be18a975c519bd76294519a01ce7a1c3 diff --git a/discover/paths.h b/discover/paths.h index ed0e153..35673b7 100644 --- a/discover/paths.h +++ b/discover/paths.h @@ -2,6 +2,8 @@ #define PATHS_H #include +#include +#include /** * Utility function for joining two paths. Adds a / between a and b if @@ -30,6 +32,7 @@ struct load_url_result { LOAD_CANCELLED, } status; + struct pb_url *url; const char *local; bool cleanup_local; struct load_task *task; @@ -42,7 +45,8 @@ typedef void (*load_url_complete)(struct load_url_result *result, void *data); /* Load a (potentially remote) file, and return a guaranteed-local name */ struct load_url_result *load_url_async(void *ctx, struct pb_url *url, - load_url_complete complete, void *data); + load_url_complete complete, void *data, + waiter_cb stdout_cb, void *stdout_data); /* Cancel a pending load */ void load_url_async_cancel(struct load_url_result *res);