Download modules/java/generator/src/cpp/jni_part.cpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 848 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/modules/java/generator/src/cpp/jni_part.cpp
- Command line
-
hf download hf://tgollogly/test/modules/java/generator/src/cpp/jni_part.cpp
-
curl -L -o jni_part.cpp https://huggingface.co/tgollogly/test/resolve/main/modules/java/generator/src/cpp/jni_part.cpp
848 Bytes
| // This file is part of OpenCV project. | |
| // It is subject to the license terms in the LICENSE file found in the top-level directory | |
| // of this distribution and at http://opencv.org/license.html | |
| extern "C" { | |
| JNIEXPORT jint JNICALL | |
| JNI_OnLoad(JavaVM* vm, void* ) | |
| { | |
| JNIEnv* env; | |
| if (vm->GetEnv((void**) &env, JNI_VERSION_1_6) != JNI_OK) | |
| return -1; | |
| /* get class with (*env)->FindClass */ | |
| /* register methods with (*env)->RegisterNatives */ | |
| return JNI_VERSION_1_6; | |
| } | |
| JNIEXPORT void JNICALL | |
| JNI_OnUnload(JavaVM*, void*) | |
| { | |
| //do nothing | |
| } | |
| } // extern "C" | |