RetroArch
|
#include <stdint.h>
#include <stdlib.h>
#include <sys/types.h>
#include <boolean.h>
#include <retro_common_api.h>
Go to the source code of this file.
Classes | |
struct | driver_ctx_info |
Macros | |
#define | DRIVERS_CMD_ALL |
#define | DRIVERS_CMD_ALL_BUT_MENU |
Typedefs | |
typedef struct driver_ctx_info | driver_ctx_info_t |
Enumerations | |
enum | { DRIVER_AUDIO = 0, DRIVER_VIDEO, DRIVER_INPUT, DRIVER_CAMERA, DRIVER_LOCATION, DRIVER_MENU, DRIVERS_VIDEO_INPUT, DRIVER_WIFI, DRIVER_LED, DRIVER_MIDI } |
enum | { DRIVER_AUDIO_MASK = 1 << DRIVER_AUDIO, DRIVER_VIDEO_MASK = 1 << DRIVER_VIDEO, DRIVER_INPUT_MASK = 1 << DRIVER_INPUT, DRIVER_CAMERA_MASK = 1 << DRIVER_CAMERA, DRIVER_LOCATION_MASK = 1 << DRIVER_LOCATION, DRIVER_MENU_MASK = 1 << DRIVER_MENU, DRIVERS_VIDEO_INPUT_MASK = 1 << DRIVERS_VIDEO_INPUT, DRIVER_WIFI_MASK = 1 << DRIVER_WIFI, DRIVER_LED_MASK = 1 << DRIVER_LED, DRIVER_MIDI_MASK = 1 << DRIVER_MIDI } |
enum | driver_ctl_state { RARCH_DRIVER_CTL_NONE = 0, RARCH_DRIVER_CTL_DEINIT, RARCH_DRIVER_CTL_INIT_PRE, RARCH_DRIVER_CTL_SET_REFRESH_RATE, RARCH_DRIVER_CTL_UPDATE_SYSTEM_AV_INFO, RARCH_DRIVER_CTL_FIND_FIRST, RARCH_DRIVER_CTL_FIND_LAST, RARCH_DRIVER_CTL_FIND_PREV, RARCH_DRIVER_CTL_FIND_NEXT, RARCH_DRIVER_CTL_FIND_INDEX } |
Functions | |
bool | driver_ctl (enum driver_ctl_state state, void *data) |
void | driver_set_nonblock_state (void) |
void | driver_uninit (int flags) |
void | drivers_init (int flags) |
#define DRIVERS_CMD_ALL |
#define DRIVERS_CMD_ALL_BUT_MENU |
typedef struct driver_ctx_info driver_ctx_info_t |
anonymous enum |
anonymous enum |
enum driver_ctl_state |
bool driver_ctl | ( | enum driver_ctl_state | state, |
void * | data | ||
) |
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.
void drivers_init | ( | int | flags | ) |
drivers_init: : Bitmask of drivers to initialize.
Initializes drivers. determines which drivers get initialized.