aboutsummaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-08-30 20:54:43 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-08-30 20:54:43 -0700
commit3aa02ccba93648f2decab899a5b9c42b6bcea9bf (patch)
tree359cefd9120385d3ccf94cb8ed448f9e99453652 /dive.h
parent0ca546b31e5527713f11676bc965aa1ed8dac619 (diff)
downloadsubsurface-3aa02ccba93648f2decab899a5b9c42b6bcea9bf.tar.gz
Generate a default name for a dive, if it doesn't have one already
The name is a string containint date, time, depth and length. So it's useful even with nothing else going on. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 53ecdfe00..ba9f66882 100644
--- a/dive.h
+++ b/dive.h
@@ -101,6 +101,7 @@ struct sample {
};
struct dive {
+ const char *name;
time_t when;
depth_t maxdepth, meandepth;
duration_t duration, surfacetime;