summaryrefslogtreecommitdiff
path: root/platform/default/include/mbgl/storage/local_file_request.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2018-10-13 22:03:19 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2018-12-17 11:37:56 +0200
commita228f3d80af715665ee28627a1239998af0a52d9 (patch)
treeed60c2b3361c6f227aad36e7c0555491bcab35a5 /platform/default/include/mbgl/storage/local_file_request.hpp
parentf076a1fe39a466f9be91934e35ed179e45edece0 (diff)
downloadqtlocation-mapboxgl-a228f3d80af715665ee28627a1239998af0a52d9.tar.gz
[core] Refactor duplicated code in Asset and File sources
Diffstat (limited to 'platform/default/include/mbgl/storage/local_file_request.hpp')
-rw-r--r--platform/default/include/mbgl/storage/local_file_request.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/platform/default/include/mbgl/storage/local_file_request.hpp b/platform/default/include/mbgl/storage/local_file_request.hpp
new file mode 100644
index 0000000000..590ae8bbc7
--- /dev/null
+++ b/platform/default/include/mbgl/storage/local_file_request.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <mbgl/util/string.hpp>
+
+namespace mbgl {
+
+template <typename>
+class ActorRef;
+class FileSourceRequest;
+
+void requestLocalFile(const std::string&, ActorRef<FileSourceRequest>);
+
+} // namespace mbgl