Merge remote-tracking branch 'origin/notification-service'
[platform/upstream/iotivity.git] / service / notification / android / notification-service / src / main / jni / provider / JniNotificationProvider.h
1 //******************************************************************
2 //
3 // Copyright 2016 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 #include "JniNotificationCommon.h"
22
23 #ifndef JNI_NOTIFICATION_PROVIDER_H
24 #define JNI_NOTIFICATION_PROVIDER_H
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 /*
31  * Class:     org_iotivity_service_ns_provider_ProviderService
32  * Method:    nativeStart
33  * Signature: (ZLorg/iotivity/service/ns/provider/ProviderService/OnSubscriptionListener;Lorg/iotivity/service/ns/provider/ProviderService/OnSyncInfoListener;)I
34  */
35 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeStart
36 (JNIEnv *, jobject, jboolean, jobject, jobject);
37
38 /*
39  * Class:     org_iotivity_service_ns_provider_ProviderService
40  * Method:    nativeStop
41  * Signature: ()I
42  */
43 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeStop
44 (JNIEnv *, jobject);
45
46 /*
47  * Class:     org_iotivity_service_ns_provider_ProviderService
48  * Method:    nativeSendMessage
49  * Signature: (Lorg/iotivity/service/ns/common/Message;)I
50  */
51 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeSendMessage
52 (JNIEnv *, jobject, jobject);
53
54 /*
55  * Class:     org_iotivity_service_ns_provider_ProviderService
56  * Method:    nativeSendSyncInfo
57  * Signature: (JI)V
58  */
59 JNIEXPORT void JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeSendSyncInfo
60 (JNIEnv *, jobject, jlong, jint);
61
62 /*
63  * Class:     org_iotivity_service_ns_provider_ProviderService
64  * Method:    nativeEnableRemoteService
65  * Signature: (Ljava/lang/String;)I
66  */
67 JNIEXPORT jint JNICALL
68 Java_org_iotivity_service_ns_provider_ProviderService_nativeEnableRemoteService
69 (JNIEnv *, jobject, jstring);
70
71 /*
72  * Class:     org_iotivity_service_ns_provider_ProviderService
73  * Method:    nativeDisableRemoteService
74  * Signature: (Ljava/lang/String;)I
75  */
76 JNIEXPORT jint JNICALL
77 Java_org_iotivity_service_ns_provider_ProviderService_nativeDisableRemoteService
78 (JNIEnv *, jobject, jstring);
79
80 /*
81  * Class:     org_iotivity_service_ns_provider_ProviderService
82  * Method:    nativeAddTopic
83  * Signature: (Ljava/lang/String;)I
84  */
85 JNIEXPORT jint JNICALL
86 Java_org_iotivity_service_ns_provider_ProviderService_nativeAddTopic
87 (JNIEnv *, jobject, jstring);
88
89 /*
90  * Class:     org_iotivity_service_ns_provider_ProviderService
91  * Method:    nativeDeleteTopic
92  * Signature: (Ljava/lang/String;)I
93  */
94 JNIEXPORT jint JNICALL
95 Java_org_iotivity_service_ns_provider_ProviderService_nativeDeleteTopic
96 (JNIEnv *, jobject, jstring);
97
98 /*
99  * Class:     org_iotivity_service_ns_provider_ProviderService
100  * Method:    nativeGetTopics
101  * Signature: ()Lorg/iotivity/service/ns/common/TopicsList;
102  */
103 JNIEXPORT jobject JNICALL
104 Java_org_iotivity_service_ns_provider_ProviderService_nativeGetTopics
105 (JNIEnv *, jobject);
106
107 /*
108  * Class:     org_iotivity_service_ns_provider_Consumer
109  * Method:    nativeAcceptSubscription
110  * Signature: (Lorg/iotivity/service/ns/provider/Consumer;Z)I
111  */
112 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_Consumer_nativeAcceptSubscription
113 (JNIEnv *, jobject, jobject, jboolean);
114
115 /*
116  * Class:     org_iotivity_service_ns_provider_Consumer
117  * Method:    nativeSelectTopic
118  * Signature: (Ljava/lang/String;Ljava/lang/String;)I
119  */
120 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_Consumer_nativeSelectTopic
121 (JNIEnv *, jobject, jstring, jstring);
122
123 /*
124  * Class:     org_iotivity_service_ns_provider_Consumer
125  * Method:    nativeUnselectTopic
126  * Signature: (Ljava/lang/String;Ljava/lang/String;)I
127  */
128 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_Consumer_nativeUnselectTopic
129 (JNIEnv *, jobject, jstring, jstring);
130
131 /*
132  * Class:     org_iotivity_service_ns_provider_Consumer
133  * Method:    nativeGetConsumerTopics
134  * Signature: (Ljava/lang/String;)Lorg/iotivity/service/ns/common/TopicsList;
135  */
136 JNIEXPORT jobject JNICALL
137 Java_org_iotivity_service_ns_provider_Consumer_nativeGetConsumerTopics
138 (JNIEnv *, jobject, jstring);
139
140 #ifdef __cplusplus
141 }
142 #endif
143 #endif
144
145