RetroArch
Classes | Macros | Functions | Variables
dynamic.h File Reference
#include <boolean.h>
#include <retro_common_api.h>
#include <libretro.h>
#include <dynamic/dylib.h>
#include "core_type.h"
Include dependency graph for dynamic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  retro_core_t
 

Macros

#define SUBSYSTEM_MAX_SUBSYSTEMS   20
 
#define SUBSYSTEM_MAX_SUBSYSTEM_ROMS   10
 

Functions

RETRO_BEGIN_DECLS bool libretro_get_system_info (const char *path, struct retro_system_info *info, bool *load_no_content)
 
void libretro_free_system_info (struct retro_system_info *info)
 
const struct retro_subsystem_infolibretro_find_subsystem_info (const struct retro_subsystem_info *info, unsigned num_info, const char *ident)
 
const struct retro_controller_descriptionlibretro_find_controller_description (const struct retro_controller_info *info, unsigned id)
 
bool rarch_environment_cb (unsigned cmd, void *data)
 
bool libretro_get_shared_context (void)
 
bool init_libretro_sym (enum rarch_core_type type, struct retro_core_t *core)
 
bool init_libretro_sym_custom (enum rarch_core_type type, struct retro_core_t *current_core, const char *lib_path, dylib_t *lib_handle_p)
 
void uninit_libretro_sym (struct retro_core_t *core)
 

Variables

struct retro_subsystem_info subsystem_data [SUBSYSTEM_MAX_SUBSYSTEMS]
 
struct retro_subsystem_rom_info subsystem_data_roms [SUBSYSTEM_MAX_SUBSYSTEMS][SUBSYSTEM_MAX_SUBSYSTEM_ROMS]
 
unsigned subsystem_current_count
 

Macro Definition Documentation

◆ SUBSYSTEM_MAX_SUBSYSTEM_ROMS

#define SUBSYSTEM_MAX_SUBSYSTEM_ROMS   10

◆ SUBSYSTEM_MAX_SUBSYSTEMS

#define SUBSYSTEM_MAX_SUBSYSTEMS   20

Function Documentation

◆ init_libretro_sym()

bool init_libretro_sym ( enum rarch_core_type  type,
struct retro_core_t current_core 
)

init_libretro_sym: : Type of core to be loaded. If CORE_TYPE_DUMMY, will load dummy symbols.

Initializes libretro symbols and setups environment callback functions. Returns true on success, or false if symbols could not be loaded.

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

◆ init_libretro_sym_custom()

bool init_libretro_sym_custom ( enum rarch_core_type  type,
struct retro_core_t current_core,
const char *  lib_path,
dylib_t lib_handle_p 
)

load_symbols: : Type of core to be loaded. If CORE_TYPE_DUMMY, will load dummy symbols.

Setup libretro callback symbols. Returns true on success, or false if symbols could not be loaded.

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

◆ libretro_find_controller_description()

const struct retro_controller_description* libretro_find_controller_description ( const struct retro_controller_info info,
unsigned  id 
)

libretro_find_controller_description: : Pointer to controller info handle. : Identifier of controller to search for.

Search for a controller of type in .

Returns: controller description of found controller on success, otherwise NULL.

Here is the caller graph for this function:

◆ libretro_find_subsystem_info()

const struct retro_subsystem_info* libretro_find_subsystem_info ( const struct retro_subsystem_info info,
unsigned  num_info,
const char *  ident 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ libretro_free_system_info()

void libretro_free_system_info ( struct retro_system_info info)

libretro_free_system_info: : Pointer to system info information.

Frees system information.

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

◆ libretro_get_shared_context()

bool libretro_get_shared_context ( void  )
Here is the caller graph for this function:

◆ libretro_get_system_info()

RETRO_BEGIN_DECLS bool libretro_get_system_info ( const char *  path,
struct retro_system_info info,
bool load_no_content 
)

libretro_get_system_info: : Path to libretro library. : System info information. : If true, core should be able to auto-start without any content loaded.

Gets system info from an arbitrary lib. The struct returned must be freed as strings are allocated dynamically.

Returns: true (1) if successful, otherwise false (0).

libretro_get_system_info: : Path to libretro library. : Pointer to system info information. : If true, core should be able to auto-start without any content loaded.

Gets system info from an arbitrary lib. The struct returned must be freed as strings are allocated dynamically.

Returns: true (1) if successful, otherwise false (0).

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

◆ rarch_environment_cb()

bool rarch_environment_cb ( unsigned  cmd,
void data 
)

rarch_environment_cb: : Identifier of command. : Pointer to data.

Environment callback function implementation.

Returns: true (1) if environment callback command could be performed, otherwise false (0).

Here is the caller graph for this function:

◆ uninit_libretro_sym()

void uninit_libretro_sym ( struct retro_core_t current_core)

uninit_libretro_sym:

Frees libretro core.

Frees all core options, associated state, and unbind all libretro callback symbols.

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

Variable Documentation

◆ subsystem_current_count

unsigned subsystem_current_count

◆ subsystem_data

◆ subsystem_data_roms