diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-03-12 00:25:31 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | 59e602447b951cfdfabd8f0a067dfb8c804ee506 (patch) | |
tree | 0c36803d41b76951058999db481100f131198936 /core/divelist.h | |
parent | 84f7179367e4638a323f4bd14990711c84b56ffb (diff) | |
download | subsurface-59e602447b951cfdfabd8f0a067dfb8c804ee506.tar.gz |
Dive site: inform model of dive site addition / deletion
Introduce two DiveListNotifier signals which are sent by
the undo commands if dives are added to / removed from the
core.
The signal has the dive site and the index in the global
dive site table as payload. Thus, the model has only to
remove the appropriate rows.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.h')
-rw-r--r-- | core/divelist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divelist.h b/core/divelist.h index befbc780a..c09b8651a 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -38,7 +38,7 @@ extern void add_single_dive(int idx, struct dive *dive); extern void get_dive_gas(const struct dive *dive, int *o2_p, int *he_p, int *o2low_p); extern int get_divenr(const struct dive *dive); extern struct dive_trip *unregister_dive_from_trip(struct dive *dive); -extern void remove_dive(const struct dive *dive, struct dive_table *table); +extern int remove_dive(const struct dive *dive, struct dive_table *table); extern void remove_dive_from_trip(struct dive *dive, struct trip_table *trip_table_arg); extern dive_trip_t *alloc_trip(void); extern dive_trip_t *create_trip_from_dive(struct dive *dive); |