summaryrefslogtreecommitdiff
path: root/platform/android/src/style/sources/sources.hpp
diff options
context:
space:
mode:
authorIvo van Dongen <ivovandongen@users.noreply.github.com>2016-09-21 11:04:32 +0200
committerGitHub <noreply@github.com>2016-09-21 11:04:32 +0200
commiteb97dbe383ca7697feab5860995b97181c39c607 (patch)
tree70bdd7b6ebea32aec132413fa703e92a2a0f63d0 /platform/android/src/style/sources/sources.hpp
parent3b546b964609d0f596dac32e155b1489bb85645e (diff)
downloadqtlocation-mapboxgl-eb97dbe383ca7697feab5860995b97181c39c607.tar.gz
[android] Sources: peer model, mutability (#6054)
Diffstat (limited to 'platform/android/src/style/sources/sources.hpp')
-rw-r--r--platform/android/src/style/sources/sources.hpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/platform/android/src/style/sources/sources.hpp b/platform/android/src/style/sources/sources.hpp
index b967685dfb..3038873733 100644
--- a/platform/android/src/style/sources/sources.hpp
+++ b/platform/android/src/style/sources/sources.hpp
@@ -1,14 +1,20 @@
#pragma once
+#include <mbgl/map/map.hpp>
#include <mbgl/style/source.hpp>
-#include <mbgl/util/optional.hpp>
+
+#include "source.hpp"
#include <jni/jni.hpp>
namespace mbgl {
namespace android {
-
- mbgl::optional<std::unique_ptr<mbgl::style::Source>> convertToNativeSource(jni::JNIEnv& env, jni::Object<jni::jobject> jsource, jni::String id);
+
+ mbgl::android::Source* initializeSourcePeer(mbgl::Map&, mbgl::style::Source&);
+
+ jni::jobject* createJavaSourcePeer(jni::JNIEnv&, mbgl::Map&, mbgl::style::Source&);
+
+ void registerNativeSources(jni::JNIEnv&);
}
} \ No newline at end of file