summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/dimension/error.h')
-rw-r--r--libdimension/dimension/error.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libdimension/dimension/error.h b/libdimension/dimension/error.h
index cc38d65..caee303 100644
--- a/libdimension/dimension/error.h
+++ b/libdimension/dimension/error.h
@@ -54,4 +54,12 @@ void dmnsn_report_error(dmnsn_severity severity,
dmnsn_severity dmnsn_get_resilience();
void dmnsn_set_resilience(dmnsn_severity resilience);
+/* Fatal error callback type */
+typedef void dmnsn_fatal_error_fn();
+
+/* Get and set libdimension fatal error handling strategy - the default is
+ exit(EXIT_FAILURE) */
+dmnsn_fatal_error_fn *dmnsn_get_fatal_error_fn();
+void dmnsn_set_fatal_error_fn(dmnsn_fatal_error_fn *fatal);
+
#endif /* DIMENSION_ERROR_H */