- AddDevice() and PMCloneOCProvisionDev() are changed.
Since change 2333 introduced DeviceStatus memeber in OCProvisionDev_t,
Add and Clone functions should handle this new member properly.
Change-Id: I1b227b8d70ca43730b098bc1bfc5837706c78ea7
Signed-off-by: Woochul Shim <woochul.shim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2535
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
ptr->endpoint.adapter = adapter;
ptr->next = NULL;
ptr->connType = connType;
+ ptr->devStatus = DEV_STATUS_ON; //AddDevice is called when discovery(=alive)
LL_PREPEND(*ppDevicesList, ptr);
}
}
newDev->securePort = src->securePort;
- //TODO: Below comment line should be activated after 2333 change is merged
- //newDev->devStatus = src->devStatus;
+ newDev->devStatus = src->devStatus;
newDev->connType = src->connType;
newDev->next = NULL;