diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-07-17 21:16:50 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-18 10:13:52 -0700 |
commit | 7806dbbd9edd429a82bed5d98f8750db0900d83a (patch) | |
tree | 051a8a1fbe0a537a8065bf016e1a6db1e4bc34c3 /planner.h | |
parent | 9eeeba468a5b4913cf889801690dc3aa834c7780 (diff) | |
download | subsurface-7806dbbd9edd429a82bed5d98f8750db0900d83a.tar.gz |
Convert get_gas_from_events to get_gas_at_time
This converts the get_gas_from_events to a get_gas_at_time function that
actually maps our events to what cylinder and thus gas we are breathing
at that time.
[Dirk Hohndel: fixed to actually use the gas that was looked up
(and make things compile)]
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.h')
-rw-r--r-- | planner.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -15,7 +15,7 @@ extern void set_verbatim(bool verbatim); extern void set_display_runtime(bool display); extern void set_display_duration(bool display); extern void set_display_transitions(bool display); -extern void get_gas_from_events(struct divecomputer *dc, duration_t time, struct gasmix *gas); +extern void get_gas_at_time(struct dive *dive, struct divecomputer *dc, duration_t time, struct gasmix *gas); extern int get_gasidx(struct dive *dive, struct gasmix *mix); extern bool diveplan_empty(struct diveplan *diveplan); |