Add new internal functions to kill loader process
[platform/core/appfw/aul-1.git] / include / aul.h
index 6482c75..c4ff835 100644 (file)
@@ -3315,6 +3315,35 @@ typedef void (*aul_reply_cb)(bundle *b, int is_cancel, void *user_data);
 int aul_send_launch_request_for_uid(const char *appid, bundle *b, uid_t uid,
                aul_reply_cb reply_cb, aul_result_cb result_cb, void *user_data);
 
+/**
+ * @brief Sends the kill request to the running loader process.
+ * @since_tizen 8.0
+ * @remarks This function is only available for system and user daemons.
+ * @param[in]   loader_name     The loader name
+ * @return      @c 0 on success,
+ *              otherwise a negative error value
+ * @retval      #AUL_R_OK       Successful
+ * @retval      #AUL_R_EINVAL   Invalid parameter
+ * @retval      #AUL_R_ECOMM    Communication error on send
+ * @retval      #AUL_R_EILLACC  Permission denied
+ */
+int aul_kill_loader(const char *loader_name);
+
+/**
+ * @brief Sends the kill request to the running loader process.
+ * @since_tizen 8.0
+ * @remarks This function is only available for system and user daemons.
+ * @param[in]   loader_name     The loader name
+ * @param[in]   uid             The target uid
+ * @return      @c 0 on success,
+ *              otherwise a negative error value
+ * @retval      #AUL_R_OK       Successful
+ * @retval      #AUL_R_EINVAL   Invalid parameter
+ * @retval      #AUL_R_ECOMM    Communication error on send
+ * @retval      #AUL_R_EILLACC  Permission denied
+ */
+int aul_kill_loader_for_uid(const char *loader_name, uid_t uid);
+
 #ifdef __cplusplus
         }
 #endif