* ret = 0 OC_STACK_OK
* ret = 49 OC_STACK_DUPLICATE_UUID
*/
- if ((ret == 0 || ret == 49) && group_invite_info) {
+ if (OC_STACK_OK == ret && group_invite_info) {
mdgd_invited_device_t *device;
GList *iter = NULL;
gboolean is_exist = FALSE;
g_free(device->group_name);
g_free(device);
}
+ } else if (OC_STACK_DUPLICATE_UUID == ret) {
+ /* Replace error code for CAPI */
+ ret = MDGD_ERROR_ALREADY_REGISTERED;
+ } else if (OC_STACK_INVALID_PARAM == ret) {
+ /* Replace error code for CAPI */
+ ret = MDGD_ERROR_OPERATION_FAILED;
}
mdgd_group_free_invite_info();
{
LOG_DEBUG("Notify group eject %d", result);
+ /* Replace error code for CAPI */
+ if (OC_STACK_INVALID_PARAM == result)
+ result = MDGD_ERROR_ALREADY_REGISTERED;
+
notify_group_device_eject_result(result);
}