summaryrefslogtreecommitdiff
path: root/libnativeloader/library_namespaces.h
diff options
context:
space:
mode:
author Martin Stjernholm <mast@google.com> 2024-02-07 18:31:38 +0000
committer Martin Stjernholm <mast@google.com> 2024-02-15 18:22:04 +0000
commita01591339b6c6c4426c4f087c32d75edf1d0fb98 (patch)
tree3d8252bd54c274702fc93e8257af9cd1dad625a8 /libnativeloader/library_namespaces.h
parent8a9b51e34f3769a5e3ea3a4383e3f00489088738 (diff)
Improve debug logging to reflect all code paths in OpenNativeLibrary.
Also some related code cleanups. Test: atest libnativeloader_e2e_tests \ libnativeloader_test libnativeloader_lazy_test Bug: 237577392 Change-Id: Ia8842cdaf84d282353f3b0c55ca3d56bbc3bd4aa
Diffstat (limited to 'libnativeloader/library_namespaces.h')
-rw-r--r--libnativeloader/library_namespaces.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libnativeloader/library_namespaces.h b/libnativeloader/library_namespaces.h
index 25edf4faf7..741d4116b8 100644
--- a/libnativeloader/library_namespaces.h
+++ b/libnativeloader/library_namespaces.h
@@ -22,6 +22,7 @@
#endif
#include <list>
+#include <optional>
#include <string>
#include "android-base/result.h"
@@ -93,7 +94,7 @@ class LibraryNamespaces {
std::list<std::pair<jweak, NativeLoaderNamespace>> namespaces_;
};
-Result<std::string> FindApexNamespaceName(const std::string& location);
+std::optional<std::string> FindApexNamespaceName(const std::string& location);
} // namespace android::nativeloader