From ee7d0373be4749ec179878914dfe63944098469e Mon Sep 17 00:00:00 2001 From: Junghoon Park Date: Wed, 20 Apr 2016 17:21:18 +0900 Subject: [PATCH] Add API to prepare candidate process - 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 --- include/aul.h | 11 +++++++++++ include/aul_cmd.h | 1 + src/launch.c | 8 ++++++++ 3 files changed, 20 insertions(+) diff --git a/include/aul.h b/include/aul.h index 4ff3de3..acc70fc 100644 --- a/include/aul.h +++ b/include/aul.h @@ -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 diff --git a/include/aul_cmd.h b/include/aul_cmd.h index 76eb469..b94de2b 100644 --- a/include/aul_cmd.h +++ b/include/aul_cmd.h @@ -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 }; diff --git a/src/launch.c b/src/launch.c index 1ea21dc..9c2fdb8 100644 --- a/src/launch.c +++ b/src/launch.c @@ -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); +} + -- 2.7.4