Add API to prepare candidate process 71/66671/4 accepted/tizen/common/20160422.172156 accepted/tizen/common/20160426.143111 accepted/tizen/ivi/20160425.044206 accepted/tizen/ivi/20160425.231855 accepted/tizen/mobile/20160425.044132 accepted/tizen/mobile/20160425.231843 accepted/tizen/tv/20160425.044200 accepted/tizen/tv/20160425.231814 accepted/tizen/wearable/20160425.044146 accepted/tizen/wearable/20160425.231833 submit/tizen/20160422.084925 submit/tizen/20160425.083419
authorJunghoon Park <jh9216.park@samsung.com>
Wed, 20 Apr 2016 08:21:18 +0000 (17:21 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Wed, 20 Apr 2016 08:21:18 +0000 (17:21 +0900)
- add aul_prepare_candidate_process()
- Requires
https://review.tizen.org/gerrit/#/c/66672/
https://review.tizen.org/gerrit/#/c/66670/

Change-Id: If868ec3f51930ad3e9fda41b77533ab142ffa41d
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
include/aul.h
include/aul_cmd.h
src/launch.c

index 4ff3de3..acc70fc 100644 (file)
@@ -2504,6 +2504,17 @@ int aul_launch_app_async(const char *appid, bundle *kb);
  */
 int aul_launch_app_async_for_uid(const char *appid, bundle *kb, uid_t uid);
 
+/**
+ * @par Description:
+ * This API request launchpad to make candidate processes.
+ *
+ * @return 0 if success, negative value(<0) if fail
+ *
+ * @remark
+ *     This API is only available in User Session.
+ */
+int aul_prepare_candidate_process(void);
+
 #ifdef __cplusplus
        }
 #endif
index 76eb469..b94de2b 100644 (file)
@@ -90,6 +90,7 @@ enum app_cmd {
        APP_UNSET_APP_CONTROL_DEFAULT_APP,
        APP_START_ASYNC,
        APP_SET_PROCESS_GROUP,
+       APP_PREPARE_CANDIDATE_PROCESS,
        APP_CMD_MAX
 };
 
index 1ea21dc..9c2fdb8 100644 (file)
@@ -1042,3 +1042,11 @@ API int aul_launch_app_async_for_uid(const char *appid, bundle *kb, uid_t uid)
        return ret;
 }
 
+API int aul_prepare_candidate_process(void)
+{
+       unsigned char dummy[1] = { 0 };
+
+       return aul_sock_send_raw(AUL_UTIL_PID, getuid(),
+                       APP_PREPARE_CANDIDATE_PROCESS, dummy, 0, AUL_SOCK_NONE);
+}
+