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 07a41d7b31babe7695aaee486deedaf4dc02f7e4..94173cfab714fdb44af3258cc208d493d042d993 100644 |
--- a/third_party/android_crazy_linker/src/include/crazy_linker.h |
+++ b/third_party/android_crazy_linker/src/include/crazy_linker.h |
@@ -361,6 +361,20 @@ crazy_status_t crazy_library_file_path_in_zip_file(const char* lib_name, |
size_t buffer_size) |
_CRAZY_PUBLIC; |
+ |
+// Return the offset and size of a library stored in the zip file; |
+crazy_status_t crazy_library_offset_size_in_zip_file(const char* zip_filename, |
+ const char* lib_name, |
+ int* offset, int* size) |
+ _CRAZY_PUBLIC; |
+ |
+// Fault a library in memory. |
+// |filename| file to fault in. |
+// |offset| start offset in the file. |
+// |size| size of the file section to consider. -1 for the whole file. |
+crazy_status_t crazy_prefault_library(const char* filename, int offset, |
+ int size) _CRAZY_PUBLIC; |
+ |
// Check whether |lib_name| is page aligned and uncompressed in |zipfile_name|. |
crazy_status_t crazy_linker_check_library_is_mappable_in_zip_file( |
const char* zipfile_name, |