replace : iotivity -> iotivity-sec
[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: (Lorg/iotivity/service/ns/provider/ProviderService/OnConsumerSubscribedListener;Lorg/iotivity/service/ns/provider/ProviderService/OnMessageSynchronizedListener;ZLjava/lang/String;Z)V
34  */
35 JNIEXPORT void JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeStart
36 (JNIEnv *, jobject, jobject, jobject, jboolean, jstring, jboolean);
37
38 /*
39  * Class:     org_iotivity_service_ns_provider_ProviderService
40  * Method:    nativeStop
41  * Signature: ()V
42  */
43 JNIEXPORT void 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;)V
50  */
51 JNIEXPORT void 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:    nativeCreateMessage
65  * Signature: ()Lorg/iotivity/service/ns/common/Message;
66  */
67 JNIEXPORT jobject JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeCreateMessage
68 (JNIEnv *, jobject);
69
70 /*
71  * Class:     org_iotivity_service_ns_provider_ProviderService
72  * Method:    nativeEnableRemoteService
73  * Signature: (Ljava/lang/String;)V
74  */
75 JNIEXPORT void JNICALL
76 Java_org_iotivity_service_ns_provider_ProviderService_nativeEnableRemoteService
77 (JNIEnv *, jobject, jstring);
78
79 /*
80  * Class:     org_iotivity_service_ns_provider_ProviderService
81  * Method:    nativeDisableRemoteService
82  * Signature: (Ljava/lang/String;)V
83  */
84 JNIEXPORT void JNICALL
85 Java_org_iotivity_service_ns_provider_ProviderService_nativeDisableRemoteService
86 (JNIEnv *, jobject, jstring);
87
88 /*
89  * Class:     org_iotivity_service_ns_provider_ProviderService
90  * Method:    nativeSubscribeMQService
91  * Signature: (Ljava/lang/String;Ljava/lang/String;)V
92  */
93 JNIEXPORT void JNICALL
94 Java_org_iotivity_service_ns_provider_ProviderService_nativeSubscribeMQService
95 (JNIEnv *, jobject, jstring, jstring);
96
97 /*
98  * Class:     org_iotivity_service_ns_provider_ProviderService
99  * Method:    nativeRegisterTopic
100  * Signature: (Ljava/lang/String;)V
101  */
102 JNIEXPORT void JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeRegisterTopic
103 (JNIEnv *, jobject, jstring);
104
105 /*
106  * Class:     org_iotivity_service_ns_provider_ProviderService
107  * Method:    nativeUnregisterTopic
108  * Signature: (Ljava/lang/String;)V
109  */
110 JNIEXPORT void JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeUnregisterTopic
111 (JNIEnv *, jobject, jstring);
112
113 /*
114  * Class:     org_iotivity_service_ns_provider_ProviderService
115  * Method:    nativeGetRegisteredTopicList
116  * Signature: ()Lorg/iotivity/service/ns/common/TopicsList;
117  */
118 JNIEXPORT jobject JNICALL
119 Java_org_iotivity_service_ns_provider_ProviderService_nativeGetRegisteredTopicList
120 (JNIEnv *, jobject);
121
122 /*
123  * Class:     org_iotivity_service_ns_provider_Consumer
124  * Method:    nativeAcceptSubscription
125  * Signature: (Ljava/lang/String;Z)V
126  */
127 JNIEXPORT void JNICALL Java_org_iotivity_service_ns_provider_Consumer_nativeAcceptSubscription
128 (JNIEnv *, jobject, jstring, jboolean);
129
130 /*
131  * Class:     org_iotivity_service_ns_provider_Consumer
132  * Method:    nativeSetConsumerTopic
133  * Signature: (Ljava/lang/String;Ljava/lang/String;)V
134  */
135 JNIEXPORT void JNICALL Java_org_iotivity_service_ns_provider_Consumer_nativeSetConsumerTopic
136 (JNIEnv *, jobject, jstring, jstring);
137
138 /*
139  * Class:     org_iotivity_service_ns_provider_Consumer
140  * Method:    nativeUnsetConsumerTopic
141  * Signature: (Ljava/lang/String;Ljava/lang/String;)V
142  */
143 JNIEXPORT void JNICALL Java_org_iotivity_service_ns_provider_Consumer_nativeUnsetConsumerTopic
144 (JNIEnv *, jobject, jstring, jstring);
145
146 /*
147  * Class:     org_iotivity_service_ns_provider_Consumer
148  * Method:    nativeGetConsumerTopicList
149  * Signature: (Ljava/lang/String;)Lorg/iotivity/service/ns/common/TopicsList;
150  */
151 JNIEXPORT jobject JNICALL
152 Java_org_iotivity_service_ns_provider_Consumer_nativeGetConsumerTopicList
153 (JNIEnv *, jobject, jstring);
154
155 #ifdef __cplusplus
156 }
157 #endif
158 #endif
159
160