From 06f5f635ca77db20b58d0422c45b9ddbb49b8f9a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 9 May 2017 20:10:58 +0200 Subject: [PATCH] Cleanups --- tasks/task_http.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/tasks/task_http.c b/tasks/task_http.c index d37186acf8..dce460756d 100644 --- a/tasks/task_http.c +++ b/tasks/task_http.c @@ -13,17 +13,15 @@ * If not, see . */ +#include + #include -#include -#include #include #include #include -#include #include #include -#include "../msg_hash.h" #include "../verbosity.h" #include "tasks_internal.h" @@ -235,7 +233,9 @@ static bool task_http_retriever(retro_task_t *task, void *data) return true; } -static void* task_push_http_transfer_generic(struct http_connection_t *conn, const char *url, bool mute, const char *type, +static void* task_push_http_transfer_generic( + struct http_connection_t *conn, + const char *url, bool mute, const char *type, retro_task_callback_t cb, void *user_data) { task_finder_data_t find_data; @@ -305,7 +305,8 @@ error: return NULL; } -void* task_push_http_transfer(const char *url, bool mute, const char *type, +void* task_push_http_transfer(const char *url, bool mute, + const char *type, retro_task_callback_t cb, void *user_data) { struct http_connection_t *conn; @@ -315,14 +316,16 @@ void* task_push_http_transfer(const char *url, bool mute, const char *type, return task_push_http_transfer_generic(conn, url, mute, type, cb, user_data); } -void* task_push_http_post_transfer(const char *url, const char *post_data, bool mute, +void* task_push_http_post_transfer(const char *url, + const char *post_data, bool mute, const char *type, retro_task_callback_t cb, void *user_data) { struct http_connection_t *conn; conn = net_http_connection_new(url, "POST", post_data); - return task_push_http_transfer_generic(conn, url, mute, type, cb, user_data); + return task_push_http_transfer_generic(conn, + url, mute, type, cb, user_data); } task_retriever_info_t *http_task_get_transfer_list(void)