Debian Codegraph @

tools/jni/org/jpeg/jpegli/wrapper/encoder_jni_onload.cc

raw
1 // Copyright (c) the JPEG XL Project Authors. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file.
5
6 #include <jni.h>
7
8 #include "tools/jni/org/jpeg/jpegli/wrapper/encoder_jni.h"
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
15 return org_jpeg_jpegli_wrapper::JniRegister(vm);
16 }
17
18 JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved) {
19 // TODO(eustas): actually we have cached jclass ref, but let it be so for now.
20 }
21
22 #ifdef __cplusplus
23 }
24 #endif