RetroArch
Classes | Typedefs | Enumerations | Functions
task_http.c File Reference
#include <stdlib.h>
#include <net/net_http.h>
#include <string/stdstring.h>
#include <compat/strl.h>
#include <file/file_path.h>
#include <net/net_compat.h>
#include <retro_timers.h>
#include "../verbosity.h"
#include "../gfx/video_display_server.h"
#include "tasks_internal.h"
Include dependency graph for task_http.c:

Classes

struct  http_transfer_info
 
struct  http_handle
 

Typedefs

typedef struct http_transfer_info http_transfer_info_t
 
typedef struct http_handle http_handle_t
 

Enumerations

enum  http_status_enum {
  HTTP_STATUS_CONNECTION_TRANSFER = 0, HTTP_STATUS_CONNECTION_TRANSFER_PARSE, HTTP_STATUS_TRANSFER, HTTP_STATUS_TRANSFER_PARSE,
  HTTP_STATUS_TRANSFER_PARSE_FREE
}
 

Functions

static int task_http_con_iterate_transfer (http_handle_t *http)
 
static int task_http_conn_iterate_transfer_parse (http_handle_t *http)
 
static int cb_http_conn_default (void *data_, size_t len)
 
static int task_http_iterate_transfer (retro_task_t *task)
 
static void task_http_transfer_handler (retro_task_t *task)
 
static bool task_http_finder (retro_task_t *task, void *user_data)
 
static bool task_http_retriever (retro_task_t *task, void *data)
 
static void http_transfer_progress_cb (retro_task_t *task)
 
static voidtask_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)
 
voidtask_push_http_transfer (const char *url, bool mute, const char *type, retro_task_callback_t cb, void *user_data)
 
voidtask_push_http_post_transfer (const char *url, const char *post_data, bool mute, const char *type, retro_task_callback_t cb, void *user_data)
 
task_retriever_info_thttp_task_get_transfer_list (void)
 

Typedef Documentation

◆ http_handle_t

typedef struct http_handle http_handle_t

◆ http_transfer_info_t

Enumeration Type Documentation

◆ http_status_enum

Enumerator
HTTP_STATUS_CONNECTION_TRANSFER 
HTTP_STATUS_CONNECTION_TRANSFER_PARSE 
HTTP_STATUS_TRANSFER 
HTTP_STATUS_TRANSFER_PARSE 
HTTP_STATUS_TRANSFER_PARSE_FREE 

Function Documentation

◆ cb_http_conn_default()

static int cb_http_conn_default ( void data_,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ http_task_get_transfer_list()

task_retriever_info_t* http_task_get_transfer_list ( void  )
Here is the call graph for this function:

◆ http_transfer_progress_cb()

static void http_transfer_progress_cb ( retro_task_t task)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_http_con_iterate_transfer()

static int task_http_con_iterate_transfer ( http_handle_t http)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_http_conn_iterate_transfer_parse()

static int task_http_conn_iterate_transfer_parse ( http_handle_t http)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_http_finder()

static bool task_http_finder ( retro_task_t task,
void user_data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_http_iterate_transfer()

static int task_http_iterate_transfer ( retro_task_t task)
static

task_http_iterate_transfer:

Resumes HTTP transfer update.

Returns: 0 when finished, -1 when we should continue with the transfer on the next frame.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_http_retriever()

static bool task_http_retriever ( retro_task_t task,
void data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_http_transfer_handler()

static void task_http_transfer_handler ( retro_task_t task)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_push_http_post_transfer()

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 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_push_http_transfer()

void* task_push_http_transfer ( const char *  url,
bool  mute,
const char *  type,
retro_task_callback_t  cb,
void user_data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_push_http_transfer_generic()

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 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: