mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
undo: add device related undo commands
Add commands for deleting devices and editing device nicknames to include the device-handling in the undo system. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
572e2678a0
commit
faebb53909
9 changed files with 140 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ extern void add_devices_of_dive(const struct dive *dive, struct device_table *ta
|
|||
extern void create_device_node(struct device_table *table, const char *model, uint32_t deviceid, const char *serial, const char *firmware, const char *nickname);
|
||||
extern int nr_devices(const struct device_table *table);
|
||||
extern const struct device *get_device(const struct device_table *table, int i);
|
||||
extern struct device *get_device_mutable(struct device_table *table, int i);
|
||||
extern void clear_device_table(struct device_table *table);
|
||||
const char *get_dc_nickname(const struct divecomputer *dc);
|
||||
extern bool device_used_by_selected_dive(const struct device *dev);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue