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:
Dirk Hohndel 2013-05-23 18:38:45 -07:00
parent 641db88a2c
commit ecbcd4db47
3 changed files with 13 additions and 9 deletions

13
dive.h
View file

@ -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);