NSMessage include topic.
so Add util for related topic in NSUtil.c
Change-Id: I5be2dd86667508e999af08c7634755cdbffd7885
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10573
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
NSFreeMalloc(&(obj->title));
NSFreeMalloc(&(obj->contentText));
NSFreeMalloc(&(obj->sourceName));
+ NSFreeMalloc(&(obj->topic));
NSFreeMediaContents(obj->mediaContents);
OICFree(obj);
newMsg->mediaContents = NSDuplicateMediaContents(copyMsg->mediaContents);
}
+ if (copyMsg->topic)
+ {
+ newMsg->topic = OICStrdup(copyMsg->topic);
+ }
+
return newMsg;
}
msg->contentText = NULL;
msg->sourceName = NULL;
msg->mediaContents = NULL;
+ msg->topic = NULL;
return msg;
}