13768d47026d831625150f4e5fce1c732a123094
[platform/core/ml/nnfw.git] / runtime / contrib / android / api / src / main / native / onert-native-api.h
1 /*
2  * Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /* DO NOT EDIT THIS FILE - it is machine generated */
18 #include <jni.h>
19 /* Header for class com_samsung_onert_NativeSessionWrapper */
20
21 #ifndef _Included_com_samsung_onert_NativeSessionWrapper
22 #define _Included_com_samsung_onert_NativeSessionWrapper
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 /*
27  * Class:     com_samsung_onert_NativeSessionWrapper
28  * Method:    nativeCreateSession
29  * Signature: ()J
30  */
31 JNIEXPORT jlong JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeCreateSession(JNIEnv *,
32                                                                                         jobject);
33
34 /*
35  * Class:     com_samsung_onert_NativeSessionWrapper
36  * Method:    nativeCloseSession
37  * Signature: (J)V
38  */
39 JNIEXPORT void JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeCloseSession(JNIEnv *,
40                                                                                       jobject,
41                                                                                       jlong);
42
43 /*
44  * Class:     com_samsung_onert_NativeSessionWrapper
45  * Method:    nativeLoadModelFromFile
46  * Signature: (JLjava/lang/String;)Z
47  */
48 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeLoadModelFromFile(
49     JNIEnv *, jobject, jlong, jstring);
50
51 /*
52  * Class:     com_samsung_onert_NativeSessionWrapper
53  * Method:    nativePrepare
54  * Signature: (J)Z
55  */
56 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativePrepare(JNIEnv *,
57                                                                                      jobject,
58                                                                                      jlong);
59
60 /*
61  * Class:     com_samsung_onert_NativeSessionWrapper
62  * Method:    nativeRun
63  * Signature: (J)Z
64  */
65 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeRun(JNIEnv *, jobject,
66                                                                                  jlong);
67
68 /*
69  * Class:     com_samsung_onert_NativeSessionWrapper
70  * Method:    nativeSetInput
71  * Signature: (JIILjava/nio/ByteBuffer;I)Z
72  */
73 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeSetInput(
74     JNIEnv *, jobject, jlong, jint, jint, jobject, jint);
75
76 /*
77  * Class:     com_samsung_onert_NativeSessionWrapper
78  * Method:    nativeSetOutput
79  * Signature: (JIILjava/nio/ByteBuffer;I)Z
80  */
81 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeSetOutput(
82     JNIEnv *, jobject, jlong, jint, jint, jobject, jint);
83
84 /*
85  * Class:     com_samsung_onert_NativeSessionWrapper
86  * Method:    nativeSetInputLayout
87  * Signature: (JII)Z
88  */
89 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeSetInputLayout(
90     JNIEnv *, jobject, jlong, jint, jint);
91
92 /*
93  * Class:     com_samsung_onert_NativeSessionWrapper
94  * Method:    nativeSetOutputLayout
95  * Signature: (JII)Z
96  */
97 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeSetOutputLayout(
98     JNIEnv *, jobject, jlong, jint, jint);
99
100 /*
101  * Class:     com_samsung_onert_NativeSessionWrapper
102  * Method:    nativeGetInputSize
103  * Signature: (J)I
104  */
105 JNIEXPORT jint JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeGetInputSize(JNIEnv *,
106                                                                                       jobject,
107                                                                                       jlong);
108
109 /*
110  * Class:     com_samsung_onert_NativeSessionWrapper
111  * Method:    nativeGetOutputSize
112  * Signature: (J)I
113  */
114 JNIEXPORT jint JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeGetOutputSize(JNIEnv *,
115                                                                                        jobject,
116                                                                                        jlong);
117
118 /*
119  * Class:     com_samsung_onert_NativeSessionWrapper
120  * Method:    nativeGetInputTensorInfo
121  * Signature: (JILcom/samsung/onert/NativeSessionWrapper/InternalTensorInfo;)Z
122  */
123 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeGetInputTensorInfo(
124     JNIEnv *, jobject, jlong, jint, jobject);
125
126 /*
127  * Class:     com_samsung_onert_NativeSessionWrapper
128  * Method:    nativeGetOutputTensorInfo
129  * Signature: (JILcom/samsung/onert/NativeSessionWrapper/InternalTensorInfo;)Z
130  */
131 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeGetOutputTensorInfo(
132     JNIEnv *, jobject, jlong, jint, jobject);
133
134 /*
135  * Class:     com_samsung_onert_NativeSessionWrapper
136  * Method:    nativeSetAvailableBackends
137  * Signature: (JLjava/lang/String;)Z
138  */
139 JNIEXPORT jboolean JNICALL Java_com_samsung_onert_NativeSessionWrapper_nativeSetAvailableBackends(
140     JNIEnv *, jobject, jlong, jstring);
141
142 #ifdef __cplusplus
143 }
144 #endif
145 #endif