mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
0e196310f9
commit
17d21dbf40
3 changed files with 6 additions and 3 deletions
|
@ -127,9 +127,6 @@ extern depth_t gas_mnd(struct gasmix mix, depth_t end, const struct dive *dive,
|
|||
|
||||
extern bool autogroup;
|
||||
|
||||
struct dive *unregister_dive(int idx);
|
||||
extern void delete_single_dive(int idx);
|
||||
|
||||
extern int quit, force_root, ignore_bt;
|
||||
#ifdef SUBSURFACE_MOBILE_DESKTOP
|
||||
extern char *testqml;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
#include "git2.h"
|
||||
#include "filterpreset.h"
|
||||
|
||||
struct dive_table;
|
||||
struct dive_site_table;
|
||||
struct trip_table;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue