d950bce53195aa98a70ab8e6510e3e9ac4bef5ef
[platform/upstream/iotivity.git] / service / soft-sensor-manager / SSMCore / src / SSMInterface / SSMCore_JNI.h
1 /******************************************************************
2 *
3 * Copyright 2014 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 #ifndef _SSMCore_JNI_H_
21 #define _SSMCore_JNI_H_
22
23 #include <jni.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 JNIEXPORT void JNICALL Java_org_iotivity_service_ssm_CoreController_initializeSSMCore
30 (JNIEnv *env, jclass clz, jstring jstrXmlDescription);
31
32 JNIEXPORT void JNICALL Java_org_iotivity_service_ssm_CoreController_startSSMCore
33 (JNIEnv *env, jclass clz);
34
35 JNIEXPORT void JNICALL Java_org_iotivity_service_ssm_CoreController_stopSSMCore
36 (JNIEnv *env, jclass clz);
37
38 JNIEXPORT void JNICALL Java_org_iotivity_service_ssm_CoreController_terminateSSMCore
39 (JNIEnv *env, jclass clz);
40
41 JNIEXPORT jobject JNICALL Java_org_iotivity_service_ssm_CoreController_createQueryEngine
42 (JNIEnv *env, jclass clz);
43
44 JNIEXPORT jint JNICALL Java_org_iotivity_service_ssm_CoreController_releaseQueryEngine
45 (JNIEnv *env, jclass clz, jobject queryEngine);
46
47 JNIEXPORT jint JNICALL Java_org_iotivity_service_ssm_CoreController_executeContextQuery
48 (JNIEnv *env, jclass clz, jint pQueryEngineInstance, jstring jstrContextQuery);
49
50 JNIEXPORT void JNICALL Java_org_iotivity_service_ssm_CoreController_registerQueryEvent
51 (JNIEnv *env, jclass clz, jint pQueryEngineInstance, jobject queryEngineEvent);
52
53 JNIEXPORT void JNICALL Java_org_iotivity_service_ssm_CoreController_killContextQuery
54 (JNIEnv *env, jclass clz, jint pQueryEngineInstance, jint cqid);
55
56 JNIEXPORT jint JNICALL Java_org_iotivity_service_ssm_CoreController_getDataId
57 (JNIEnv *env, jclass clz, jint pDataReaderInstance);
58
59 JNIEXPORT jobject JNICALL Java_org_iotivity_service_ssm_CoreController_getAffectedModels
60 (JNIEnv *env, jclass clz, jint pDataReaderInstance);
61
62 JNIEXPORT jint JNICALL Java_org_iotivity_service_ssm_CoreController_getModelDataCount
63 (JNIEnv *env, jclass clz, jint pDataReaderInstance, jstring jstrModelName);
64
65 JNIEXPORT jobject JNICALL Java_org_iotivity_service_ssm_CoreController_getModelData
66 (JNIEnv *env, jclass clz, jint pDataReaderInstance, jstring jstrModelName, jint jintDataIndex );
67
68 JNIEXPORT jint JNICALL Java_org_iotivity_service_ssm_CoreController_getPropertyCount
69 (JNIEnv *env, jclass clz, jint pIModelDataInstance );
70
71 JNIEXPORT jstring JNICALL Java_org_iotivity_service_ssm_CoreController_getPropertyName
72 (JNIEnv *env, jclass clz, jint pIModelDataInstance, jint propertyIndex );
73
74 JNIEXPORT jstring JNICALL Java_org_iotivity_service_ssm_CoreController_getPropertyValue
75 (JNIEnv *env, jclass clz, jint pIModelDataInstance, jint propertyIndex );
76
77 JNIEXPORT void JNICALL Java_org_iotivity_service_ssm_CoreController_registerReportReceiver
78 (JNIEnv *env, jclass clz, jobject reportReceiver );
79
80 #ifdef __cplusplus
81 }
82 #endif
83
84 #endif