Add a return value of widget_instance_trigger_update API 42/139242/2 accepted/tizen/3.0/common/20170721.115155 accepted/tizen/3.0/ivi/20170721.023936 accepted/tizen/3.0/mobile/20170721.023903 accepted/tizen/3.0/tv/20170721.023914 accepted/tizen/3.0/wearable/20170721.023925 submit/tizen_3.0/20170719.221437
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 18 Jul 2017 05:18:36 +0000 (14:18 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Tue, 18 Jul 2017 05:22:37 +0000 (05:22 +0000)
When getting the AUL_R_ECANCELED from the amd, the API will return
the WIDGET_ERROR_CANCELED.
This path is for backward compatibility.

Requires:
 - https://review.tizen.org/gerrit/#/c/139230/ [aul]
 - https://review.tizen.org/gerrit/#/c/139241/ [amd]
 - https://review.tizen.org/gerrit/#/c/139242/ [widget-service]

Change-Id: I947aaf6283663894f532be7dbfe77e12bdfa6779
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/widget_instance.c

index dcbdaf2836f2b4bb97e2f646dcbbe5fc93395c65..cefdd6be820a55a5463cd57824cc0e00a649a93d 100644 (file)
@@ -1026,6 +1026,9 @@ EAPI int widget_instance_trigger_update_v2(const char *widget_id,
        case AUL_R_EINVAL:
                ret = WIDGET_ERROR_INVALID_PARAMETER;
                break;
+       case AUL_R_ECANCELED:
+               ret = WIDGET_ERROR_CANCELED;
+               break;
        default:
                ret = WIDGET_ERROR_FAULT;
        }