From 4a78f5798ac23d5742e47a2aa99c81493d6b280d Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 13 Jun 2020 15:42:11 +0200 Subject: includes: move declaration of set_filename() from dive.h to qthelper.h Declare the function in the header file corresponding to the source file where the function is defined. Signed-off-by: Berthold Stoeger --- core/dive.h | 1 - core/qthelper.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dive.h b/core/dive.h index e12f8f7f5..ff77edac5 100644 --- a/core/dive.h +++ b/core/dive.h @@ -278,7 +278,6 @@ extern int match_one_dc(const struct divecomputer *a, const struct divecomputer extern void parse_xml_init(void); extern int parse_xml_buffer(const char *url, const char *buf, int size, struct dive_table *table, struct trip_table *trips, struct dive_site_table *sites, const char **params); extern void parse_xml_exit(void); -extern void set_filename(const char *filename); extern int save_dives(const char *filename); extern int save_dives_logic(const char *filename, bool select_only, bool anonymize); diff --git a/core/qthelper.h b/core/qthelper.h index 16303fe7d..b703a38b4 100644 --- a/core/qthelper.h +++ b/core/qthelper.h @@ -138,6 +138,7 @@ bool canReachCloudServer(); void updateWindowTitle(); void subsurface_mkdir(const char *dir); char *get_file_name(const char *fileName); +void set_filename(const char *filename); void copy_image_and_overwrite(const char *cfileName, const char *path, const char *cnewName); char *move_away(const char *path); const char *local_file_path(struct picture *picture); -- cgit v1.2.3-70-g09d2