summaryrefslogtreecommitdiffstats
path: root/info.h
diff options
context:
space:
mode:
authorGravatar Michael Andreen <harv@ruin.nu>2013-09-17 21:50:15 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-17 16:48:36 -0400
commit1d76ccb8b9bbcb6e2c98e4faca31ddd5d02050ce (patch)
tree1e71842944843c67d7d9fe1219f26cd782861efe /info.h
parent06dae680e42ebb23b0ca9af0df38cd1a77bfbb0c (diff)
downloadsubsurface-1d76ccb8b9bbcb6e2c98e4faca31ddd5d02050ce.tar.gz
Improved handling of latitude and longitude.
Coordinates are copied when auto-completing location, they are also displayed and editable in maintab. Signed-off-by: Michael Andreen <harv@ruin.nu> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info.h')
-rw-r--r--info.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/info.h b/info.h
index a27373d89..ac8f42d2b 100644
--- a/info.h
+++ b/info.h
@@ -6,6 +6,10 @@
#ifndef INFO_H
#define INFO_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern gboolean gps_changed(struct dive *dive, struct dive *master, const char *gps_text);
extern void print_gps_coordinates(char *buffer, int len, int lat, int lon);
extern void save_equipment_data(struct dive *dive);
@@ -13,8 +17,12 @@ extern void update_equipment_data(struct dive *dive, struct dive *master);
extern void update_time_depth(struct dive *dive, struct dive *edited);
extern const char *get_window_title(struct dive *dive);
extern char *evaluate_string_change(const char *newstring, char **textp, const char *master);
-extern int text_changed(const char *old, const char *new);
+extern int text_changed(const char *old, const char * /*new is a c++ keyword*/);
extern gboolean parse_gps_text(const char *gps_text, double *latitude, double *longitude);
extern int divename(char *buf, size_t size, struct dive *dive, char *trailer);
+#ifdef __cplusplus
+}
+#endif
+
#endif