summaryrefslogtreecommitdiff
path: root/libnativeloader/library_namespaces.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnativeloader/library_namespaces.h')
-rw-r--r--libnativeloader/library_namespaces.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libnativeloader/library_namespaces.h b/libnativeloader/library_namespaces.h
index 741d4116b8..ae1cd88f20 100644
--- a/libnativeloader/library_namespaces.h
+++ b/libnativeloader/library_namespaces.h
@@ -24,6 +24,7 @@
#include <list>
#include <optional>
#include <string>
+#include <string_view>
#include "android-base/result.h"
#include "jni.h"
@@ -54,7 +55,8 @@ using ApiDomain = enum {
API_DOMAIN_PRODUCT = 2, // Product partition
};
-nativeloader::ApiDomain GetApiDomainFromPath(const std::string& path);
+ApiDomain GetApiDomainFromPath(const std::string_view path);
+Result<ApiDomain> GetApiDomainFromPathList(const std::string& path_list);
// LibraryNamespaces is a singleton object that manages NativeLoaderNamespace
// objects for an app process. Its main job is to create (and configure) a new