mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Enable the weightsystem info and move the declarations to dive.h
Having the tank_info declared in models.cpp seemed unintuitive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
641db88a2c
commit
ecbcd4db47
3 changed files with 13 additions and 9 deletions
13
dive.h
13
dive.h
|
@ -726,9 +726,9 @@ void get_gas_string(int o2, int he, char *buf, int len);
|
|||
struct event *get_next_event(struct event *event, char *name);
|
||||
|
||||
|
||||
/* this struct holds the information that
|
||||
* describes the cylinders of air.
|
||||
* it is a global variable initialized in equipment.c
|
||||
/* these structs holds the information that
|
||||
* describes the cylinders / weight systems.
|
||||
* they are global variables initialized in equipment.c
|
||||
* used to fill the combobox in the add/edit cylinder
|
||||
* dialog
|
||||
*/
|
||||
|
@ -737,6 +737,13 @@ struct tank_info {
|
|||
const char *name;
|
||||
int cuft, ml, psi, bar;
|
||||
};
|
||||
extern struct tank_info tank_info[100];
|
||||
|
||||
struct ws_info {
|
||||
const char *name;
|
||||
int grams;
|
||||
};
|
||||
extern struct ws_info ws_info[100];
|
||||
|
||||
extern bool cylinder_nodata(cylinder_t *cyl);
|
||||
extern bool cylinder_none(void *_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue