diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-10-26 14:37:29 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-26 14:37:39 +0200 |
commit | eccd4b993a7cc47e96ddab486197570c38f21701 (patch) | |
tree | 5680d3bc73336019607c6c6bf81febaeb3bb355e /core/dive.h | |
parent | 6ec7d2d87764e25d58dcb7ffdcb02b58bcce18d8 (diff) | |
download | subsurface-eccd4b993a7cc47e96ddab486197570c38f21701.tar.gz |
Set error callback helper
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h index 64dee5196..f72aaf1d5 100644 --- a/core/dive.h +++ b/core/dive.h @@ -698,6 +698,7 @@ extern "C" { extern int report_error(const char *fmt, ...); extern void report_message(const char *msg); extern const char *get_error_string(void); +extern void set_error_cb(void(*cb)(void)); extern struct dive *find_dive_including(timestamp_t when); extern bool dive_within_time_range(struct dive *dive, timestamp_t when, timestamp_t offset); |