* synchronization\r
* @param[in] sync Synchronization information of the notification message\r
*/\r
-typedef void (*NSSyncCallback)(NSSyncInfo *);\r
+typedef void (*NSProviderSyncInfoCallback)(NSSyncInfo *);\r
\r
/**\r
* Initialize notification service for provider\r
* @param[in] syncCallback Callback function to register for receiving sync data\r
* @return ::NS_OK or result code of NSResult\r
*/\r
-NSResult NSStartProvider(NSAccessPolicy policy, NSSubscribeRequestCallback subscribeRequestCb,\r
- NSSyncCallback syncCb);\r
+NSResult NSStartProvider(bool policy, NSSubscribeRequestCallback subscribeRequestCb,\r
+ NSProviderSyncInfoCallback syncCb);\r
\r
/**\r
* Terminate notification service for provider\r
NSResult NSStopProvider();\r
\r
/**\r
+ * Request to publish resource to cloud server\r
+ * @param[in] server address combined with IP address and port number using delimiter :\r
+ * @return ::NS_OK or result code of NSResult\r
+ */\r
+NSResult NSProviderEnableRemoteService(char *serverAddress);\r
+\r
+/**\r
+ * Request to cancel remote service using cloud server\r
+ * @param[in] server address combined with IP address and port number using delimiter :\r
+ * @return ::NS_OK or result code of NSResult\r
+ */\r
+NSResult NSProviderDisableRemoteService(char *serverAddress);\r
+\r
+/**\r
* Send notification message to all subscribers\r
* @param[in] message Notification message including id, title, contentText\r
* @return ::NS_OK or result code of NSResult\r
* @param[in] accepted the result of acceptance; Allow or Deny\r
* @return ::NS_OK or result code of NSResult\r
*/\r
-NSResult NSAccept(NSConsumer *consumer, bool accepted);\r
+NSResult NSAcceptSubscription(NSConsumer *consumer, bool accepted);\r
\r
/**\r
* Get consumer list that is stored in the cache of notification service\r
* @param[in] message Notification message to synchronize the status\r
* @return ::NS_OK or result code of NSResult\r
*/\r
-NSResult NSReadCheck(NSMessage *);\r
+NSResult NSProviderSendSyncInfo(uint64_t messageId, NSSyncType type);\r
+\r
+\r
+/**\r
+ * Initialize NSMessage struct, our service set message id and provider(device) id\r
+ * @return ::NSMessage *\r
+ */\r
+NSMessage * NSCreateMessage();\r
\r
#ifdef __cplusplus\r
}\r