RetroArch
Functions | Variables
location_driver.c File Reference
#include <string.h>
#include "location_driver.h"
#include "../configuration.h"
#include "../core.h"
#include "../driver.h"
#include "../retroarch.h"
#include "../list_special.h"
#include "../verbosity.h"
Include dependency graph for location_driver.c:

Functions

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

Variables

static const location_driver_tlocation_drivers []
 
static const location_driver_tlocation_driver
 
static voidlocation_data
 

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.

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.

Here is the caller graph for this function:

◆ uninit_location()

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

Variable Documentation

◆ location_data

void* location_data
static

◆ location_driver

◆ location_drivers

const location_driver_t* location_drivers[]
static
Initial value:
= {
}
location_driver_t location_null
Definition: nulllocation.c:56
#define NULL
Pointer to 0.
Definition: gctypes.h:65