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

@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include "dive.h"
#include "gettext.h"
#include "subsurface-string.h"
#include "libdivecomputer.h"
@ -3921,13 +3922,6 @@ struct dive *get_dive(int nr)
return dive_table.dives[nr];
}
struct dive *get_dive_from_table(int nr, const struct dive_table *dt)
{
if (nr >= dt->nr || nr < 0)
return NULL;
return dt->dives[nr];
}
struct dive_site *get_dive_site_for_dive(const struct dive *dive)
{
return dive->dive_site;