core: move get_dive_gas() to struct dive

It is unclear why this was declared in divelist.h.

Moreover, rename it to get_maximal_gas() to better reflect
what it does.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-06-24 21:04:31 +02:00 committed by bstoeger
parent 4d7291d4a1
commit 3aab33ba4c
8 changed files with 44 additions and 48 deletions

View file

@ -51,8 +51,6 @@ private:
/* this is used for both git and xml format */
#define DATAFORMAT_VERSION 3
extern void get_dive_gas(const struct dive *dive, int *o2_p, int *he_p, int *o2low_p);
int get_min_datafile_version();
void report_datafile_version(int version);
void clear_dive_file_data();