diff options
author | 2021-04-17 17:28:08 +0100 | |
---|---|---|
committer | 2024-09-11 15:11:37 +0000 | |
commit | da53336c50994a20c292dd5fde0591ca53efea2a (patch) | |
tree | 2b34664bf8476138b698e9dd0d7f1f10ff16089c /libnativebridge/include/nativebridge/native_bridge.h | |
parent | 25d8fb090c068ac67da26a25fee68c82f2a059ee (diff) |
Remove remnants of init_anonymous_namespace in libnativebridge and
in tests.
It ceased to be used in https://r.android.com/1070435.
#codehealth
Test: atest CtsJniTestCases
Test: atest art/libnativeloader
Test: atest art/libnativebridge/tests
Bug: 130388701
Bug: 122710865
Change-Id: Ie8fcde3b86b4913566ebb5ea3f1a4bc9b9f96316
Diffstat (limited to 'libnativebridge/include/nativebridge/native_bridge.h')
-rw-r--r-- | libnativebridge/include/nativebridge/native_bridge.h | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/libnativebridge/include/nativebridge/native_bridge.h b/libnativebridge/include/nativebridge/native_bridge.h index b2e4d2219b..491521642c 100644 --- a/libnativebridge/include/nativebridge/native_bridge.h +++ b/libnativebridge/include/nativebridge/native_bridge.h @@ -146,18 +146,6 @@ struct native_bridge_namespace_t; // Use NativeBridgeIsSupported() instead in non-namespace scenario. bool NativeBridgeIsPathSupported(const char* path); -// Initializes anonymous namespace. -// NativeBridge's peer of android_init_anonymous_namespace() of dynamic linker. -// -// The anonymous namespace is used in the case when a NativeBridge implementation -// cannot identify the caller of dlopen/dlsym which happens for the code not loaded -// by dynamic linker; for example calls from the mono-compiled code. -// -// Starting with v3, NativeBridge has two scenarios: with/without namespace. -// Should not use in non-namespace scenario. -bool NativeBridgeInitAnonymousNamespace(const char* public_ns_sonames, - const char* anon_ns_library_path); - // Create new namespace in which native libraries will be loaded. // NativeBridge's peer of android_create_namespace() of dynamic linker. // @@ -314,23 +302,8 @@ struct NativeBridgeCallbacks { // Use isSupported instead in non-namespace scenario. bool (*isPathSupported)(const char* library_path); - // Initializes anonymous namespace at native bridge side. - // NativeBridge's peer of android_init_anonymous_namespace() of dynamic linker. - // - // The anonymous namespace is used in the case when a NativeBridge implementation - // cannot identify the caller of dlopen/dlsym which happens for the code not loaded - // by dynamic linker; for example calls from the mono-compiled code. - // - // Parameters: - // public_ns_sonames [IN] the name of "public" libraries. - // anon_ns_library_path [IN] the library search path of (anonymous) namespace. - // Returns: - // true if the pass is ok. - // Otherwise, false. - // - // Starting with v3, NativeBridge has two scenarios: with/without namespace. - // Should not use in non-namespace scenario. - bool (*initAnonymousNamespace)(const char* public_ns_sonames, const char* anon_ns_library_path); + // No longer used. + bool (*unused_initAnonymousNamespace)(const char*, const char*); // Create new namespace in which native libraries will be loaded. // NativeBridge's peer of android_create_namespace() of dynamic linker. |