summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiwoong Im <jiwoong.im@samsung.com>2015-08-03 17:42:33 +0900
committerJiwoong Im <jiwoong.im@samsung.com>2015-08-03 17:42:33 +0900
commit49d12c04b115f93b6a8ab586ff47bf1d26968712 (patch)
treec353cf3e0a612a21fe75640a2bb6aca5c8b417f2
parent8194518e167ed2ec3980ebb864899eda54b64a2a (diff)
downloadapp-svc-49d12c04b115f93b6a8ab586ff47bf1d26968712.tar.gz
app-svc-49d12c04b115f93b6a8ab586ff47bf1d26968712.tar.bz2
app-svc-49d12c04b115f93b6a8ab586ff47bf1d26968712.zip
support async launch result callback
Change-Id: Icefa5af8a795d1eda6d6975aff74be481ca338d5 Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rwxr-xr-xinclude/appsvc.h4
-rw-r--r--src/appsvc.c10
2 files changed, 14 insertions, 0 deletions
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");
+}