summaryrefslogtreecommitdiffstats
path: root/core/equipment.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-03-01 16:26:47 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-07 00:13:34 +0200
commite008b42a591b83eb1304a552fdd950287ddbc375 (patch)
tree59f4cf68e0ff5d854ba91a0891808b6b1a448d7e /core/equipment.h
parentf1e08fd470502e5703a7338d6b5a5130a5f41c14 (diff)
downloadsubsurface-e008b42a591b83eb1304a552fdd950287ddbc375.tar.gz
core: add create_new_cylinder() function
Turn the code in CylindersModel that creates a new cylinder for addition into its own function to avoid code duplication. This will be used from the undo commands. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/equipment.h')
-rw-r--r--core/equipment.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/equipment.h b/core/equipment.h
index 4ed809eff..289eb75a1 100644
--- a/core/equipment.h
+++ b/core/equipment.h
@@ -92,6 +92,7 @@ extern void set_weightsystem(struct dive *dive, int idx, weightsystem_t ws);
extern void reset_cylinders(struct dive *dive, bool track_gas);
extern int gas_volume(const cylinder_t *cyl, pressure_t p); /* Volume in mliter of a cylinder at pressure 'p' */
extern int find_best_gasmix_match(struct gasmix mix, const struct cylinder_table *cylinders);
+extern cylinder_t create_new_cylinder(const struct dive *dive); /* dive is needed to fill out MOD, which depends on salinity. */
#ifdef DEBUG_CYL
extern void dump_cylinders(struct dive *dive, bool verbose);
#endif