mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Turn latitude and longitude into integer micro-degree values
This actually makes us internally use 'micro-degrees' for latitude and longitude, and we never turn them into floating point either at parse time or save time. That said, the Uemis downloader internally does still use atof() when converting things, which is likely a bug (locale issues and all that), but I'll ask Dirk to check it out. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
708df33539
commit
5e5e3460ac
7 changed files with 72 additions and 19 deletions
3
uemis.h
3
uemis.h
|
|
@ -6,10 +6,11 @@
|
|||
#define UEMIS_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "dive.h"
|
||||
|
||||
void uemis_parse_divelog_binary(char *base64, void *divep);
|
||||
int uemis_get_weight_unit(int diveid);
|
||||
void uemis_mark_divelocation(int diveid, int divespot, char **location, double *longitude, double *latitude);
|
||||
void uemis_mark_divelocation(int diveid, int divespot, char **location, degrees_t *longitude, degrees_t *latitude);
|
||||
void uemis_set_divelocation(int divespot, char *text, double longitude, double latitude);
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue