summaryrefslogtreecommitdiff
path: root/platform/android/src/jni.hpp
blob: 189eac987c40bb1bd19f85dcbaa353192aa88294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <mbgl/util/util.hpp>

#include <string>
#include <jni/jni.hpp>

namespace mbgl {
namespace android {

extern JavaVM* theJVM;

extern std::string cachePath;
extern std::string dataPath;

bool attach_jni_thread(JavaVM* vm, JNIEnv** env, std::string threadName);
void detach_jni_thread(JavaVM* vm, JNIEnv** env, bool detach);

} // namespace android
} // namespace mbgl