summaryrefslogtreecommitdiffstats
path: root/core/configuredivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2017-05-07 12:46:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-07 07:48:12 -0700
commit47dcc964b85da70b1556d36d733b219d05e6161a (patch)
treee97dafda3eeacd45771db3513da7befd9709e603 /core/configuredivecomputer.cpp
parent618cd3fab42995c8adf2dc0daf550f374794309d (diff)
downloadsubsurface-47dcc964b85da70b1556d36d733b219d05e6161a.tar.gz
Datatrak import rework: main functions
datatrak_import() is the main function called from parse_file(), but dt_dive_parser() is where the hard work is done, for both, drop file seeking/reading and use memory pointers instead. datatrak_import() now returns 0 on success or 1 on failure and abort import if parser function fails instead of keeping on trying. dt_dive_parser() emits a warning if libdc_model is zero (manual dives). Do not parse profiles if libdc_model is zero, for unknown models we set a fake 0xEE value coverted to Aladin Air X/Z libdc model number. Func now takes a pointer to a buffer and moves along the dive, when done returns a pointer to the actual memory position or NULL if something went wrong. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Diffstat (limited to 'core/configuredivecomputer.cpp')
0 files changed, 0 insertions, 0 deletions