Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2017-12-15 13:07:53 +0300
committerDominik Schmidt <dev@dominik-schmidt.de>2018-01-13 15:58:17 +0300
commit776bbbf7b16ba2e30ad4de265d856445caf01e16 (patch)
tree9d86fb59d97848e9ab456ea3d9b2acd5dc960fab
parentf326bf371d690f1929f7c5c06aebf53c7255daa6 (diff)
Don't include sqlite3.h from headers
So that sqlite is not part of the public interface of csync (and that the sqlite include path don't need to be passed when compiling libsync or gui)
-rw-r--r--src/common/ownsql.cpp1
-rw-r--r--src/common/ownsql.h5
-rw-r--r--src/common/syncjournaldb.cpp1
-rw-r--r--src/csync/csync_private.h1
-rw-r--r--src/gui/socketapi.cpp2
-rw-r--r--test/csync/csync_tests/check_csync_update.cpp1
6 files changed, 6 insertions, 5 deletions
diff --git a/src/common/ownsql.cpp b/src/common/ownsql.cpp
index c4277a130..bcd9dd6b0 100644
--- a/src/common/ownsql.cpp
+++ b/src/common/ownsql.cpp
@@ -26,6 +26,7 @@
#include "ownsql.h"
#include "common/utility.h"
#include "common/asserts.h"
+#include <sqlite3.h>
#define SQLITE_SLEEP_TIME_USEC 100000
#define SQLITE_REPEAT_COUNT 20
diff --git a/src/common/ownsql.h b/src/common/ownsql.h
index bfff4b65d..1ad7e93b7 100644
--- a/src/common/ownsql.h
+++ b/src/common/ownsql.h
@@ -19,13 +19,14 @@
#ifndef OWNSQL_H
#define OWNSQL_H
-#include <sqlite3.h>
-
#include <QObject>
#include <QVariant>
#include "ocsynclib.h"
+struct sqlite3;
+struct sqlite3_stmt;
+
namespace OCC {
/**
diff --git a/src/common/syncjournaldb.cpp b/src/common/syncjournaldb.cpp
index a40149d3a..63d2f7ef4 100644
--- a/src/common/syncjournaldb.cpp
+++ b/src/common/syncjournaldb.cpp
@@ -23,6 +23,7 @@
#include <QElapsedTimer>
#include <QUrl>
#include <QDir>
+#include <sqlite3.h>
#include "common/syncjournaldb.h"
#include "version.h"
diff --git a/src/csync/csync_private.h b/src/csync/csync_private.h
index 5463b7e40..f73a1b2d5 100644
--- a/src/csync/csync_private.h
+++ b/src/csync/csync_private.h
@@ -36,7 +36,6 @@
#include <QHash>
#include <stdint.h>
#include <stdbool.h>
-#include <sqlite3.h>
#include <map>
#include <set>
#include <functional>
diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp
index 0cdc9f0de..cc889b8f3 100644
--- a/src/gui/socketapi.cpp
+++ b/src/gui/socketapi.cpp
@@ -48,8 +48,6 @@
#include <QClipboard>
-#include <sqlite3.h>
-
#include <QStandardPaths>
diff --git a/test/csync/csync_tests/check_csync_update.cpp b/test/csync/csync_tests/check_csync_update.cpp
index 01681b7de..504ea2096 100644
--- a/test/csync/csync_tests/check_csync_update.cpp
+++ b/test/csync/csync_tests/check_csync_update.cpp
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "csync_update.cpp"
+#include <sqlite3.h>
#include "torture.h"