legacy_linker_jni.h 727 B

123456789101112131415161718192021
  1. // Copyright 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_ANDROID_LINKER_LEGACY_LINKER_JNI_H_
  5. #define BASE_ANDROID_LINKER_LEGACY_LINKER_JNI_H_
  6. #include <jni.h>
  7. namespace chromium_android_linker {
  8. // JNI_OnLoad() initialization hook for the legacy linker.
  9. // Sets up JNI and other initializations for native linker code.
  10. // |vm| is the Java VM handle passed to JNI_OnLoad().
  11. // |env| is the current JNI environment handle.
  12. // On success, returns true.
  13. extern bool LegacyLinkerJNIInit(JavaVM* vm, JNIEnv* env);
  14. } // namespace chromium_android_linker
  15. #endif // BASE_ANDROID_LINKER_LEGACY_LINKER_JNI_H_