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_RCS_RESOURCE_OBJECT_H
22 #define JNI_RCS_RESOURCE_OBJECT_H
28 void initRCSResourceObject(JNIEnvWrapper*);
29 void clearRCSResourceObject(JNIEnvWrapper*);
35 JNIEXPORT jint JNICALL
36 Java_org_iotivity_service_server_RcsResponse_nativeGetDefaultErrorCode
39 JNIEXPORT jobject JNICALL
40 Java_org_iotivity_service_server_RcsResourceObject_nativeBuild
41 (JNIEnv*, jclass, jstring uri, jstring type, jstring interface, jboolean isObservable,
42 jboolean isDiscovervable, jobject attrs);
44 JNIEXPORT void JNICALL
45 Java_org_iotivity_service_server_RcsResourceObject_nativeSetAttribute
46 (JNIEnv*, jobject, jstring key, jobject value);
48 JNIEXPORT jobject JNICALL
49 Java_org_iotivity_service_server_RcsResourceObject_nativeGetAttributeValue
50 (JNIEnv*, jobject, jstring key);
52 JNIEXPORT jboolean JNICALL
53 Java_org_iotivity_service_server_RcsResourceObject_nativeRemoveAttribute
54 (JNIEnv*, jobject, jstring key);
56 JNIEXPORT jboolean JNICALL
57 Java_org_iotivity_service_server_RcsResourceObject_nativeContainsAttribute
58 (JNIEnv*, jobject, jstring key);
60 JNIEXPORT jobject JNICALL
61 Java_org_iotivity_service_server_RcsResourceObject_nativeGetAttributes
64 JNIEXPORT jboolean JNICALL
65 Java_org_iotivity_service_server_RcsResourceObject_nativeIsObservable
68 JNIEXPORT jboolean JNICALL
69 Java_org_iotivity_service_server_RcsResourceObject_nativeIsDiscoverable
72 JNIEXPORT void JNICALL
73 Java_org_iotivity_service_server_RcsResourceObject_nativeSetGetRequestHandler
74 (JNIEnv*, jobject, jobject handler);
76 JNIEXPORT void JNICALL
77 Java_org_iotivity_service_server_RcsResourceObject_nativeSetSetRequestHandler
78 (JNIEnv*, jobject, jobject handler);
80 JNIEXPORT void JNICALL
81 Java_org_iotivity_service_server_RcsResourceObject_nativeAddAttributeUpdatedListener
82 (JNIEnv*, jobject, jstring key, jobject listenr);
84 JNIEXPORT jboolean JNICALL
85 Java_org_iotivity_service_server_RcsResourceObject_nativeRemoveAttributeUpdatedListener
86 (JNIEnv*, jobject, jstring key);
88 JNIEXPORT void JNICALL Java_org_iotivity_service_server_RcsResourceObject_nativeNotify
91 JNIEXPORT void JNICALL
92 Java_org_iotivity_service_server_RcsResourceObject_nativeSetAutoNotifyPolicy
93 (JNIEnv*, jobject, jobject policyObj);
95 JNIEXPORT jobject JNICALL
96 Java_org_iotivity_service_server_RcsResourceObject_nativeGetAutoNotifyPolicy
99 JNIEXPORT void JNICALL
100 Java_org_iotivity_service_server_RcsResourceObject_nativeSetSetRequestHandlerPolicy
101 (JNIEnv*, jobject, jobject policyObj);
103 JNIEXPORT jobject JNICALL
104 Java_org_iotivity_service_server_RcsResourceObject_nativeGetSetRequestHandlerPolicy
110 #endif // JNI_RCS_RESOURCE_OBJECT_H