mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-25 15:59:36 +03:00
Data fetcher: Move fetch_data_send_callback towards top of file.
This commit is contained in:
parent
885897f610
commit
58094ffaa5
@ -74,6 +74,14 @@ static bool fetch_data_can_fetch(const nsurl *url)
|
||||
return true;
|
||||
}
|
||||
|
||||
static void fetch_data_send_callback(const fetch_msg *msg,
|
||||
struct fetch_data_context *c)
|
||||
{
|
||||
c->locked = true;
|
||||
fetch_send_callback(msg, c->parent_fetch);
|
||||
c->locked = false;
|
||||
}
|
||||
|
||||
static void *fetch_data_setup(struct fetch *parent_fetch, nsurl *url,
|
||||
bool only_2xx, bool downgrade_tls, const char *post_urlenc,
|
||||
const struct fetch_multipart_data *post_multipart,
|
||||
@ -119,14 +127,6 @@ static void fetch_data_abort(void *ctx)
|
||||
c->aborted = true;
|
||||
}
|
||||
|
||||
static void fetch_data_send_callback(const fetch_msg *msg,
|
||||
struct fetch_data_context *c)
|
||||
{
|
||||
c->locked = true;
|
||||
fetch_send_callback(msg, c->parent_fetch);
|
||||
c->locked = false;
|
||||
}
|
||||
|
||||
static bool fetch_data_process(struct fetch_data_context *c)
|
||||
{
|
||||
nserror res;
|
||||
|
Loading…
Reference in New Issue
Block a user