summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dive.c19
-rw-r--r--dive.h23
2 files changed, 34 insertions, 8 deletions
diff --git a/dive.c b/dive.c
index 9cfdfc14a..3b448e503 100644
--- a/dive.c
+++ b/dive.c
@@ -2259,3 +2259,22 @@ int average_depth(struct diveplan *dive)
return integral / last_time;
}
+
+void picture_load_exif_data(struct picture *p)
+{
+
+}
+
+struct picture* dive_add_picture(struct dive *d, char *picture)
+{
+
+}
+
+uint dive_get_picture_count(struct dive *d)
+{
+}
+
+void dive_remove_picture(struct dive *d, char *picture)
+{
+
+}
diff --git a/dive.h b/dive.h
index 8337ed5e4..e41267e84 100644
--- a/dive.h
+++ b/dive.h
@@ -81,12 +81,6 @@ struct event {
char name[];
};
-/* picture list and methods related to dive picture handling */
-struct picture_list{
- char *filename;
- time_t timestamp;
- struct picture_list *next;
-};
extern int get_pressure_units(int mb, const char **units);
extern double get_depth_units(int mm, int *frac, const char **units);
@@ -255,7 +249,7 @@ typedef struct dive_trip
/* List of dive trips (sorted by date) */
extern dive_trip_t *dive_trip_list;
-
+struct picture;
struct dive {
int number;
tripflag_t tripflag;
@@ -285,9 +279,22 @@ struct dive {
struct tag_entry *tag_list;
struct divecomputer dc;
int id; // unique ID for this dive
- struct picture_list *picture_list;
+ struct picture *picture_list;
+};
+
+/* picture list and methods related to dive picture handling */
+struct picture {
+ char *filename;
+ time_t timestamp;
+ struct picture *next;
};
+extern struct picture *dive_add_picture(struct dive *d, char *picture);
+extern void dive_remove_picture(struct dive *d, char *picture);
+extern uint dive_get_picture_count(struct dive *d);
+extern void picture_load_exif_data(struct picture *p);
+
+
static inline int dive_has_gps_location(struct dive *dive)
{
return dive->latitude.udeg || dive->longitude.udeg;