support async launch result callback 71/45171/1
authorJiwoong Im <jiwoong.im@samsung.com>
Mon, 3 Aug 2015 08:42:33 +0000 (17:42 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Mon, 3 Aug 2015 08:42:33 +0000 (17:42 +0900)
Change-Id: Icefa5af8a795d1eda6d6975aff74be481ca338d5
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
include/appsvc.h
src/appsvc.c

index 9b10aa3..766126f 100755 (executable)
@@ -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
index 98dbbca..940123a 100644 (file)
@@ -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");
+}