diff options
author | Jiwoong Im <jiwoong.im@samsung.com> | 2015-12-01 20:48:05 +0900 |
---|---|---|
committer | Jiwoong Im <jiwoong.im@samsung.com> | 2015-12-06 17:05:48 -0800 |
commit | 5d733d5578bbf79f1057a2206bb0b4527d6d0ca2 (patch) | |
tree | 6580c40791609f2b0aaa097910d36a8f44ba71fd | |
parent | 2ca405da7445400c2189c07c75e534ce02cd1ba9 (diff) | |
download | aul-1-5d733d5578bbf79f1057a2206bb0b4527d6d0ca2.tar.gz aul-1-5d733d5578bbf79f1057a2206bb0b4527d6d0ca2.tar.bz2 aul-1-5d733d5578bbf79f1057a2206bb0b4527d6d0ca2.zip |
support share-panel & app-selector 2.4 migrationsubmit/tizen/20151207.051443accepted/tizen/wearable/20151208.123452accepted/tizen/tv/20151208.123435accepted/tizen/mobile/20151208.123418
- open aul_forward_app api
- enable to send cancel result by aul_svc_send_result
Change-Id: I4937a416386cd80c3ebc0ba780b37ab9cda1797e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rw-r--r-- | include/aul.h | 5 | ||||
-rwxr-xr-x | src/service.c | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/include/aul.h b/include/aul.h index 981b7023..52a6d454 100644 --- a/include/aul.h +++ b/include/aul.h @@ -1875,6 +1875,11 @@ int aul_check_tep_mount(const char *tep_path); */ int aul_is_tep_mount_dbus_done(const char *tep_string); +/* + * This API is only for Appfw internally. + */ +int aul_forward_app(const char *appid, bundle *kb); + #ifdef __cplusplus } #endif diff --git a/src/service.c b/src/service.c index e3e49f13..243fb1f5 100755 --- a/src/service.c +++ b/src/service.c @@ -1138,18 +1138,16 @@ SLPAPI int aul_svc_send_result(bundle *b, aul_svc_result_val result) return AUL_SVC_RET_EINVAL; } - if (result != AUL_SVC_RES_OK && result != AUL_SVC_RES_NOT_OK) { - _E("invalid result %d", (int)result); - return AUL_SVC_RET_EINVAL; - } - /* add result_code to bundle */ snprintf(tmp, MAX_LOCAL_BUFSZ, "%d", (int)result); ret = __set_bundle(b, AUL_SVC_K_RES_VAL, tmp); if (ret < 0) return AUL_SVC_RET_ERROR; - ret = aul_send_service_result(b); + if (result == AUL_SVC_RES_CANCEL) + ret = aul_send_result(b, 1); + else + ret = aul_send_result(b, 0); /* remove result_code from bundle */ bundle_del(b, AUL_SVC_K_RES_VAL); |