diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2015-04-03 21:33:10 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-04 10:28:21 -0700 |
commit | e276ec65ba17e9eeea9625796ae5df96e654f65a (patch) | |
tree | 1987778c5ae73600a1e607926e06321cb686160b /libdivecomputer.h | |
parent | a0904fc4d12e6d776fb5c2c0e3b62569b04a540f (diff) | |
download | subsurface-e276ec65ba17e9eeea9625796ae5df96e654f65a.tar.gz |
Add errmsg() function for libdivecomputer.c
Taken as is from libdivecomputer exaples/common.c to improve verbosity
on libdc return codes.
Intended to be used on error messages shown to the user on main window
complementarily to those messages managed by dev_info().
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libdivecomputer.h b/libdivecomputer.h index eaaa998bc..d1e4ad9a4 100644 --- a/libdivecomputer.h +++ b/libdivecomputer.h @@ -41,6 +41,7 @@ typedef struct device_data_t struct dive_table *download_table; } 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); |