summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-05-01 13:43:52 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-01 09:42:31 -0700
commit95284c026e763482ef581c8b6298012d2c1fd941 (patch)
treeae00ee0920b3e31991cb324d256ac0c97a5027fd /core/dive.h
parentc13040798c66c5254fbcc921842cd519da05a4c5 (diff)
downloadsubsurface-95284c026e763482ef581c8b6298012d2c1fd941.tar.gz
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>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/core/dive.h b/core/dive.h
index c9369885a..c908750d3 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -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;