summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-12-11 22:30:57 +0100
committerGravatar Robert C. Helling <helling@atdotde.de>2018-12-13 08:11:22 +0100
commit3cdc2661d2a2417e557042abe1a0d9e5107822eb (patch)
tree1862bc03bac773087093663e76372b72fc08603f /core/dive.h
parent09a9fa1ae51bbca3246fb256f5acc2ace0b2b148 (diff)
downloadsubsurface-3cdc2661d2a2417e557042abe1a0d9e5107822eb.tar.gz
Dive media: add media to closest dive
Currently, when selecting "Load media files even if time does not match the dive time", the media are added to *all* selected dives. Instead add it to the closest dive. This seems like the less surprising behavior. Of course now if the user really wants to add a media file to multiple dives, they will have to do it manually. To avoid a messy interface, this is solved by moving the iterate- over-selected-dives loop to the core. Thus, a helper-function can be made local to its translation unit. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/dive.h b/core/dive.h
index 92bb1bb33..19c39214f 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -376,8 +376,7 @@ struct picture {
extern struct picture *alloc_picture();
extern void free_picture(struct picture *picture);
-extern bool dive_check_picture_time(const struct dive *d, int shift_time, timestamp_t timestamp);
-extern void dive_create_picture(struct dive *d, const char *filename, int shift_time, bool match_all);
+extern void create_picture(const char *filename, int shift_time, bool match_all);
extern void dive_add_picture(struct dive *d, struct picture *newpic);
extern bool dive_remove_picture(struct dive *d, const char *filename);
extern unsigned int dive_get_picture_count(struct dive *d);