xref: /aosp_15_r20/external/cronet/third_party/jni_zero/sample/sample_entry_point.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2017 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "third_party/jni_zero/jni_zero.h"
6 
7 // This is called by the VM when the shared library is first loaded.
JNI_OnLoad(JavaVM * vm,void * reserved)8 __attribute__((visibility("default"))) jint JNI_OnLoad(JavaVM* vm,
9                                                        void* reserved) {
10   jni_zero::InitVM(vm);
11 
12   return JNI_VERSION_1_4;
13 }
14