X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fnotification%2Fandroid%2Fnotification-service%2Fsrc%2Fmain%2Fjni%2Fconsumer%2FJniNotificationConsumer.h;h=cbcbce1aa37c9c9014c1f9d43a87bac8130672cd;hb=refs%2Ftags%2Ftizen_4.0.m2_release;hp=d742cc205babfc74c13c23b148062b3534dd75f8;hpb=bf72b57c4f5711f045c34288566c078ef72df990;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/notification/android/notification-service/src/main/jni/consumer/JniNotificationConsumer.h b/service/notification/android/notification-service/src/main/jni/consumer/JniNotificationConsumer.h index d742cc2..cbcbce1 100755 --- a/service/notification/android/notification-service/src/main/jni/consumer/JniNotificationConsumer.h +++ b/service/notification/android/notification-service/src/main/jni/consumer/JniNotificationConsumer.h @@ -31,10 +31,10 @@ extern "C" { /* * Class: org_iotivity_service_ns_consumer_ConsumerService * Method: nativeStart - * Signature: (Lorg/iotivity/service/ns/consumer/ConsumerService/OnProviderDiscoveredListner;Lorg/iotivity/service/ns/consumer/ConsumerService/OnSubscriptionAcceptedListener;)V + * Signature: (Lorg/iotivity/service/ns/consumer/ConsumerService/OnProviderDiscoveredListener;)V */ JNIEXPORT void JNICALL Java_org_iotivity_service_ns_consumer_ConsumerService_nativeStart -(JNIEnv *, jobject, jobject, jobject); +(JNIEnv *, jobject, jobject); /* * Class: org_iotivity_service_ns_consumer_ConsumerService @@ -47,27 +47,28 @@ JNIEXPORT void JNICALL Java_org_iotivity_service_ns_consumer_ConsumerService_nat /* * Class: org_iotivity_service_ns_consumer_ConsumerService * Method: nativeEnableRemoteService - * Signature: (Ljava/lang/String;)jint + * Signature: (Ljava/lang/String;)V */ -JNIEXPORT jint JNICALL +JNIEXPORT void JNICALL Java_org_iotivity_service_ns_consumer_ConsumerService_nativeEnableRemoteService (JNIEnv *, jobject, jstring); /* * Class: org_iotivity_service_ns_consumer_ConsumerService - * Method: nativeRescanProvider - * Signature: ()V + * Method: nativeSubscribeMQService + * Signature: (Ljava/lang/String;Ljava/lang/String;)V */ -JNIEXPORT void JNICALL Java_org_iotivity_service_ns_consumer_ConsumerService_nativeRescanProvider -(JNIEnv *, jobject); +JNIEXPORT void JNICALL +Java_org_iotivity_service_ns_consumer_ConsumerService_nativeSubscribeMQService +(JNIEnv *, jobject, jstring, jstring); /* * Class: org_iotivity_service_ns_consumer_ConsumerService - * Method: nativeGetProvider - * Signature: (Ljava/lang/String;)Lorg/iotivity/service/ns/consumer/Provider; + * Method: nativeRescanProvider + * Signature: ()V */ -JNIEXPORT jobject JNICALL Java_org_iotivity_service_ns_consumer_ConsumerService_nativeGetProvider -(JNIEnv *, jobject, jstring); +JNIEXPORT void JNICALL Java_org_iotivity_service_ns_consumer_ConsumerService_nativeRescanProvider +(JNIEnv *, jobject); /* * Class: org_iotivity_service_ns_consumer_Provider @@ -77,6 +78,7 @@ JNIEXPORT jobject JNICALL Java_org_iotivity_service_ns_consumer_ConsumerService_ JNIEXPORT void JNICALL Java_org_iotivity_service_ns_consumer_Provider_nativeSubscribe (JNIEnv *, jobject); + /* * Class: org_iotivity_service_ns_consumer_Provider * Method: nativeUnsubscribe @@ -96,10 +98,50 @@ JNIEXPORT void JNICALL Java_org_iotivity_service_ns_consumer_Provider_nativeSend /* * Class: org_iotivity_service_ns_consumer_Provider * Method: nativeSetListener - * Signature: (Lorg/iotivity/service/ns/consumer/Provider/OnMessageReceivedListner;Lorg/iotivity/service/ns/consumer/Provider/OnSyncInfoReceivedListner;)V + * Signature: (Lorg/iotivity/service/ns/consumer/Provider/OnProviderStateListener;Lorg/iotivity/service/ns/consumer/Provider/OnMessageReceivedListener;Lorg/iotivity/service/ns/consumer/Provider/OnSyncInfoReceivedListener;)V */ JNIEXPORT void JNICALL Java_org_iotivity_service_ns_consumer_Provider_nativeSetListener -(JNIEnv *, jobject, jobject, jobject); +(JNIEnv *, jobject, jobject, jobject, jobject); + +/* + * Class: org_iotivity_service_ns_consumer_Provider + * Method: nativeGetTopicList + * Signature: ()Lorg/iotivity/service/ns/common/TopicsList; + */ +JNIEXPORT jobject JNICALL Java_org_iotivity_service_ns_consumer_Provider_nativeGetTopicList +(JNIEnv *, jobject); + +/* + * Class: org_iotivity_service_ns_consumer_Provider + * Method: nativeUpdateTopicList + * Signature: (Lorg/iotivity/service/ns/common/TopicsList;)V + */ +JNIEXPORT void JNICALL Java_org_iotivity_service_ns_consumer_Provider_nativeUpdateTopicList +(JNIEnv *, jobject, jobject); + +/* + * Class: org_iotivity_service_ns_consumer_Provider + * Method: nativeGetProviderState + * Signature: ()Lorg/iotivity/service/ns/consumer/Provider$ProviderState; + */ +JNIEXPORT jobject JNICALL Java_org_iotivity_service_ns_consumer_Provider_nativeGetProviderState +(JNIEnv *, jobject); + +/* + * Class: org_iotivity_service_ns_consumer_Provider + * Method: nativeIsSubscribed + * Signature: ()Z + */ +JNIEXPORT jboolean JNICALL Java_org_iotivity_service_ns_consumer_Provider_nativeIsSubscribed +(JNIEnv *, jobject); + +/* + * Class: org_iotivity_service_ns_consumer_Provider + * Method: nativeDispose + * Signature: ()V + */ +JNIEXPORT void JNICALL Java_org_iotivity_service_ns_consumer_Provider_nativeDispose +(JNIEnv *env, jobject object); #ifdef __cplusplus }