summaryrefslogtreecommitdiffstats
path: root/libnativebridge
diff options
context:
space:
mode:
authordimitry <dimitry@google.com>2018-09-12 01:09:19 +0200
committerdimitry <dimitry@google.com>2018-09-12 01:36:06 +0200
commit3150f7c7af68c78e410c328b406223d748f9c7ba (patch)
treef921b9f554b5094523ec8c059836e50610887bef /libnativebridge
parent84d462d8850067bd159495638ea522fa7c478e20 (diff)
downloadsystem_core-3150f7c7af68c78e410c328b406223d748f9c7ba.tar.gz
system_core-3150f7c7af68c78e410c328b406223d748f9c7ba.tar.bz2
system_core-3150f7c7af68c78e410c328b406223d748f9c7ba.zip
Add error_msg argument to CloseNativeLibrary
error_msg is set when dlclose/NativeBridgeUnloadLibrary fails. Bug: https://issuetracker.google.com/79126103 Test: make Change-Id: I043580209538ff47320e8d9a304a21c00c4b149f
Diffstat (limited to 'libnativebridge')
-rw-r--r--libnativebridge/include/nativebridge/native_bridge.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnativebridge/include/nativebridge/native_bridge.h b/libnativebridge/include/nativebridge/native_bridge.h
index 9bfc93523..28f192748 100644
--- a/libnativebridge/include/nativebridge/native_bridge.h
+++ b/libnativebridge/include/nativebridge/native_bridge.h
@@ -99,7 +99,7 @@ bool NativeBridgeError();
bool NativeBridgeNameAcceptable(const char* native_bridge_library_filename);
// Decrements the reference count on the dynamic library handler. If the reference count drops
-// to zero then the dynamic library is unloaded.
+// to zero then the dynamic library is unloaded. Returns 0 on success and non-zero on error.
int NativeBridgeUnloadLibrary(void* handle);
// Get last error message of native bridge when fail to load library or search symbol.