Add header for Qt helpers used from C functions

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-12 06:45:56 -07:00
parent 4d06e8f7b5
commit 57f2c81125
2 changed files with 8 additions and 4 deletions

View file

@ -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;

7
qthelperfromc.h Normal file
View file

@ -0,0 +1,7 @@
#ifndef QTHELPERFROMC_H
#define QTHELPERFROMC_H
bool getProxyString(char **buffer);
bool canReachCloudServer();
#endif // QTHELPERFROMC_H