1 //******************************************************************
3 // Copyright 2016 Samsung Electronics All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 #include "JniNotificationCommon.h"
23 #ifndef JNI_NOTIFICATION_PROVIDER_H
24 #define JNI_NOTIFICATION_PROVIDER_H
31 * Class: org_iotivity_service_ns_provider_ProviderService
33 * Signature: (ZLorg/iotivity/service/ns/provider/ProviderService/OnSubscriptionListener;Lorg/iotivity/service/ns/provider/ProviderService/OnSyncInfoListener;)I
35 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeStart
36 (JNIEnv *, jobject, jboolean, jobject, jobject);
39 * Class: org_iotivity_service_ns_provider_ProviderService
43 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeStop
47 * Class: org_iotivity_service_ns_provider_ProviderService
48 * Method: nativeSendMessage
49 * Signature: (Lorg/iotivity/service/ns/common/Message;)I
51 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeSendMessage
52 (JNIEnv *, jobject, jobject);
55 * Class: org_iotivity_service_ns_provider_ProviderService
56 * Method: nativeSendSyncInfo
59 JNIEXPORT void JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeSendSyncInfo
60 (JNIEnv *, jobject, jlong, jint);
63 * Class: org_iotivity_service_ns_provider_ProviderService
64 * Method: nativeCreateMessage
65 * Signature: ()Lorg/iotivity/service/ns/common/Message;
67 JNIEXPORT jobject JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeCreateMessage
71 * Class: org_iotivity_service_ns_provider_ProviderService
72 * Method: nativeEnableRemoteService
73 * Signature: (Ljava/lang/String;)I
75 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeEnableRemoteService
76 (JNIEnv *, jobject, jstring);
79 * Class: org_iotivity_service_ns_provider_ProviderService
80 * Method: nativeDisableRemoteService
81 * Signature: (Ljava/lang/String;)I
83 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeDisableRemoteService
84 (JNIEnv *, jobject, jstring);
87 * Class: org_iotivity_service_ns_provider_ProviderService
88 * Method: nativeAddTopic
89 * Signature: (Ljava/lang/String;)I
91 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeAddTopic
92 (JNIEnv *, jobject, jstring);
95 * Class: org_iotivity_service_ns_provider_ProviderService
96 * Method: nativeDeleteTopic
97 * Signature: (Ljava/lang/String;)I
99 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeDeleteTopic
100 (JNIEnv *, jobject, jstring);
103 * Class: org_iotivity_service_ns_provider_ProviderService
104 * Method: nativeGetTopics
105 * Signature: ()Lorg/iotivity/service/ns/common/TopicsList;
107 JNIEXPORT jobject JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeGetTopics
111 * Class: org_iotivity_service_ns_provider_Consumer
112 * Method: nativeAcceptSubscription
113 * Signature: (Lorg/iotivity/service/ns/provider/Consumer;Z)I
115 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_Consumer_nativeAcceptSubscription
116 (JNIEnv *, jobject, jobject, jboolean);
119 * Class: org_iotivity_service_ns_provider_Consumer
120 * Method: nativeSelectTopic
121 * Signature: (Ljava/lang/String;Ljava/lang/String;)I
123 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_Consumer_nativeSelectTopic
124 (JNIEnv *, jobject, jstring, jstring);
127 * Class: org_iotivity_service_ns_provider_Consumer
128 * Method: nativeUnselectTopic
129 * Signature: (Ljava/lang/String;Ljava/lang/String;)I
131 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_Consumer_nativeUnselectTopic
132 (JNIEnv *, jobject, jstring, jstring);
135 * Class: org_iotivity_service_ns_provider_Consumer
136 * Method: nativeGetConsumerTopics
137 * Signature: (Ljava/lang/String;)Lorg/iotivity/service/ns/common/TopicsList;
139 JNIEXPORT jobject JNICALL
140 Java_org_iotivity_service_ns_provider_Consumer_nativeGetConsumerTopics
141 (JNIEnv *, jobject, jstring);