diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-22 10:02:28 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-22 10:12:15 -0700 |
commit | 56c58bdd24451352e1f2a538c145f865b2546ac2 (patch) | |
tree | d34ad1da063dc337161d3e4d988ae5016fbdfc30 /dive.h | |
parent | d6bee060afaaf54b731c1e27b130089ebb5a9e40 (diff) | |
download | subsurface-56c58bdd24451352e1f2a538c145f865b2546ac2.tar.gz |
Actually remove cylinders and weightsystems from the data structures
The UI had only stubbed this code out. This adds the implementation of the
helpers and calls them.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -155,12 +155,6 @@ typedef struct { const char *description; /* "integrated", "belt", "ankle" */ } weightsystem_t; -extern bool cylinder_nodata(cylinder_t *cyl); -extern bool cylinder_none(void *_data); -extern bool weightsystem_none(void *_data); -extern bool no_weightsystems(weightsystem_t *ws); -extern bool weightsystems_equal(weightsystem_t *ws1, weightsystem_t *ws2); - extern int get_pressure_units(unsigned int mb, const char **units); extern double get_depth_units(unsigned int mm, int *frac, const char **units); extern double get_volume_units(unsigned int ml, int *frac, const char **units); @@ -743,6 +737,14 @@ struct tank_info { int cuft, ml, psi, bar; }; +extern bool cylinder_nodata(cylinder_t *cyl); +extern bool cylinder_none(void *_data); +extern bool weightsystem_none(void *_data); +extern bool no_weightsystems(weightsystem_t *ws); +extern bool weightsystems_equal(weightsystem_t *ws1, weightsystem_t *ws2); +extern void remove_cylinder(struct dive *dive, int idx); +extern void remove_weightsystem(struct dive *dive, int idx); + #ifdef __cplusplus } #endif |