RetroArch
Classes | Functions
task_netplay_find_content.c File Reference
#include <string.h>
#include <errno.h>
#include <file/nbio.h>
#include <formats/image.h>
#include <compat/strl.h>
#include <retro_assert.h>
#include <retro_miscellaneous.h>
#include <lists/string_list.h>
#include <rhash.h>
#include <string/stdstring.h>
#include <file/file_path.h>
#include <lists/dir_list.h>
#include "tasks_internal.h"
#include "../file_path_special.h"
#include "../verbosity.h"
#include "../configuration.h"
#include "../playlist.h"
#include "../command.h"
#include "../core_info.h"
#include "../../retroarch.h"
#include "../../menu/menu_driver.h"
Include dependency graph for task_netplay_find_content.c:

Classes

struct  netplay_crc_handle_t
 

Functions

static void netplay_crc_scan_callback (void *task_data, void *user_data, const char *error)
 
static void begin_task (retro_task_t *task, const char *title)
 
static void finish_task (retro_task_t *task, const char *title)
 
static bool core_requires_content (netplay_crc_handle_t *state)
 
static void get_entry (char *entry, int len, const char *path)
 
static void task_netplay_crc_scan_handler (retro_task_t *task)
 
bool task_push_netplay_crc_scan (uint32_t crc, char *name, const char *hostname, const char *core_name)
 

Function Documentation

◆ begin_task()

static void begin_task ( retro_task_t task,
const char *  title 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ core_requires_content()

static bool core_requires_content ( netplay_crc_handle_t state)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ finish_task()

static void finish_task ( retro_task_t task,
const char *  title 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_entry()

static void get_entry ( char *  entry,
int  len,
const char *  path 
)
static

Given a path to a content file, return the base name without the path or the file extension.

e.g. /home/user/foo.rom => foo

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

◆ netplay_crc_scan_callback()

static void netplay_crc_scan_callback ( void task_data,
void user_data,
const char *  error 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_netplay_crc_scan_handler()

static void task_netplay_crc_scan_handler ( retro_task_t task)
static

Execute a search for compatible content for netplay. We prioritize a CRC match, if we have a CRC to match against. If we don't have a CRC, or if there's no CRC match found, fall back to a filename match and hope for the best.

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

◆ task_push_netplay_crc_scan()

bool task_push_netplay_crc_scan ( uint32_t  crc,
char *  name,
const char *  hostname,
const char *  core_name 
)
Here is the call graph for this function:
Here is the caller graph for this function: