diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2017-05-07 12:46:23 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-07 07:48:12 -0700 |
commit | 47dcc964b85da70b1556d36d733b219d05e6161a (patch) | |
tree | e97dafda3eeacd45771db3513da7befd9709e603 /core/divesitehelpers.cpp | |
parent | 618cd3fab42995c8adf2dc0daf550f374794309d (diff) | |
download | subsurface-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/divesitehelpers.cpp')
0 files changed, 0 insertions, 0 deletions