summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-10-25 00:29:19 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-10-25 01:05:08 -0700
commit5ca49b0460f36ac969b7ef388f586782d584b36d (patch)
treea5f78fbfd004d9823680a752adb32c84799f6b00 /dive.c
parentc4691306c40dedc61110174dde15310c359abb6a (diff)
downloadsubsurface-5ca49b0460f36ac969b7ef388f586782d584b36d.tar.gz
Remember the event names as we encounter them
First step to being able to filter the events that we display in the profile. We could (in theory) walk all the dives in the divelist when we need this data, but it seems much more convenient to have them in an array in one place. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.c b/dive.c
index b57205bc5..ed3908928 100644
--- a/dive.c
+++ b/dive.c
@@ -26,6 +26,7 @@ void add_event(struct dive *dive, int time, int type, int flags, int value, cons
while (*p)
p = &(*p)->next;
*p = ev;
+ remember_event(name);
}
double get_depth_units(unsigned int mm, int *frac, const char **units)