mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c4691306c4
commit
5ca49b0460
3 changed files with 33 additions and 0 deletions
1
dive.c
1
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue