From 49d12c04b115f93b6a8ab586ff47bf1d26968712 Mon Sep 17 00:00:00 2001 From: Jiwoong Im Date: Mon, 3 Aug 2015 17:42:33 +0900 Subject: [PATCH] support async launch result callback Change-Id: Icefa5af8a795d1eda6d6975aff74be481ca338d5 Signed-off-by: Jiwoong Im --- include/appsvc.h | 4 ++++ src/appsvc.c | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/include/appsvc.h b/include/appsvc.h index 9b10aa3..766126f 100755 --- a/include/appsvc.h +++ b/include/appsvc.h @@ -123,6 +123,8 @@ extern "C" { #define APP_SELECTOR "org.tizen.app-selector" +#define APPSVC_K_LAUNCH_RESULT_APP_STARTED "__K_LAUNCH_RESULT_APP_STARTED__" + /** * @brief Return values in appsvc. */ @@ -1014,6 +1016,8 @@ int appsvc_set_launch_mode(bundle *b, const char *mode); * */ const char *appsvc_get_launch_mode(bundle *b); + +int aul_svc_subscribe_launch_result(bundle *b, const char *event); #ifdef __cplusplus } #endif diff --git a/src/appsvc.c b/src/appsvc.c index 98dbbca..940123a 100644 --- a/src/appsvc.c +++ b/src/appsvc.c @@ -1160,3 +1160,13 @@ SLPAPI int appsvc_subapp_terminate_request_pid(int pid) return aul_app_group_clear_top(); } + +SLPAPI int aul_svc_subscribe_launch_result(bundle *b, const char *result) +{ + if (b == NULL) { + _E("bundle for aul_svc_subscribe_launch_result is NULL"); + return APPSVC_RET_EINVAL; + } + + return __set_bundle(b, result, "1"); +} -- 2.7.4