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 23extern "C" { 24#endif 25 26JNIEXPORT jboolean JNICALL 27Java_android_filterfw_core_NativeProgram_allocate(JNIEnv* env, jobject thiz); 28 29JNIEXPORT jboolean JNICALL 30Java_android_filterfw_core_NativeProgram_deallocate(JNIEnv* env, jobject thiz); 31 32JNIEXPORT jboolean JNICALL 33Java_android_filterfw_core_NativeProgram_nativeInit(JNIEnv* env, jobject thiz); 34 35JNIEXPORT jboolean JNICALL 36Java_android_filterfw_core_NativeProgram_openNativeLibrary(JNIEnv* env, 37 jobject thiz, 38 jstring lib_name); 39 40JNIEXPORT jboolean JNICALL 41Java_android_filterfw_core_NativeProgram_bindInitFunction(JNIEnv* env, 42 jobject thiz, 43 jstring func_name); 44 45JNIEXPORT jboolean JNICALL 46Java_android_filterfw_core_NativeProgram_bindSetValueFunction(JNIEnv* env, 47 jobject thiz, 48 jstring func_name); 49 50JNIEXPORT jboolean JNICALL 51Java_android_filterfw_core_NativeProgram_bindGetValueFunction(JNIEnv* env, 52 jobject thiz, 53 jstring func_name); 54 55JNIEXPORT jboolean JNICALL 56Java_android_filterfw_core_NativeProgram_bindProcessFunction(JNIEnv* env, 57 jobject thiz, 58 jstring func_name); 59 60JNIEXPORT jboolean JNICALL 61Java_android_filterfw_core_NativeProgram_bindResetFunction(JNIEnv* env, 62 jobject thiz, 63 jstring func_name); 64 65JNIEXPORT jboolean JNICALL 66Java_android_filterfw_core_NativeProgram_bindTeardownFunction(JNIEnv* env, 67 jobject thiz, 68 jstring func_name); 69 70JNIEXPORT jboolean JNICALL 71Java_android_filterfw_core_NativeProgram_callNativeInit(JNIEnv* env, jobject thiz); 72 73JNIEXPORT jboolean JNICALL 74Java_android_filterfw_core_NativeProgram_callNativeSetValue(JNIEnv* env, 75 jobject thiz, 76 jstring key, 77 jstring value); 78 79JNIEXPORT jstring JNICALL 80Java_android_filterfw_core_NativeProgram_callNativeGetValue(JNIEnv* env, 81 jobject thiz, 82 jstring key); 83 84JNIEXPORT jboolean JNICALL 85Java_android_filterfw_core_NativeProgram_callNativeProcess(JNIEnv* env, 86 jobject thiz, 87 jobjectArray inputs, 88 jobject output); 89 90JNIEXPORT jboolean JNICALL 91Java_android_filterfw_core_NativeProgram_callNativeReset(JNIEnv* env, jobject thiz); 92 93JNIEXPORT jboolean JNICALL 94Java_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