RetroArch
|
#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"
Functions | |
static const void * | find_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) |
bool driver_ctl | ( | enum driver_ctl_state | state, |
void * | data | ||
) |
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.
driver_find_last: : string of driver type to be found. : identifier of driver to be found. : size of .
Find last driver in driver array.
driver_find_next: : string of driver type to be found. : identifier of driver to be found. : size of .
Find next driver in driver array.
driver_find_prev: : string of driver type to be found. : identifier of driver to be found. : size of .
Find previous driver in driver array.
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.
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.
|
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).
void drivers_init | ( | int | flags | ) |
drivers_init: : Bitmask of drivers to initialize.
Initializes drivers. determines which drivers get initialized.
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.