summaryrefslogtreecommitdiffstats
path: root/core/equipment.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-03 15:04:48 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-05 10:14:25 -0800
commitb3f530bfb9d099414d833e7b0eb8c71cb3780eca (patch)
tree879112df23e236e93e80cf4a726504fb7dccf09c /core/equipment.h
parentb3253304a59b85c76f8a70f20ada4139e715a5b3 (diff)
downloadsubsurface-b3f530bfb9d099414d833e7b0eb8c71cb3780eca.tar.gz
Undo: make weight-deletion an undoable action
This one is a bit more complicated than weight adding, because the multiple-dive case is not well defined. If multiple dives are selected, this implementation will search for weights that are identical to the weight deleted in the currently shown dive. The position of the weight in the list is ignored. 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 86e23f9f8..687e794a5 100644
--- a/core/equipment.h
+++ b/core/equipment.h
@@ -67,6 +67,7 @@ struct weightsystem_table {
extern int cylinderuse_from_text(const char *text);
extern void copy_weights(const struct weightsystem_table *s, struct weightsystem_table *d);
+extern weightsystem_t clone_weightsystem(weightsystem_t ws);
extern void copy_cylinder_types(const struct dive *s, struct dive *d);
extern void add_cloned_weightsystem(struct weightsystem_table *t, weightsystem_t ws);
extern cylinder_t *add_empty_cylinder(struct cylinder_table *t);