equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
65 /* Initialize the Java VM instance variable when the library is |
65 /* Initialize the Java VM instance variable when the library is |
66 first loaded */ |
66 first loaded */ |
67 JavaVM *jvm; |
67 JavaVM *jvm; |
68 |
68 |
69 JNIEXPORT jint JNICALL |
69 JNIEXPORT jint JNICALL |
70 JNI_OnLoad(JavaVM *vm, void *reserved) |
70 DEF_JNI_OnLoad(JavaVM *vm, void *reserved) |
71 { |
71 { |
72 jvm = vm; |
72 jvm = vm; |
73 return JNI_VERSION_1_2; |
73 return JNI_VERSION_1_2; |
74 } |
74 } |
75 |
75 |