Home | History | Annotate | Download | only in jni
      1 /*
      2  * Copyright (C) 2011 The Android Open Source Project
      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 #ifndef ANDROID_FILTERFW_JNI_NATIVE_PROGRAM_H
     18 #define ANDROID_FILTERFW_JNI_NATIVE_PROGRAM_H
     19 
     20 #include <jni.h>
     21 
     22 #ifdef __cplusplus
     23 extern "C" {
     24 #endif
     25 
     26 JNIEXPORT jboolean JNICALL
     27 Java_android_filterfw_core_NativeProgram_allocate(JNIEnv* env, jobject thiz);
     28 
     29 JNIEXPORT jboolean JNICALL
     30 Java_android_filterfw_core_NativeProgram_deallocate(JNIEnv* env, jobject thiz);
     31 
     32 JNIEXPORT jboolean JNICALL
     33 Java_android_filterfw_core_NativeProgram_nativeInit(JNIEnv* env, jobject thiz);
     34 
     35 JNIEXPORT jboolean JNICALL
     36 Java_android_filterfw_core_NativeProgram_openNativeLibrary(JNIEnv* env,
     37                                                            jobject thiz,
     38                                                            jstring lib_name);
     39 
     40 JNIEXPORT jboolean JNICALL
     41 Java_android_filterfw_core_NativeProgram_bindInitFunction(JNIEnv* env,
     42                                                           jobject thiz,
     43                                                           jstring func_name);
     44 
     45 JNIEXPORT jboolean JNICALL
     46 Java_android_filterfw_core_NativeProgram_bindSetValueFunction(JNIEnv* env,
     47                                                               jobject thiz,
     48                                                               jstring func_name);
     49 
     50 JNIEXPORT jboolean JNICALL
     51 Java_android_filterfw_core_NativeProgram_bindGetValueFunction(JNIEnv* env,
     52                                                               jobject thiz,
     53                                                               jstring func_name);
     54 
     55 JNIEXPORT jboolean JNICALL
     56 Java_android_filterfw_core_NativeProgram_bindProcessFunction(JNIEnv* env,
     57                                                              jobject thiz,
     58                                                              jstring func_name);
     59 
     60 JNIEXPORT jboolean JNICALL
     61 Java_android_filterfw_core_NativeProgram_bindResetFunction(JNIEnv* env,
     62                                                            jobject thiz,
     63                                                            jstring func_name);
     64 
     65 JNIEXPORT jboolean JNICALL
     66 Java_android_filterfw_core_NativeProgram_bindTeardownFunction(JNIEnv* env,
     67                                                               jobject thiz,
     68                                                               jstring func_name);
     69 
     70 JNIEXPORT jboolean JNICALL
     71 Java_android_filterfw_core_NativeProgram_callNativeInit(JNIEnv* env, jobject thiz);
     72 
     73 JNIEXPORT jboolean JNICALL
     74 Java_android_filterfw_core_NativeProgram_callNativeSetValue(JNIEnv* env,
     75                                                             jobject thiz,
     76                                                             jstring key,
     77                                                             jstring value);
     78 
     79 JNIEXPORT jstring JNICALL
     80 Java_android_filterfw_core_NativeProgram_callNativeGetValue(JNIEnv* env,
     81                                                             jobject thiz,
     82                                                             jstring key);
     83 
     84 JNIEXPORT jboolean JNICALL
     85 Java_android_filterfw_core_NativeProgram_callNativeProcess(JNIEnv* env,
     86                                                            jobject thiz,
     87                                                            jobjectArray inputs,
     88                                                            jobject output);
     89 
     90 JNIEXPORT jboolean JNICALL
     91 Java_android_filterfw_core_NativeProgram_callNativeReset(JNIEnv* env, jobject thiz);
     92 
     93 JNIEXPORT jboolean JNICALL
     94 Java_android_filterfw_core_NativeProgram_callNativeTeardown(JNIEnv* env, jobject thiz);
     95 
     96 #ifdef __cplusplus
     97 }
     98 #endif
     99 
    100 #endif // ANDROID_FILTERFW_JNI_NATIVE_PROGRAM_H
    101