aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/schedule.h
diff options
context:
space:
mode:
authorGravatar Tim Segers <tsegers@pm.me>2022-10-02 15:58:33 +0200
committerGravatar Tim Segers <tsegers@pm.me>2022-10-02 16:28:41 +0200
commit104aff651d31d66e8e0375bbfdf78eba673b174d (patch)
tree3b6a42d77540457a8ac57b3d3c579a21cc0d4e25 /schedule.h
parentcd8bc129b63fcd148ccc6516cbb52278853fbabc (diff)
downloadopendeco-104aff651d31d66e8e0375bbfdf78eba673b174d.tar.gz
Collapse consecutive SEG_TRAVEL segments
Diffstat (limited to 'schedule.h')
-rw-r--r--schedule.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/schedule.h b/schedule.h
index 63de45f..f2e6363 100644
--- a/schedule.h
+++ b/schedule.h
@@ -26,7 +26,7 @@ typedef enum segtype_t {
SEG_TRAVEL,
} segtype_t;
-typedef void (*segment_callback_t)(const decostate_t *ds, const waypoint_t, const segtype_t);
+typedef void (*waypoint_callback_t)(const decostate_t *ds, const waypoint_t, const segtype_t);
const gas_t *best_gas(const double depth, const gas_t *gasses, const int nof_gasses);
const gas_t *next_gas(const double depth, const gas_t *gasses, const int nof_gasses);
@@ -34,9 +34,9 @@ const gas_t *next_gas(const double depth, const gas_t *gasses, const int nof_gas
int direct_ascent(const decostate_t *ds, const double depth, const double time, const gas_t *gas);
double calc_ndl(decostate_t *ds, const double depth, const double ascrate, const gas_t *gas);
-void simulate_dive(decostate_t *ds, waypoint_t *waypoints, const int nof_waypoints, segment_callback_t seg_cb);
+void simulate_dive(decostate_t *ds, waypoint_t *waypoints, const int nof_waypoints, waypoint_callback_t wp_cb);
decoinfo_t calc_deco(decostate_t *ds, const double start_depth, const gas_t *start_gas, const gas_t *deco_gasses,
- const int nof_gasses, segment_callback_t seg_cb);
+ const int nof_gasses, waypoint_callback_t wp_cb);
#endif /* end of include guard: SCHEDULE_H */