RetroArch
|
#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"
Functions | |
const void * | location_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_t * | location_drivers [] |
static const location_driver_t * | location_driver |
static void * | location_data |
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 '|'.
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).
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.
driver_location_start:
Starts location driver interface.. Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE.
Returns: true (1) if successful, otherwise false (0).
driver_location_stop:
Stops location driver interface.. Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE.
Returns: true (1) if successful, otherwise false (0).
bool location_driver_ctl | ( | enum rarch_location_ctl_state | state, |
void * | data | ||
) |
location_driver_find_handle: : index of driver to get handle to.
Returns: handle to location driver at index. Can be NULL if nothing found.
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.
|
static |
|
static |
|
static |