return NS_OK;\r
}\r
\r
-NSResult NSSubscribeTopicList(char *consumerId, NSTopicList *topicList)\r
-{\r
- NS_LOG(DEBUG, "NSSubscribeTopicList()");\r
-\r
- if(!topicList)\r
- {\r
- NS_LOG(ERROR, "no topics");\r
- return NS_ERROR;\r
- }\r
-\r
- if(!consumerId)\r
- {\r
- NS_LOG(ERROR, "invalid consumer id");\r
- return NS_ERROR;\r
- }\r
-\r
- OCResourceHandle rHandle = NULL;\r
- if(NSPutTopicResource(topicList, &rHandle) != NS_OK)\r
- {\r
- NS_LOG(ERROR, "Fail to put topic resource");\r
- return NS_ERROR;\r
- }\r
-\r
- //TODO it will change logic.\r
- //NSStoreTopics(consumerId, topicList->head);\r
-\r
- NS_LOG(DEBUG, "NSSubscribeTopicList() NS_OK");\r
- return NS_OK;\r
-}\r
-\r
NSResult NSSendTopicUpdation()\r
{\r
NS_LOG(DEBUG, "NSSendTopicUpdation - IN");\r