Set error callback helper

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-10-26 14:37:29 +02:00
parent 6ec7d2d877
commit eccd4b993a
2 changed files with 10 additions and 0 deletions

View file

@ -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);