summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index e41267e84..87a786841 100644
--- a/dive.h
+++ b/dive.h
@@ -289,6 +289,9 @@ struct picture {
struct picture *next;
};
+#define FOR_EACH_PICTURE( DIVE ) \
+ for(struct picture *picture = DIVE->picture_list; picture; picture = 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);