Imported Upstream version 1.0.1
[platform/upstream/iotivity.git] / service / simulator / java / jni / simulator_remote_resource_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_REMOTE_RESOURCE_JNI_H_
22 #define SIMULATOR_REMOTE_RESOURCE_JNI_H_
23
24 #include <jni.h>
25 #include "simulator_remote_resource.h"
26
27 class JniSimulatorRemoteResource
28 {
29     public:
30         JniSimulatorRemoteResource(SimulatorRemoteResourceSP &resource)
31             : m_resource(resource) {};
32         static SimulatorRemoteResourceSP getResourceHandle(JNIEnv *env, jobject object);
33     private:
34         SimulatorRemoteResourceSP m_resource;
35 };
36
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40
41 JNIEXPORT void JNICALL
42 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_startObserve
43 (JNIEnv *env, jobject thiz, jint observeType, jobject jQueryParamsMap, jobject jListener);
44
45 JNIEXPORT void JNICALL
46 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_stopObserve
47 (JNIEnv *env, jobject thiz);
48
49 JNIEXPORT void JNICALL
50 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_nativeGet
51 (JNIEnv *env, jobject thiz, jstring jResourceInterface,
52  jobject jQueryParamsMap, jobject jListener);
53
54 JNIEXPORT void JNICALL
55 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_nativePut
56 (JNIEnv *env, jobject thiz, jstring jResourceInterface,
57  jobject jRepresentation, jobject jQueryParamsMap, jobject jListener);
58
59 JNIEXPORT void JNICALL
60 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_nativePost
61 (JNIEnv *env, jobject thiz, jstring jResourceInterface,
62  jobject jRepresentation, jobject jQueryParamsMap, jobject jListener);
63
64 JNIEXPORT void JNICALL
65 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_setConfigInfo
66 (JNIEnv *env, jobject thiz, jstring jConfigPath);
67
68 JNIEXPORT jint JNICALL
69 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_startVerification
70 (JNIEnv *env, jobject thiz, jint jReqType, jobject jListener);
71
72 JNIEXPORT void JNICALL
73 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_stopVerification
74 (JNIEnv *env, jobject thiz, jint jId);
75
76 JNIEXPORT void JNICALL
77 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_dispose
78 (JNIEnv *, jobject);
79
80 #ifdef __cplusplus
81 }
82 #endif
83
84 #endif
85