From ff5bd062f67e36a3eb20013e40e4e54822b446bf Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 18 Nov 2015 18:52:44 -0800 Subject: Location service: instantiate location provider in the desktop UI We still aren't doing anything with it, but at least it's there now. Signed-off-by: Dirk Hohndel --- subsurface-core/dive.h | 1 + subsurface-core/save-git.c | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'subsurface-core') 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. -- cgit v1.2.3-70-g09d2