mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
c13040798c
commit
95284c026e
34 changed files with 54 additions and 23 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue