diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-05-01 13:43:52 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-01 09:42:31 -0700 |
commit | 95284c026e763482ef581c8b6298012d2c1fd941 (patch) | |
tree | ae00ee0920b3e31991cb324d256ac0c97a5027fd /core/divelist.h | |
parent | c13040798c66c5254fbcc921842cd519da05a4c5 (diff) | |
download | subsurface-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/divelist.h')
-rw-r--r-- | core/divelist.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/divelist.h b/core/divelist.h index 14366f274..e0c0058ad 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -2,15 +2,25 @@ #ifndef DIVELIST_H #define DIVELIST_H -#include "dive.h" +#include "units.h" #ifdef __cplusplus extern "C" { #endif +struct dive; +struct trip_table; +struct dive_site_table; struct deco_state; extern int shown_dives; +struct dive_table { + int nr, allocated; + struct dive **dives; +}; +static const struct dive_table empty_dive_table = { 0, 0, (struct dive **)0 }; +extern struct dive_table dive_table; + /* this is used for both git and xml format */ #define DATAFORMAT_VERSION 3 |