diff options
author | Jaeho Lee <jaeho81.lee@samsung.com> | 2013-05-10 15:05:29 +0900 |
---|---|---|
committer | Jaeho Lee <jaeho81.lee@samsung.com> | 2013-05-10 15:05:29 +0900 |
commit | dfcf9f5dc6b2515eb3cebcd0e392beeaeb3223e2 (patch) | |
tree | ed08bfc8c4f25838d9aab4a50d09247fae845fef | |
parent | 0eb97f085056df1557980fa9fbf4b6cfebbebc26 (diff) | |
download | app-svc-dfcf9f5dc6b2515eb3cebcd0e392beeaeb3223e2.tar.gz app-svc-dfcf9f5dc6b2515eb3cebcd0e392beeaeb3223e2.tar.bz2 app-svc-dfcf9f5dc6b2515eb3cebcd0e392beeaeb3223e2.zip |
modified error handlesubmit/tizen_2.1/20130514.050907submit/tizen/20130517.044756accepted/tizen/20130520.100908tizen_2.1
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
-rw-r--r-- | packaging/app-svc.spec | 2 | ||||
-rwxr-xr-x | src/appsvc.c | 20 |
2 files changed, 14 insertions, 8 deletions
diff --git a/packaging/app-svc.spec b/packaging/app-svc.spec index c1b4c0f..16a06d0 100644 --- a/packaging/app-svc.spec +++ b/packaging/app-svc.spec @@ -1,6 +1,6 @@ Name: app-svc Summary: App svc -Version: 0.1.49 +Version: 0.1.50 Release: 1 Group: System/Libraries License: Apache License, Version 2.0 diff --git a/src/appsvc.c b/src/appsvc.c index af5c7a1..f4f5713 100755 --- a/src/appsvc.c +++ b/src/appsvc.c @@ -194,16 +194,22 @@ static int __run_svc_with_pkgname(char *pkgname, bundle *b, int request_code, ap cb_info = __create_rescb(request_code, cbfunc, data); ret = aul_launch_app_with_result(pkgname, b, __aul_cb, cb_info); - if(ret == AUL_R_EILLACC) { - ret = APPSVC_RET_EILLACC; - } else if(ret < 0) { - ret = APPSVC_RET_ELAUNCH; - } } else { _D("pkg_name : %s - no result", pkgname); ret = aul_launch_app(pkgname, b); - if(ret < 0) - ret = APPSVC_RET_ELAUNCH; + } + + if(ret < 0) { + switch (ret) { + case AUL_R_EILLACC: + ret = APPSVC_RET_EILLACC; + break; + case AUL_R_EINVAL: + ret = APPSVC_RET_EINVAL; + break; + default: + ret = APPSVC_RET_ELAUNCH; + } } return ret; |