From 96cd87a79edfff7cdda9c2722e2f9c8d0ec26d26 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Wed, 9 Aug 2017 18:04:33 +0900 Subject: [PATCH] Fix aul_svc_create_result_bundle API Change-Id: I4a5992309d251d86de1dd7b61cd63666aae4cc7d Signed-off-by: Hwankyu Jhun --- include/aul_svc.h | 1 + src/service.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/aul_svc.h b/include/aul_svc.h index c847a1a..7818a53 100755 --- a/include/aul_svc.h +++ b/include/aul_svc.h @@ -123,6 +123,7 @@ extern "C" { * @brief Return values in appsvc. */ typedef enum _aul_svc_return_val { + AUL_SVC_RET_ECANCELED = -8, /**< Operation is canceled */ AUL_SVC_RET_EREJECTED = -7, /**< application launch rejected */ AUL_SVC_RET_ETERMINATING = -6, /**< application terminating */ AUL_SVC_RET_EILLACC = -5, /**< Illegal Access */ diff --git a/src/service.c b/src/service.c index 5b6885a..08533c8 100755 --- a/src/service.c +++ b/src/service.c @@ -1340,6 +1340,8 @@ API int aul_svc_create_result_bundle(bundle *inb, bundle **outb) ret = AUL_SVC_RET_OK; else if (ret == AUL_R_EINVAL) ret = AUL_SVC_RET_EINVAL; + else if (ret == AUL_R_ECANCELED) + ret = AUL_SVC_RET_ECANCELED; else ret = AUL_SVC_RET_ERROR; -- 2.7.4