Simulator plug-in crashed due to recent changes in the OCDeviceInfo
structure in platform layer. Handled the changes required in simulater
module.
Change-Id: I8f4b31857b25628fa0ac888aeb42ee1e5d84885c
Signed-off-by: G S Senthil Kumar <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6221
Reviewed-by: Radha Bhavani <radha.p@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
typedef OCStackResult (*RegisterDeviceInfo)(const OCDeviceInfo);
- OCDeviceInfo ocDeviceInfo;
+ OCDeviceInfo ocDeviceInfo {nullptr, nullptr};
ocDeviceInfo.deviceName = const_cast<char *>(deviceName.c_str());
invokeocplatform(static_cast<RegisterDeviceInfo>(OC::OCPlatform::registerDeviceInfo),
ocDeviceInfo);