summaryrefslogtreecommitdiffstats
path: root/libnativeloader/include/nativeloader
diff options
context:
space:
mode:
authorDimitry Ivanov <dimitry@google.com>2016-05-03 14:55:25 -0700
committerDimitry Ivanov <dimitry@google.com>2016-05-03 14:55:25 -0700
commit09a516bf161c5cabdaa3a67df5aa7fbac667f5f9 (patch)
tree5e8fa828d391d0abd233bec62965c671ea3447b1 /libnativeloader/include/nativeloader
parent3174bda7ac07465400a4b38b272ebe5126212ba6 (diff)
downloadsystem_core-09a516bf161c5cabdaa3a67df5aa7fbac667f5f9.tar.gz
system_core-09a516bf161c5cabdaa3a67df5aa7fbac667f5f9.tar.bz2
system_core-09a516bf161c5cabdaa3a67df5aa7fbac667f5f9.zip
nativeloader: Add CloseNativeLibrary() method
This method is called by art on UnloadNativeLibraries() Bug: http://b/28406866 Change-Id: Ibccff93c83d6ccd3d0a1c0294a64b09281b4e05e
Diffstat (limited to 'libnativeloader/include/nativeloader')
-rw-r--r--libnativeloader/include/nativeloader/native_loader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnativeloader/include/nativeloader/native_loader.h b/libnativeloader/include/nativeloader/native_loader.h
index d606a760e..2a6aaec50 100644
--- a/libnativeloader/include/nativeloader/native_loader.h
+++ b/libnativeloader/include/nativeloader/native_loader.h
@@ -43,6 +43,9 @@ void* OpenNativeLibrary(JNIEnv* env,
jobject class_loader,
jstring library_path);
+__attribute__((visibility("default")))
+bool CloseNativeLibrary(void* handle);
+
#if defined(__ANDROID__)
// Look up linker namespace by class_loader. Returns nullptr if
// there is no namespace associated with the class_loader.