summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-09-24 17:08:44 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-09-24 17:08:44 +0200
commit1209744b38da0252731812d4cc5371be960fb3c3 (patch)
tree7e845b30550d6ca72f1580cb51490139f0e8ca18 /include
parent992d9ff051ecd45f83160930c43c9d5a2da04048 (diff)
downloadqtlocation-mapboxgl-1209744b38da0252731812d4cc5371be960fb3c3.tar.gz
use the default cache location on ios to avoid writing to unwritable file system locations
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/platform/platform.hpp3
-rw-r--r--include/mbgl/storage/file_source.hpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/mbgl/platform/platform.hpp b/include/mbgl/platform/platform.hpp
index 6356d81bb1..b7107bb9cd 100644
--- a/include/mbgl/platform/platform.hpp
+++ b/include/mbgl/platform/platform.hpp
@@ -17,6 +17,9 @@ std::string uppercase(const std::string &string);
// Lowercase a string, potentially using platform-specific routines.
std::string lowercase(const std::string &string);
+// Returns the path to the default cache database on this system.
+std::string defaultCacheDatabase();
+
// Shows an alpha image with the specified dimensions in a named window.
void show_debug_image(std::string name, const char *data, size_t width, size_t height);
diff --git a/include/mbgl/storage/file_source.hpp b/include/mbgl/storage/file_source.hpp
index 06d416d0c6..5933aea483 100644
--- a/include/mbgl/storage/file_source.hpp
+++ b/include/mbgl/storage/file_source.hpp
@@ -24,7 +24,7 @@ private:
FileSource& operator=(FileSource &&) = delete;
public:
- FileSource(uv_loop_t *loop);
+ FileSource(uv_loop_t *loop, const std::string &path);
~FileSource();
public: