added a error
authorJaeho Lee <jaeho81.lee@samsung.com>
Mon, 11 Mar 2013 13:28:40 +0000 (22:28 +0900)
committerJaeho Lee <jaeho81.lee@samsung.com>
Mon, 11 Mar 2013 13:28:40 +0000 (22:28 +0900)
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
include/appsvc.h
packaging/app-svc.spec
src/appsvc.c

index 4a98f39..d01aaa5 100755 (executable)
@@ -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 */
index 7f87995..d62c6f2 100644 (file)
@@ -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
index 7bf082a..f2c17b9 100755 (executable)
@@ -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);