This commit is contained in:
twinaphex 2019-07-14 18:56:18 +02:00
parent d80b85b158
commit cd244371b9
2 changed files with 4 additions and 51 deletions

View File

@ -15712,7 +15712,7 @@ static void find_location_driver(void)
* *
* Returns: true (1) if successful, otherwise false (0). * Returns: true (1) if successful, otherwise false (0).
**/ **/
bool driver_location_start(void) static bool driver_location_start(void)
{ {
if (location_driver && location_data && location_driver->start) if (location_driver && location_data && location_driver->start)
{ {
@ -15733,7 +15733,7 @@ bool driver_location_start(void)
* *
* Returns: true (1) if successful, otherwise false (0). * Returns: true (1) if successful, otherwise false (0).
**/ **/
void driver_location_stop(void) static void driver_location_stop(void)
{ {
if (location_driver && location_driver->stop && location_data) if (location_driver && location_driver->stop && location_data)
location_driver->stop(location_data); location_driver->stop(location_data);
@ -15747,7 +15747,7 @@ void driver_location_stop(void)
* Sets interval update time for location driver interface. * Sets interval update time for location driver interface.
* Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE. * Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE.
**/ **/
void driver_location_set_interval(unsigned interval_msecs, static void driver_location_set_interval(unsigned interval_msecs,
unsigned interval_distance) unsigned interval_distance)
{ {
if (location_driver && location_driver->set_interval if (location_driver && location_driver->set_interval
@ -15769,7 +15769,7 @@ void driver_location_set_interval(unsigned interval_msecs,
* *
* Returns: bool (1) if successful, otherwise false (0). * Returns: bool (1) if successful, otherwise false (0).
**/ **/
bool driver_location_get_position(double *lat, double *lon, static bool driver_location_get_position(double *lat, double *lon,
double *horiz_accuracy, double *vert_accuracy) double *horiz_accuracy, double *vert_accuracy)
{ {
if (location_driver && location_driver->get_position if (location_driver && location_driver->get_position

View File

@ -2070,53 +2070,6 @@ extern location_driver_t location_corelocation;
extern location_driver_t location_android; extern location_driver_t location_android;
extern location_driver_t location_null; extern location_driver_t location_null;
/**
* driver_location_start:
*
* Starts location driver interface..
* Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE.
*
* Returns: true (1) if successful, otherwise false (0).
**/
bool driver_location_start(void);
/**
* driver_location_stop:
*
* Stops location driver interface..
* Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE.
*
* Returns: true (1) if successful, otherwise false (0).
**/
void driver_location_stop(void);
/**
* driver_location_get_position:
* @lat : Latitude of current position.
* @lon : Longitude of current position.
* @horiz_accuracy : Horizontal accuracy.
* @vert_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).
**/
bool driver_location_get_position(double *lat, double *lon,
double *horiz_accuracy, double *vert_accuracy);
/**
* driver_location_set_interval:
* @interval_msecs : Interval time in milliseconds.
* @interval_distance : Distance at which to update.
*
* Sets interval update time for location driver interface.
* Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE.
**/
void driver_location_set_interval(unsigned interval_msecs,
unsigned interval_distance);
/** /**
* config_get_location_driver_options: * config_get_location_driver_options:
* *