mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
4b12f28ca4
- remove the build flags and libraries from the Makefile / Configure.mk - remove the glib types (gboolean, gchar, gint64, gint) - comment out / hack around gettext - replace the glib file helper functions - replace g_ascii_strtod - replace g_build_filename - use environment variables instead of g_get_home_dir() & g_get_user_name() - comment out GPS string parsing (uses glib utf8 macros) This needs massive cleanup, but it's a snapshot of what I have right now, in case people want to look at it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
28 lines
926 B
C
28 lines
926 B
C
/*
|
|
* info.h
|
|
*
|
|
* logic functions used from info-gtk.c
|
|
*/
|
|
#ifndef INFO_H
|
|
#define INFO_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern bool 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);
|
|
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 is a c++ keyword*/);
|
|
extern bool 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
|