aboutsummaryrefslogtreecommitdiffstats
path: root/libdivecomputer.h
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2015-04-04 00:51:38 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-04 10:31:43 -0700
commit094d0d96997a89601a82c98bb084089355e59446 (patch)
tree3f4b09a3f6299d9f1da4643de2fc851254810a1b /libdivecomputer.h
parent0fe21637ad753a87dc0dc4d44564a613b2b693d2 (diff)
downloadsubsurface-094d0d96997a89601a82c98bb084089355e59446.tar.gz
libdivecomputer.c: Add support for raw data buffer parse using libdc
Add function libdc_buffer_parser() intended to parse raw data buffers prepared for libdivecomputer. We have to commit elsewhere the necesary assembly tasks to achieve consistent data. Actually only OSTCTools import makes use of this feature. Uwatec families have been included as I expect to make use of this function for sample parsing in datatrak import (and, may be in a far future, smartrak). Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.h')
-rw-r--r--libdivecomputer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdivecomputer.h b/libdivecomputer.h
index d1e4ad9a4..2e4fb9aab 100644
--- a/libdivecomputer.h
+++ b/libdivecomputer.h
@@ -44,6 +44,7 @@ typedef struct device_data_t
const char *errmsg (dc_status_t rc);
const char *do_libdivecomputer_import(device_data_t *data);
const char *do_uemis_import(device_data_t *data);
+dc_status_t libdc_buffer_parser(struct dive *dive, device_data_t *data, unsigned char *buffer, int size);
extern int import_thread_cancelled;
extern const char *progress_bar_text;