aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-core')
-rw-r--r--subsurface-core/dive.h1
-rw-r--r--subsurface-core/save-git.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/subsurface-core/dive.h b/subsurface-core/dive.h
index cef1106fd..3ff262e96 100644
--- a/subsurface-core/dive.h
+++ b/subsurface-core/dive.h
@@ -637,6 +637,7 @@ extern "C" {
#endif
extern int report_error(const char *fmt, ...);
+extern void report_message(const char *msg);
extern const char *get_error_string(void);
extern struct dive *find_dive_including(timestamp_t when);
diff --git a/subsurface-core/save-git.c b/subsurface-core/save-git.c
index 69ad0726d..d3601a272 100644
--- a/subsurface-core/save-git.c
+++ b/subsurface-core/save-git.c
@@ -445,6 +445,11 @@ int report_error(const char *fmt, ...)
return -1;
}
+void report_message(const char *msg)
+{
+ (void)report_error("%s", msg);
+}
+
/*
* libgit2 has a "git_treebuilder" concept, but it's broken, and can not
* be used to do a flat tree (like the git "index") nor a recursive tree.