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

@ -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