replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / service / notification / include / NSProviderInterface.h
index 0616233..260c554 100644 (file)
@@ -35,7 +35,6 @@ extern "C"
 #include "NSCommon.h"\r
 #include <stdbool.h>\r
 #include <stdint.h>\r
-\r
 /**\r
  * Invoked when provider receives the subscription request of consumer.\r
  * @param[in] consumer  Consumer who subscribes the notification message resource\r
@@ -99,6 +98,16 @@ NSResult NSProviderEnableRemoteService(char * serverAddress);
  */\r
 NSResult NSProviderDisableRemoteService(char * serverAddress);\r
 \r
+#ifdef WITH_MQ\r
+/**\r
+ * Request to subscribe to remote MQ address as parameter.\r
+ * @param[in] server address combined with IP address and port number and MQ broker uri using delimiter :\r
+ * @param[in] topicName the interest Topic name for subscription.\r
+ * @return ::NS_OK or result code of NSResult\r
+ */\r
+NSResult NSProviderSubscribeMQService(const char * serverAddress, const char * topicName);\r
+#endif\r
+\r
 /**\r
  * Send notification message to all subscribers\r
  * @param[in]  message  Notification message including id, title, contentText\r