summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-12 06:45:56 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-12 10:20:57 -0700
commit57f2c81125f45b1f07122ad9c0295a6c76a5e4fe (patch)
tree933a922d41f9cad47622a5bd8a998c9d402586cc
parent4d06e8f7b520625d743816afbd9e0dc6945a25db (diff)
downloadsubsurface-57f2c81125f45b1f07122ad9c0295a6c76a5e4fe.tar.gz
Add header for Qt helpers used from C functions
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--git-access.c5
-rw-r--r--qthelperfromc.h7
2 files changed, 8 insertions, 4 deletions
diff --git a/git-access.c b/git-access.c
index 8e1d95c28..e6fa4b966 100644
--- a/git-access.c
+++ b/git-access.c
@@ -13,6 +13,7 @@
#include "dive.h"
#include "membuffer.h"
#include "strndup.h"
+#include "qthelperfromc.h"
/*
* The libgit2 people are incompetent at making libraries. They randomly change
@@ -215,10 +216,6 @@ static int check_remote_status(git_repository *repo, git_remote *origin, const c
git_reference_free(remote_ref);
}
-/* from qthelper.cpp */
-extern bool getProxyString(char **proxy_string);
-extern bool canReachCloudServer();
-
static git_repository *update_local_repo(const char *localdir, const char *remote, const char *branch)
{
int error;
diff --git a/qthelperfromc.h b/qthelperfromc.h
new file mode 100644
index 000000000..039d9252d
--- /dev/null
+++ b/qthelperfromc.h
@@ -0,0 +1,7 @@
+#ifndef QTHELPERFROMC_H
+#define QTHELPERFROMC_H
+
+bool getProxyString(char **buffer);
+bool canReachCloudServer();
+
+#endif // QTHELPERFROMC_H