Updating JNI modules of service provider
[platform/upstream/iotivity.git] / service / simulator / java / jni / simulator_manager_jni.h
1 /******************************************************************
2  *
3  * Copyright 2015 Samsung Electronics All Rights Reserved.
4  *
5  *
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  ******************************************************************/
20
21 #ifndef SIMULATOR_MANAGER_JNI_H_
22 #define SIMULATOR_MANAGER_JNI_H_
23
24 #include <jni.h>
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 JNIEXPORT jobject JNICALL
31 Java_org_oic_simulator_SimulatorManagerNativeInterface_createResource
32 (JNIEnv *env, jclass object, jstring jConfigPath, jobject jListener);
33
34 JNIEXPORT jobjectArray JNICALL
35 Java_org_oic_simulator_SimulatorManagerNativeInterface_createResources
36 (JNIEnv *env, jclass object, jstring jConfigPath, jint count, jobject jListener);
37
38 JNIEXPORT jobjectArray JNICALL
39 Java_org_oic_simulator_SimulatorManageNativeInterface_getResources
40 (JNIEnv *env, jclass object);
41
42 JNIEXPORT void JNICALL
43 Java_org_oic_simulator_SimulatorManagerNativeInterface_deleteResource
44 (JNIEnv *env, jclass object, jobject jResource);
45
46 JNIEXPORT void JNICALL
47 Java_org_oic_simulator_SimulatorManagerNativeInterface_deleteResources
48 (JNIEnv *env, jclass object, jstring resourceType);
49
50 JNIEXPORT void JNICALL
51 Java_org_oic_simulator_SimulatorManagerNativeInterface_setLogger
52 (JNIEnv *env, jclass object, jobject logger);
53
54 JNIEXPORT jint JNICALL
55 Java_org_iotivity_simulator_SimulatorManagerNativeInterface_findResource
56 (JNIEnv *env, jobject interfaceObject, jstring jResourceType, jobject jListener);
57
58 JNIEXPORT jobject JNICALL
59 Java_org_iotivity_simulator_SimulatorManagerNativeInterface_getFoundResources
60 (JNIEnv *env, jobject interfaceObject, jstring jResourceType);
61
62 #ifdef __cplusplus
63 }
64 #endif
65
66 #endif //SIMULATOR_MANAGER_JNI_H_