diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-25 13:32:51 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-25 13:59:52 -0700 |
commit | 17d21dbf40782b6eea58d6a6dffa38a5674cc0e0 (patch) | |
tree | 4e989bd9f0113b66ed05100b7cbdcd48986bef7c /core/divelist.h | |
parent | 0e196310f9cda2ccca27e9cf96186639b5658249 (diff) | |
download | subsurface-17d21dbf40782b6eea58d6a6dffa38a5674cc0e0.tar.gz |
cleanup: move function declarations to divelist.h
unregister_dive() and delete_single_dive are defined in
divelist.c, as they take an "index" argument into the global
divelist. Therefore, move their declarations to divelist.h.
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, 2 insertions, 0 deletions
diff --git a/core/divelist.h b/core/divelist.h index 7a7687293..3d9e841e5 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -68,6 +68,8 @@ int get_dive_id_closest_to(timestamp_t when); void clear_dive_file_data(); void clear_dive_table(struct dive_table *table); void move_dive_table(struct dive_table *src, struct dive_table *dst); +struct dive *unregister_dive(int idx); +extern void delete_single_dive(int idx); #ifdef __cplusplus } |