subsurface/core/divesitehelpers.h
Berthold Stoeger ad57871a2c Geo lookup: don't pass arguments / result via global object
The reverseGeoLookup() fetches dive-site data via GPS coordinates.
The coordinates and the result were passed via the global
"displayed_dive_site" object. To make data-flow more clear,
pass data as in and out parameters instead.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-10-11 16:25:02 -07:00

12 lines
392 B
C

// SPDX-License-Identifier: GPL-2.0
#ifndef DIVESITEHELPERS_H
#define DIVESITEHELPERS_H
#include "taxonomy.h"
#include "units.h"
// Perform a reverse geo-lookup and put data in the provided taxonomy field.
// Original data with the exception of OCEAN will be overwritten.
void reverseGeoLookup(degrees_t latitude, degrees_t longitude, taxonomy_data *taxonomy);
#endif // DIVESITEHELPERS_H