Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1550)

Unified Diff: third_party/android_crazy_linker/src/include/crazy_linker.h

Issue 684163002: Library loading fallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final update for review feedback Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/linker/linker_jni.cc ('k') | third_party/android_crazy_linker/src/src/crazy_linker_api.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/android_crazy_linker/src/include/crazy_linker.h
diff --git a/third_party/android_crazy_linker/src/include/crazy_linker.h b/third_party/android_crazy_linker/src/include/crazy_linker.h
index b09f8c512e834381fac26a47c438093fe932e323..e1ad1f4f06c06e13bd5e12d957cfa3286cfb6db6 100644
--- a/third_party/android_crazy_linker/src/include/crazy_linker.h
+++ b/third_party/android_crazy_linker/src/include/crazy_linker.h
@@ -32,6 +32,9 @@ extern "C" {
// the library.
#define _CRAZY_PUBLIC __attribute__((__visibility__("default")))
+// Maximum path length of a file in a zip file.
+const size_t kMaxFilePathLengthInZip = 256;
+
// Status values returned by crazy linker functions to indicate
// success or failure. They were chosen to match boolean values,
// this allows one to test for failures with:
@@ -335,6 +338,15 @@ crazy_status_t crazy_library_find_from_address(
void* address,
crazy_library_t** library) _CRAZY_PUBLIC;
+// Return the full path of |lib_name| in the zip file
+// (lib/<abi>/crazy.<lib_name>). The result is returned in
+// |buffer[0..buffer_size - 1]|. If |buffer_size| is too small,
+// CRAZY_STATUS_FAILURE is returned.
+crazy_status_t crazy_library_file_path_in_zip_file(const char* lib_name,
+ char* buffer,
+ size_t buffer_size)
+ _CRAZY_PUBLIC;
+
// Check whether |lib_name| is page aligned in |zipfile_name|.
crazy_status_t crazy_linker_check_library_aligned_in_zip_file(
const char* zipfile_name,
« no previous file with comments | « base/android/linker/linker_jni.cc ('k') | third_party/android_crazy_linker/src/src/crazy_linker_api.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698