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

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

Issue 673093005: Fallback for loading library from a zipfile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
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 04fc8cec487d1e8af018ecf448938230c15d8375..2fdf7fe7cf1e3f32f9950c9ae45eb360acdecbb7 100644
--- a/third_party/android_crazy_linker/src/include/crazy_linker.h
+++ b/third_party/android_crazy_linker/src/include/crazy_linker.h
@@ -215,6 +215,13 @@ crazy_status_t crazy_library_open(crazy_library_t** library,
const char* lib_name,
crazy_context_t* context) _CRAZY_PUBLIC;
+// Return the pathname of the library in the zip_file:
+// "lib/<abi>/crazy.<lib_name>".
+// 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_filename_in_zip_file(
+ const char* lib_name, char* buffer, size_t buffer_size);
+
// Try to open or load a library with the crazy linker. The
// library is in a zip file with the name |zipfile_name|. Within the zip
// file the library must be uncompressed and page aligned. |zipfile_name|

Powered by Google App Engine
This is Rietveld 408576698