summaryrefslogtreecommitdiff
path: root/libnativeloader/native_loader_namespace.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnativeloader/native_loader_namespace.h')
-rw-r--r--libnativeloader/native_loader_namespace.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libnativeloader/native_loader_namespace.h b/libnativeloader/native_loader_namespace.h
index f6a324be56..9a5aeac203 100644
--- a/libnativeloader/native_loader_namespace.h
+++ b/libnativeloader/native_loader_namespace.h
@@ -55,7 +55,11 @@ struct NativeLoaderNamespace {
std::string name() const { return name_; }
bool IsBridged() const { return raw_.index() == 1; }
- Result<void> Link(const NativeLoaderNamespace& target, const std::string& shared_libs) const;
+ // Creates a link from this namespace to target for the ":"-separated list of
+ // libraries in shared_libs. If target is nullptr it creates a link to the
+ // default namespace.
+ Result<void> Link(const NativeLoaderNamespace* target, const std::string& shared_libs) const;
+
Result<void*> Load(const char* lib_name) const;
static Result<NativeLoaderNamespace> GetExportedNamespace(const std::string& name,