OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CRAZY_LINKER_H | 5 #ifndef CRAZY_LINKER_H |
6 #define CRAZY_LINKER_H | 6 #define CRAZY_LINKER_H |
7 | 7 |
8 // This is the crazy linker, a custom dynamic linker that can be used | 8 // This is the crazy linker, a custom dynamic linker that can be used |
9 // by NDK applications to load shared libraries (not executables) with | 9 // by NDK applications to load shared libraries (not executables) with |
10 // a twist. | 10 // a twist. |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
336 crazy_library_t** library) _CRAZY_PUBLIC; | 336 crazy_library_t** library) _CRAZY_PUBLIC; |
337 | 337 |
338 // Close a library. This decrements its reference count. If it reaches | 338 // Close a library. This decrements its reference count. If it reaches |
339 // zero, the library be unloaded from the process. | 339 // zero, the library be unloaded from the process. |
340 void crazy_library_close(crazy_library_t* library) _CRAZY_PUBLIC; | 340 void crazy_library_close(crazy_library_t* library) _CRAZY_PUBLIC; |
341 | 341 |
342 // Close a library, with associated context to support delayed operations. | 342 // Close a library, with associated context to support delayed operations. |
343 void crazy_library_close_with_context(crazy_library_t* library, | 343 void crazy_library_close_with_context(crazy_library_t* library, |
344 crazy_context_t* context) _CRAZY_PUBLIC; | 344 crazy_context_t* context) _CRAZY_PUBLIC; |
345 | 345 |
346 | |
347 // Test whether the device supports memory mapping APK files with executable | |
348 // permissions. | |
349 // |apkfile_name| is the filename of the APK. | |
350 // On succes, returns CRAZY_STATUS_SUCCESS. | |
351 crazy_status_t crazy_linker_test_load_from_apk(const char* apkfile_name) | |
352 _CRAZY_PUBLIC; | |
rmcilroy
2014/10/10 10:27:05
I don't think we want to extend the crazy linker A
petrcermak
2014/10/10 14:20:14
Done.
| |
353 | |
346 #ifdef __cplusplus | 354 #ifdef __cplusplus |
347 } /* extern "C" */ | 355 } /* extern "C" */ |
348 #endif | 356 #endif |
349 | 357 |
350 #endif /* CRAZY_LINKER_H */ | 358 #endif /* CRAZY_LINKER_H */ |
OLD | NEW |