1 /******************************************************************
3 * Copyright 2015 Samsung Electronics All Rights Reserved.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 ******************************************************************/
21 #ifndef JNI_RE_RCS_REMOTE_RESOURCE_OBJECT_H_
22 #define JNI_RE_RCS_REMOTE_RESOURCE_OBJECT_H_
28 void initRCSRemoteResourceObject(JNIEnvWrapper*);
29 void clearRCSRemoteResourceObject(JNIEnvWrapper*);
31 jobject newRemoteResourceObject(JNIEnvWrapper*);
37 JNIEXPORT jboolean JNICALL
38 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeIsMonitoring
41 JNIEXPORT jboolean JNICALL
42 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeIsCaching
45 JNIEXPORT jboolean JNICALL
46 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeIsObservable
49 JNIEXPORT void JNICALL
50 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeStartMonitoring
51 (JNIEnv*, jobject, jobject);
53 JNIEXPORT void JNICALL
54 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeStopMonitoring
57 JNIEXPORT jobject JNICALL
58 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetState
61 JNIEXPORT void JNICALL
62 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeStartCaching
63 (JNIEnv*, jobject, jobject cacheUpdateListener);
65 JNIEXPORT void JNICALL
66 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeStopCaching
69 JNIEXPORT jobject JNICALL
70 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetCacheState
73 JNIEXPORT jboolean JNICALL
74 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeIsCachedAvailable
77 JNIEXPORT jobject JNICALL
78 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetCachedAttributes
81 JNIEXPORT void JNICALL
82 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetRemoteAttributes
83 (JNIEnv*, jobject, jobject listener);
85 JNIEXPORT void JNICALL
86 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeSetRemoteAttributes
87 (JNIEnv*, jobject, jobject attrs, jobject listener);
89 JNIEXPORT jstring JNICALL
90 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetUri
93 JNIEXPORT jstring JNICALL
94 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetAddress
97 JNIEXPORT jobjectArray JNICALL
98 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetTypes
101 JNIEXPORT jobjectArray JNICALL
102 Java_org_iotivity_service_client_RcsRemoteResourceObject_nativeGetInterfaces
108 #endif // JNI_RE_RCS_REMOTE_RESOURCE_OBJECT_H_