cleanup: move dive_table from dive.h to divelist.h

This allows us to decouple dive.h and divelist.h, a small step in
include disentangling.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-05-01 13:43:52 +02:00 committed by Dirk Hohndel
parent c13040798c
commit 95284c026e
34 changed files with 54 additions and 23 deletions

View file

@ -128,16 +128,10 @@ struct divecomputer {
struct divecomputer *next;
};
typedef struct dive_table {
int nr, allocated;
struct dive **dives;
} dive_table_t;
static const dive_table_t empty_dive_table = { 0, 0, (struct dive **)0 };
struct picture;
struct dive_site;
struct dive_site_table;
struct dive_table;
struct dive_trip;
struct trip_table;
struct full_text_cache;
@ -248,7 +242,6 @@ extern int quit, force_root, ignore_bt;
extern char *testqml;
#endif
extern struct dive_table dive_table;
extern struct dive displayed_dive;
extern unsigned int dc_number;
extern struct dive *current_dive;