Picture handling: switch to stronger typed offset

Also change the on file XML to be even easier to read by making it a
duration as well (which gets us '32:34 min' instead of un-typed seconds).
This is backwards compatible, it will happily read what was written with
the previous commit).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-06-09 09:38:50 -07:00
parent b0983d9d13
commit a26719c541
5 changed files with 9 additions and 9 deletions

2
dive.h
View file

@ -289,7 +289,7 @@ struct dive {
/* picture list and methods related to dive picture handling */
struct picture {
char *filename;
int32_t offset;
duration_t offset;
degrees_t latitude;
degrees_t longitude;
struct picture *next;