RetroArch
Functions
driver.c File Reference
#include <compat/strl.h>
#include <compat/posix_string.h>
#include <string/stdstring.h>
#include "dynamic.h"
#include "audio/audio_driver.h"
#include "camera/camera_driver.h"
#include "record/record_driver.h"
#include "location/location_driver.h"
#include "wifi/wifi_driver.h"
#include "led/led_driver.h"
#include "midi/midi_driver.h"
#include "configuration.h"
#include "core_info.h"
#include "driver.h"
#include "retroarch.h"
#include "verbosity.h"
Include dependency graph for driver.c:

Functions

static const voidfind_driver_nonempty (const char *label, int i, char *s, size_t len)
 
static int driver_find_index (const char *label, const char *drv)
 
static bool driver_find_first (const char *label, char *s, size_t len)
 
static bool driver_find_last (const char *label, char *s, size_t len)
 
static bool driver_find_prev (const char *label, char *s, size_t len)
 
bool driver_find_next (const char *label, char *s, size_t len)
 
static void driver_adjust_system_rates (void)
 
void driver_set_nonblock_state (void)
 
static bool driver_update_system_av_info (const struct retro_system_av_info *info)
 
void drivers_init (int flags)
 
void driver_uninit (int flags)
 
bool driver_ctl (enum driver_ctl_state state, void *data)
 

Function Documentation

◆ driver_adjust_system_rates()

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

◆ driver_ctl()

bool driver_ctl ( enum driver_ctl_state  state,
void data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ driver_find_first()

static bool driver_find_first ( const char *  label,
char *  s,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ driver_find_index()

static int driver_find_index ( const char *  label,
const char *  drv 
)
static

driver_find_index: : string of driver type to be found. : identifier of driver to be found.

Find index of the driver, based on .

Returns: -1 if no driver based on and found, otherwise index number of the driver found in the array.

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

◆ driver_find_last()

static bool driver_find_last ( const char *  label,
char *  s,
size_t  len 
)
static

driver_find_last: : string of driver type to be found. : identifier of driver to be found. : size of .

Find last driver in driver array.

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

◆ driver_find_next()

bool driver_find_next ( const char *  label,
char *  s,
size_t  len 
)

driver_find_next: : string of driver type to be found. : identifier of driver to be found. : size of .

Find next driver in driver array.

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

◆ driver_find_prev()

static bool driver_find_prev ( const char *  label,
char *  s,
size_t  len 
)
static

driver_find_prev: : string of driver type to be found. : identifier of driver to be found. : size of .

Find previous driver in driver array.

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

◆ driver_set_nonblock_state()

void driver_set_nonblock_state ( void  )

driver_set_nonblock_state:

Sets audio and video drivers to nonblock state (if enabled).

If nonblock state is false, sets blocking state for both audio and video drivers instead.

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

◆ driver_uninit()

void driver_uninit ( int  flags)

uninit_drivers: : Bitmask of drivers to deinitialize.

Deinitializes drivers.

determines which drivers get deinitialized.Driver ownership - set this to true if the platform in question needs to 'own' the respective handle and therefore skip regular RetroArch driver teardown/reiniting procedure.

If to true, the 'free' function will get skipped. It is then up to the driver implementation to properly handle 'reiniting' inside the 'init' function and make sure it returns the existing handle instead of allocating and returning a pointer to a new handle.

Typically, if a driver intends to make use of this, it should set this to true at the end of its 'init' function.

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

◆ driver_update_system_av_info()

static bool driver_update_system_av_info ( const struct retro_system_av_info info)
static

driver_update_system_av_info: : pointer to new A/V info

Update the system Audio/Video information. Will reinitialize audio/video drivers. Used by RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO.

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

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

◆ drivers_init()

void drivers_init ( int  flags)

drivers_init: : Bitmask of drivers to initialize.

Initializes drivers. determines which drivers get initialized.

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

◆ find_driver_nonempty()

static const void* find_driver_nonempty ( const char *  label,
int  i,
char *  s,
size_t  len 
)
static

find_driver_nonempty: : string of driver type to be found. : index of driver. : identifier name of the found driver gets written to this string. : size of .

Find driver based on .

Returns: NULL if no driver based on found, otherwise pointer to driver.

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