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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue