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>
This commit is contained in:
Linus Torvalds 2011-08-30 20:54:43 -07:00
parent 0ca546b31e
commit 3aa02ccba9
2 changed files with 25 additions and 0 deletions

1
dive.h
View file

@ -101,6 +101,7 @@ struct sample {
};
struct dive {
const char *name;
time_t when;
depth_t maxdepth, meandepth;
duration_t duration, surfacetime;