summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-03-14 10:35:09 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-14 10:49:56 -0700
commitec33a95ad04099d428275de2c6b36e7098cc943e (patch)
tree7790a74518823ea8c636e9658ad9f96eccb0294c /dive.h
parentb5d0cfd557aa94a423e19663339439301ab1a5ae (diff)
downloadsubsurface-ec33a95ad04099d428275de2c6b36e7098cc943e.tar.gz
show the error string in the GUI rather than stderr
This makes the error string just be an internal "membuffer", which the GUI can fetch and show when errors occur. The error string keeps accumulating until somebody retrieves it with "get_error_string()". This should make any write errors actually show up to the user. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 5188184b5..1455bb5df 100644
--- a/dive.h
+++ b/dive.h
@@ -661,6 +661,7 @@ extern "C" {
#endif
extern int report_error(const char *fmt, ...);
+extern const char *get_error_string(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);