summaryrefslogtreecommitdiffstats
path: root/commands/command.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-03-04 21:10:05 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-07 00:13:35 +0200
commit0bd821183d715f709d378e8ac1a75aa0c3d0f2cc (patch)
treee6d182e6922d7c06bf09b17c9c953f8b5dc78e85 /commands/command.h
parentc585fd9f8ee0c1f27f997b4e19984b50d150f6cb (diff)
downloadsubsurface-0bd821183d715f709d378e8ac1a75aa0c3d0f2cc.tar.gz
undo: implement gas switch
This is a bit hairy as - in theory - one gas switch can remove other gas switch(es) at the same timestamp. However, I did not find a way to test it. Moreover, it is not clear whether the dive-tabs are properly updated on undo/redo. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'commands/command.h')
-rw-r--r--commands/command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/command.h b/commands/command.h
index 82931747c..66122ac99 100644
--- a/commands/command.h
+++ b/commands/command.h
@@ -111,6 +111,7 @@ void addEventDivemodeSwitch(struct dive *d, int dcNr, int seconds, int divemode)
void addEventSetpointChange(struct dive *d, int dcNr, int seconds, pressure_t pO2);
void renameEvent(struct dive *d, int dcNr, struct event *ev, const char *name);
void removeEvent(struct dive *d, int dcNr, struct event *ev);
+void addGasSwitch(struct dive *d, int dcNr, int seconds, int tank);
} // namespace Command