diff options
Diffstat (limited to 'libnativeloader/include/nativeloader/native_loader.h')
| -rw-r--r-- | libnativeloader/include/nativeloader/native_loader.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libnativeloader/include/nativeloader/native_loader.h b/libnativeloader/include/nativeloader/native_loader.h index da072530e..2dec71f1e 100644 --- a/libnativeloader/include/nativeloader/native_loader.h +++ b/libnativeloader/include/nativeloader/native_loader.h @@ -19,6 +19,9 @@ #include "jni.h" #include <stdint.h> +#if defined(__ANDROID__) +#include <android/dlext.h> +#endif namespace android { @@ -27,6 +30,13 @@ void* OpenNativeLibrary(JNIEnv* env, int32_t target_sdk_version, const char* pat jobject class_loader, bool is_shared, jstring library_path, jstring permitted_path); +#if defined(__ANDROID__) +// Look up linker namespace by class_loader. Returns nullptr if +// there is no namespace associated with the class_loader. +__attribute__((visibility("default"))) +android_namespace_t* FindNamespaceByClassLoader(JNIEnv* env, jobject class_loader); +#endif + }; // namespace android #endif // NATIVE_BRIDGE_H_ |
