From f53788e5e4066f0ef36041031de6bc2726274fc9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 10 Nov 2012 19:18:10 +0100 Subject: Add support for obtaining salinity from libdivecomputer This requires a patched libdivecomputer that can return salinity of the water the dive was conducted in. Experimental patches exist that implement this for the OSTC. The code is designed so that it simply defaults to salt water if libdivecomputer doesn't include the feature. The patch also fixes the dive merge code to merge two other recent additions to the dive structure (surface_pressure and visibility). Signed-off-by: Dirk Hohndel --- dive.h | 1 + 1 file changed, 1 insertion(+) (limited to 'dive.h') diff --git a/dive.h b/dive.h index d303c81b7..1e54e1273 100644 --- a/dive.h +++ b/dive.h @@ -267,6 +267,7 @@ struct dive { int rating; double latitude, longitude; depth_t maxdepth, meandepth; + int salinity; // kg per 10000 l duration_t duration, surfacetime; int visibility; /* 0 - 5 star rating */ temperature_t airtemp, watertemp; -- cgit v1.2.3-70-g09d2