diff options
author | Jesse Hall | 2017-01-12 16:56:17 -0600 |
---|---|---|
committer | Jesse Hall | 2017-01-17 11:33:04 -0600 |
commit | 00d5dad56ff30102fa270832981a837b2f28155c (patch) | |
tree | 3f93302eb150fc6da7d10797ad8bbe105c375aa7 | |
parent | 243bbd29d60ca87f8f8043e4b4a511d3cff96b42 (diff) | |
download | platform-system-core-00d5dad56ff30102fa270832981a837b2f28155c.tar.gz platform-system-core-00d5dad56ff30102fa270832981a837b2f28155c.tar.xz platform-system-core-00d5dad56ff30102fa270832981a837b2f28155c.zip |
dlext_namespace.h: Declare android_get_LD_LIBRARY_PATH
This allows clients creating their own namespace do so by modifying
the default library path, rather than hardcoding it multiple places in
the system.
Bug: 33531483
Change-Id: Id93059eed9f426b05178ecd65861f820300f0382
Merged-In: I321e219392b38c235b220986e1520b49a4669863
-rw-r--r-- | libnativeloader/include/nativeloader/dlext_namespaces.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libnativeloader/include/nativeloader/dlext_namespaces.h b/libnativeloader/include/nativeloader/dlext_namespaces.h index 13a44e2bf..02e7075d7 100644 --- a/libnativeloader/include/nativeloader/dlext_namespaces.h +++ b/libnativeloader/include/nativeloader/dlext_namespaces.h | |||
@@ -86,6 +86,19 @@ extern struct android_namespace_t* android_create_namespace(const char* name, | |||
86 | const char* permitted_when_isolated_path, | 86 | const char* permitted_when_isolated_path, |
87 | android_namespace_t* parent); | 87 | android_namespace_t* parent); |
88 | 88 | ||
89 | /* | ||
90 | * Get the default library search path. | ||
91 | * The path will be copied into buffer, which must have space for at least | ||
92 | * buffer_size chars. Elements are separated with ':', and the path will always | ||
93 | * be null-terminated. | ||
94 | * | ||
95 | * If buffer_size is too small to hold the entire default search path and the | ||
96 | * null terminator, this function will abort. There is currently no way to find | ||
97 | * out what the required buffer size is. At the time of this writing, PATH_MAX | ||
98 | * is sufficient and used by all callers of this function. | ||
99 | */ | ||
100 | extern void android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size); | ||
101 | |||
89 | __END_DECLS | 102 | __END_DECLS |
90 | 103 | ||
91 | #endif /* __ANDROID_DLEXT_NAMESPACES_H__ */ | 104 | #endif /* __ANDROID_DLEXT_NAMESPACES_H__ */ |