Updated Android for new API Changes
[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;)I
34  */
35 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeStart
36 (JNIEnv *, jobject, jobject, jobject, jboolean, jstring);
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:    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;)I
74  */
75 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeEnableRemoteService
76 (JNIEnv *, jobject, jstring);
77
78 /*
79  * Class:     org_iotivity_service_ns_provider_ProviderService
80  * Method:    nativeDisableRemoteService
81  * Signature: (Ljava/lang/String;)I
82  */
83 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeDisableRemoteService
84 (JNIEnv *, jobject, jstring);
85
86 /*
87  * Class:     org_iotivity_service_ns_provider_ProviderService
88  * Method:    nativeRegisterTopic
89  * Signature: (Ljava/lang/String;)I
90  */
91 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeRegisterTopic
92 (JNIEnv *, jobject, jstring);
93
94 /*
95  * Class:     org_iotivity_service_ns_provider_ProviderService
96  * Method:    nativeUnregisterTopic
97  * Signature: (Ljava/lang/String;)I
98  */
99 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeUnregisterTopic
100 (JNIEnv *, jobject, jstring);
101
102 /*
103  * Class:     org_iotivity_service_ns_provider_ProviderService
104  * Method:    nativeGetRegisteredTopicList
105  * Signature: ()Lorg/iotivity/service/ns/common/TopicsList;
106  */
107 JNIEXPORT jobject JNICALL Java_org_iotivity_service_ns_provider_ProviderService_nativeGetRegisteredTopicList
108 (JNIEnv *, jobject);
109
110 /*
111  * Class:     org_iotivity_service_ns_provider_Consumer
112  * Method:    nativeAcceptSubscription
113  * Signature: (Ljava/lang/String;Z)I
114  */
115 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_Consumer_nativeAcceptSubscription
116 (JNIEnv *, jobject, jstring, jboolean);
117
118 /*
119  * Class:     org_iotivity_service_ns_provider_Consumer
120  * Method:    nativeSetConsumerTopic
121  * Signature: (Ljava/lang/String;Ljava/lang/String;)I
122  */
123 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_Consumer_nativeSetConsumerTopic
124 (JNIEnv *, jobject, jstring, jstring);
125
126 /*
127  * Class:     org_iotivity_service_ns_provider_Consumer
128  * Method:    nativeUnsetConsumerTopic
129  * Signature: (Ljava/lang/String;Ljava/lang/String;)I
130  */
131 JNIEXPORT jint JNICALL Java_org_iotivity_service_ns_provider_Consumer_nativeUnsetConsumerTopic
132 (JNIEnv *, jobject, jstring, jstring);
133
134 /*
135  * Class:     org_iotivity_service_ns_provider_Consumer
136  * Method:    nativeGetConsumerTopicList
137  * Signature: (Ljava/lang/String;)Lorg/iotivity/service/ns/common/TopicsList;
138  */
139 JNIEXPORT jobject JNICALL
140 Java_org_iotivity_service_ns_provider_Consumer_nativeGetConsumerTopicList
141 (JNIEnv *, jobject, jstring);
142
143 #ifdef __cplusplus
144 }
145 #endif
146 #endif
147
148