mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Cleanups
This commit is contained in:
parent
476738cc5c
commit
06f5f635ca
@ -13,17 +13,15 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <net/net_http.h>
|
||||
#include <queues/message_queue.h>
|
||||
#include <lists/string_list.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <compat/strl.h>
|
||||
#include <file/file_path.h>
|
||||
#include <file/archive_file.h>
|
||||
#include <net/net_compat.h>
|
||||
#include <retro_stat.h>
|
||||
|
||||
#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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user