RetroArch
Classes | Macros | Typedefs | Enumerations | Functions
driver.h File Reference
#include <stdint.h>
#include <stdlib.h>
#include <sys/types.h>
#include <boolean.h>
#include <retro_common_api.h>
Include dependency graph for driver.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)
 

Macro Definition Documentation

◆ DRIVERS_CMD_ALL

#define DRIVERS_CMD_ALL
Value:
Definition: driver.h:69
Definition: driver.h:77
Definition: driver.h:71
Definition: driver.h:70
Definition: driver.h:68
Definition: driver.h:76
Definition: driver.h:74
Definition: driver.h:75
Definition: driver.h:73
Definition: driver.h:72

◆ DRIVERS_CMD_ALL_BUT_MENU

#define DRIVERS_CMD_ALL_BUT_MENU
Value:
Definition: driver.h:69
Definition: driver.h:77
Definition: driver.h:71
Definition: driver.h:70
Definition: driver.h:68
Definition: driver.h:76
Definition: driver.h:74
Definition: driver.h:75
Definition: driver.h:72

Typedef Documentation

◆ driver_ctx_info_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DRIVER_AUDIO 
DRIVER_VIDEO 
DRIVER_INPUT 
DRIVER_CAMERA 
DRIVER_LOCATION 
DRIVER_MENU 
DRIVERS_VIDEO_INPUT 
DRIVER_WIFI 
DRIVER_LED 
DRIVER_MIDI 

◆ anonymous enum

anonymous enum
Enumerator
DRIVER_AUDIO_MASK 
DRIVER_VIDEO_MASK 
DRIVER_INPUT_MASK 
DRIVER_CAMERA_MASK 
DRIVER_LOCATION_MASK 
DRIVER_MENU_MASK 
DRIVERS_VIDEO_INPUT_MASK 
DRIVER_WIFI_MASK 
DRIVER_LED_MASK 
DRIVER_MIDI_MASK 

◆ driver_ctl_state

Enumerator
RARCH_DRIVER_CTL_NONE 
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 

Function Documentation

◆ 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_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:

◆ 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: