We may want to access the loaded URL in a async handler.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
task->async = async_cb != NULL;
task->result = talloc_zero(ctx, struct load_url_result);
task->result->task = task;
task->async = async_cb != NULL;
task->result = talloc_zero(ctx, struct load_url_result);
task->result->task = task;
+ task->result->url = url;
task->process = process_create(task);
if (task->async) {
task->async_cb = async_cb;
task->process = process_create(task);
if (task->async) {
task->async_cb = async_cb;
LOAD_CANCELLED,
} status;
LOAD_CANCELLED,
} status;
const char *local;
bool cleanup_local;
struct load_task *task;
const char *local;
bool cleanup_local;
struct load_task *task;
return NULL;
result->local = talloc_strdup(result, tmp);
return NULL;
result->local = talloc_strdup(result, tmp);
if (rc < 0)
result->status = LOAD_ERROR;
else
if (rc < 0)
result->status = LOAD_ERROR;
else