RetroArch
Macros | Functions | Variables
httpserver.c File Reference
#include <inttypes.h>
#include <string.h>
#include <stdarg.h>
#include <libretro.h>
#include <civetweb/civetweb.h>
#include <string/stdstring.h>
#include <compat/zlib.h>
#include "../../core.h"
#include "../../retroarch.h"
#include "../../gfx/video_driver.h"
#include "../../managers/core_option_manager.h"
#include "../../cheevos/cheevos.h"
#include "../../content.h"
Include dependency graph for httpserver.c:

Macros

#define __STDC_FORMAT_MACROS
 
#define BASIC_INFO   "info"
 
#define MEMORY_MAP   "memoryMap"
 

Functions

static void httpserver_z85_encode_inplace (Bytef *data, size_t size)
 
static void json_string_encode (char *output, size_t size, const char *input)
 
static int httpserver_error (struct mg_connection *conn, unsigned code, const char *fmt,...)
 
static int httpserver_handle_basic_info (struct mg_connection *conn, void *cbdata)
 
static int httpserver_handle_get_mmaps (struct mg_connection *conn, void *cbdata)
 
static int httpserver_handle_get_mmap (struct mg_connection *conn, void *cbdata)
 
static int httpserver_handle_mmaps (struct mg_connection *conn, void *cbdata)
 
int httpserver_init (unsigned port)
 
void httpserver_destroy (void)
 

Variables

static struct mg_callbacks s_httpserver_callbacks
 
static struct mg_contexts_httpserver_ctx = NULL
 

Macro Definition Documentation

◆ __STDC_FORMAT_MACROS

#define __STDC_FORMAT_MACROS

◆ BASIC_INFO

#define BASIC_INFO   "info"

◆ MEMORY_MAP

#define MEMORY_MAP   "memoryMap"

Function Documentation

◆ httpserver_destroy()

void httpserver_destroy ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ httpserver_error()

static int httpserver_error ( struct mg_connection conn,
unsigned  code,
const char *  fmt,
  ... 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ httpserver_handle_basic_info()

static int httpserver_handle_basic_info ( struct mg_connection conn,
void cbdata 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ httpserver_handle_get_mmap()

static int httpserver_handle_get_mmap ( struct mg_connection conn,
void cbdata 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ httpserver_handle_get_mmaps()

static int httpserver_handle_get_mmaps ( struct mg_connection conn,
void cbdata 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ httpserver_handle_mmaps()

static int httpserver_handle_mmaps ( struct mg_connection conn,
void cbdata 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ httpserver_init()

int httpserver_init ( unsigned  port)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ httpserver_z85_encode_inplace()

static void httpserver_z85_encode_inplace ( Bytef data,
size_t  size 
)
static
Here is the caller graph for this function:

◆ json_string_encode()

static void json_string_encode ( char *  output,
size_t  size,
const char *  input 
)
static
Here is the caller graph for this function:

Variable Documentation

◆ s_httpserver_callbacks

struct mg_callbacks s_httpserver_callbacks
static

◆ s_httpserver_ctx

struct mg_context* s_httpserver_ctx = NULL
static