From: Jaeho Lee Date: Mon, 11 Mar 2013 13:28:40 +0000 (+0900) Subject: added a error X-Git-Tag: 2.1b_release~2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=618642ebaf66df03d15928c18f336e690d1f7e1c;p=platform%2Fcore%2Fappfw%2Fapp-svc.git added a error Signed-off-by: Jaeho Lee --- diff --git a/include/appsvc.h b/include/appsvc.h index 4a98f39..d01aaa5 100755 --- a/include/appsvc.h +++ b/include/appsvc.h @@ -102,6 +102,7 @@ extern "C" { * @brief Return values in appsvc. */ typedef enum _appsvc_return_val { + APPSVC_RET_EILLACC = -5, /**< Illegal Access */ APPSVC_RET_ELAUNCH = -4, /**< Failure on launching the app */ APPSVC_RET_ENOMATCH = -3, /**< No matching result Error */ APPSVC_RET_EINVAL = -2, /**< Invalid argument */ diff --git a/packaging/app-svc.spec b/packaging/app-svc.spec index 7f87995..d62c6f2 100644 --- a/packaging/app-svc.spec +++ b/packaging/app-svc.spec @@ -1,6 +1,6 @@ Name: app-svc Summary: App svc -Version: 0.1.47 +Version: 0.1.48 Release: 1 Group: System/Libraries License: Apache License, Version 2.0 diff --git a/src/appsvc.c b/src/appsvc.c index 7bf082a..f2c17b9 100755 --- a/src/appsvc.c +++ b/src/appsvc.c @@ -196,8 +196,11 @@ 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 < 0) + 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);