summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2017-02-21 10:00:16 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-21 13:14:56 -0800
commitdbd99f706ecb6074d5f80573a881b98a3e30ce25 (patch)
tree8acf5a2ce48e6a148cd9ebd6761faa97f3df1869 /core/dive.h
parent508387b1e194d4d723b2bd8cb2c48d49e2c95ba9 (diff)
downloadsubsurface-dbd99f706ecb6074d5f80573a881b98a3e30ce25.tar.gz
Many filenames are const strings
So we can use string constants for those Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/dive.h b/core/dive.h
index 4608e9d71..ecb3240c1 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -400,13 +400,13 @@ struct picture {
extern struct picture *alloc_picture();
extern struct picture *clone_picture(struct picture *src);
extern bool dive_check_picture_time(struct dive *d, int shift_time, timestamp_t timestamp);
-extern void dive_create_picture(struct dive *d, char *filename, int shift_time, bool match_all);
+extern void dive_create_picture(struct dive *d, const char *filename, int shift_time, bool match_all);
extern void dive_add_picture(struct dive *d, struct picture *newpic);
extern void dive_remove_picture(char *filename);
extern unsigned int dive_get_picture_count(struct dive *d);
-extern bool picture_check_valid(char *filename, int shift_time);
+extern bool picture_check_valid(const char *filename, int shift_time);
extern void picture_load_exif_data(struct picture *p);
-extern timestamp_t picture_get_timestamp(char *filename);
+extern timestamp_t picture_get_timestamp(const char *filename);
extern void dive_set_geodata_from_picture(struct dive *d, struct picture *pic);
extern void picture_free(struct picture *picture);