diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2014-01-14 16:04:02 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2014-01-14 16:04:02 +0000 |
commit | 8dfe22515312a8ecf4da974feb31b0f5e7f317e5 (patch) | |
tree | 163091cfeda5c4cb644e08e7649f70788070a560 /desktop/download.c | |
parent | d18c8ed4521714c3fff3cca64685b8192ca0e075 (diff) | |
download | netsurf-8dfe22515312a8ecf4da974feb31b0f5e7f317e5.tar.gz netsurf-8dfe22515312a8ecf4da974feb31b0f5e7f317e5.tar.bz2 |
move download operations to download table
Diffstat (limited to 'desktop/download.c')
-rw-r--r-- | desktop/download.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/download.c b/desktop/download.c index b775eb18e..98c6b6dd0 100644 --- a/desktop/download.c +++ b/desktop/download.c @@ -160,7 +160,7 @@ static nserror download_context_process_headers(download_context *ctx) } /* Create the frontend window */ - ctx->window = gui_download_window_create(ctx, ctx->parent); + ctx->window = guit->download->create(ctx, ctx->parent); if (ctx->window == NULL) { free(ctx->filename); ctx->filename = NULL; @@ -210,7 +210,7 @@ static nserror download_callback(llcache_handle *handle, if (error == NSERROR_OK) { /** \todo Lose ugly cast */ - error = gui_download_window_data(ctx->window, + error = guit->download->data(ctx->window, (char *) event->data.data.buf, event->data.data.len); if (error != NSERROR_OK) @@ -222,7 +222,7 @@ static nserror download_callback(llcache_handle *handle, case LLCACHE_EVENT_DONE: /* There may be no associated window if there was no data or headers */ if (ctx->window != NULL) - gui_download_window_done(ctx->window); + guit->download->done(ctx->window); else download_context_destroy(ctx); @@ -230,7 +230,7 @@ static nserror download_callback(llcache_handle *handle, case LLCACHE_EVENT_ERROR: if (ctx->window != NULL) - gui_download_window_error(ctx->window, event->data.msg); + guit->download->error(ctx->window, event->data.msg); else download_context_destroy(ctx); |