RetroArch
Classes | Typedefs | Enumerations | Functions | Variables
location_driver.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <boolean.h>
#include <retro_common_api.h>
Include dependency graph for location_driver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  location_driver
 

Typedefs

typedef struct location_driver location_driver_t
 

Enumerations

enum  rarch_location_ctl_state {
  RARCH_LOCATION_CTL_NONE = 0, RARCH_LOCATION_CTL_DESTROY, RARCH_LOCATION_CTL_DEINIT, RARCH_LOCATION_CTL_SET_OWN_DRIVER,
  RARCH_LOCATION_CTL_UNSET_OWN_DRIVER, RARCH_LOCATION_CTL_OWNS_DRIVER, RARCH_LOCATION_CTL_SET_ACTIVE, RARCH_LOCATION_CTL_UNSET_ACTIVE,
  RARCH_LOCATION_CTL_IS_ACTIVE
}
 

Functions

bool driver_location_start (void)
 
void driver_location_stop (void)
 
bool driver_location_get_position (double *lat, double *lon, double *horiz_accuracy, double *vert_accuracy)
 
void driver_location_set_interval (unsigned interval_msecs, unsigned interval_distance)
 
const char * config_get_location_driver_options (void)
 
const voidlocation_driver_find_handle (int index)
 
const char * location_driver_find_ident (int index)
 
void find_location_driver (void)
 
void init_location (void)
 
bool location_driver_ctl (enum rarch_location_ctl_state state, void *data)
 

Variables

location_driver_t location_corelocation
 
location_driver_t location_android
 
location_driver_t location_null
 

Typedef Documentation

◆ location_driver_t

Enumeration Type Documentation

◆ rarch_location_ctl_state

Enumerator
RARCH_LOCATION_CTL_NONE 
RARCH_LOCATION_CTL_DESTROY 
RARCH_LOCATION_CTL_DEINIT 
RARCH_LOCATION_CTL_SET_OWN_DRIVER 
RARCH_LOCATION_CTL_UNSET_OWN_DRIVER 
RARCH_LOCATION_CTL_OWNS_DRIVER 
RARCH_LOCATION_CTL_SET_ACTIVE 
RARCH_LOCATION_CTL_UNSET_ACTIVE 
RARCH_LOCATION_CTL_IS_ACTIVE 

Function Documentation

◆ config_get_location_driver_options()

const char* config_get_location_driver_options ( void  )

config_get_location_driver_options:

Get an enumerated list of all location driver names, separated by '|'.

Returns: string listing of all location driver names, separated by '|'.

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

◆ driver_location_get_position()

bool driver_location_get_position ( double *  lat,
double *  lon,
double *  horiz_accuracy,
double *  vert_accuracy 
)

driver_location_get_position: : Latitude of current position. : Longitude of current position. : Horizontal accuracy. : Vertical accuracy.

Gets current positioning information from location driver interface. Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE.

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

Here is the caller graph for this function:

◆ driver_location_set_interval()

void driver_location_set_interval ( unsigned  interval_msecs,
unsigned  interval_distance 
)

driver_location_set_interval: : Interval time in milliseconds. : Distance at which to update.

Sets interval update time for location driver interface. Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE.

Here is the caller graph for this function:

◆ driver_location_start()

bool driver_location_start ( void  )

driver_location_start:

Starts location driver interface.. Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE.

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

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

◆ driver_location_stop()

void driver_location_stop ( void  )

driver_location_stop:

Stops location driver interface.. Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE.

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

Here is the caller graph for this function:

◆ find_location_driver()

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

◆ init_location()

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

◆ location_driver_ctl()

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

◆ location_driver_find_handle()

const void* location_driver_find_handle ( int  idx)

location_driver_find_handle: : index of driver to get handle to.

Returns: handle to location driver at index. Can be NULL if nothing found.

location_driver_find_handle: : index of driver to get handle to.

Returns: handle to location driver at index. Can be NULL if nothing found.

Here is the caller graph for this function:

◆ location_driver_find_ident()

const char* location_driver_find_ident ( int  idx)

location_driver_find_ident: : index of driver to get handle to.

Returns: Human-readable identifier of location driver at index. Can be NULL if nothing found.

location_driver_find_ident: : index of driver to get handle to.

Returns: Human-readable identifier of location driver at index. Can be NULL if nothing found.

Here is the caller graph for this function:

Variable Documentation

◆ location_android

location_driver_t location_android

◆ location_corelocation

location_driver_t location_corelocation

◆ location_null

location_driver_t location_null