From 7d37a3f5a65d03df917e63614a76fb95e8bc966f Mon Sep 17 00:00:00 2001 From: Jan Darowski Date: Sat, 14 Mar 2015 15:35:47 +0100 Subject: Refactored image timestamp checking. Seperated getting image timestamp from picture_load_exif_data() and ShiftImageTimesDialog::syncCameraClicked() into picture_get_timestamp() and seperated checking timestamp from dive_create_picture() to dive_check_picture_time(). Signed-off-by: Jan Darowski Signed-off-by: Dirk Hohndel --- dive.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dive.h') diff --git a/dive.h b/dive.h index 528b45a4b..97d8523e3 100644 --- a/dive.h +++ b/dive.h @@ -381,11 +381,14 @@ struct picture { for (struct picture *picture = (_divestruct).picture_list; picture; picture = picture->next) extern struct picture *alloc_picture(); +extern bool dive_check_picture_time(struct dive *d, char *filename, int shift_time); extern void dive_create_picture(struct dive *d, char *filename, int shift_time); 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 void picture_load_exif_data(struct picture *p, timestamp_t *timestamp); +extern bool picture_check_valid(char *filename, int shift_time); +extern void picture_load_exif_data(struct picture *p); +extern void picture_get_timestamp(char *filename, timestamp_t *t); extern void dive_set_geodata_from_picture(struct dive *d, struct picture *pic); extern int explicit_first_cylinder(struct dive *dive, struct divecomputer *dc); -- cgit v1.2.3-70-g09d2