From: Hwankyu Jhun Date: Wed, 19 Jun 2019 06:48:37 +0000 (+0900) Subject: Move functions from internal header X-Git-Tag: submit/tizen/20190711.004644~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F68%2F208168%2F6;p=platform%2Fcore%2Fapi%2Fapp-control.git Move functions from internal header Change-Id: I5687ead5c81b4750c5e4eadf221092ce996bfad8 Signed-off-by: Hwankyu Jhun Signed-off-by: hyunho --- diff --git a/include/app_control.h b/include/app_control.h index 6d21993..4959118 100755 --- a/include/app_control.h +++ b/include/app_control.h @@ -1523,6 +1523,39 @@ int app_control_add_action_handler(const char *action, */ int app_control_remove_action_handler(app_control_action_h handle); +/** + * @brief Sets the ID of the component. + * @since_tizen 5.5 + * @remarks If the @a component_id is null, the @a component_id set previously will be removed. + * @remarks The @a component_id is declared by the component-based app, and it is unique globally. + * + * @param[in] app_control The app_control handle + * @param[in] component_id The ID of the component which will receive the @a app_control + * @return @c 0 on success, + * otherwise a negative error value + * @retval #APP_CONTROL_ERROR_NONE Successful + * @retval #APP_CONTROL_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #APP_CONTROL_ERROR_OUT_OF_MEMORY Out of memory + */ +int app_control_set_component_id(app_control_h app_control, + const char *component_id); + +/** + * @brief Gets the ID of the component. + * @since_tizen 5.5 + * @remarks The @a component_id must be released using free(). + * + * @param[in] app_control The app_control handle + * @param[out] component_id The ID of the component which will receive the @a app_control + * @return @c 0 on success, + * otherwise a negative error value + * @retval #APP_CONTROL_ERROR_NONE Successful + * @retval #APP_CONTROL_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #APP_CONTROL_ERROR_OUT_OF_MEMORY Out of memory + */ +int app_control_get_component_id(app_control_h app_control, + char **component_id); + /** * @} */ diff --git a/include/app_control_internal.h b/include/app_control_internal.h index 7fd94e6..9289f76 100644 --- a/include/app_control_internal.h +++ b/include/app_control_internal.h @@ -258,37 +258,6 @@ int app_control_get_instance_id(app_control_h app_control, char **instance_id); */ int app_control_set_caller_instance_id(app_control_h app_control, const char *instance_id); -/** - * @brief Sets the ID of the component. - * @since_tizen 5.5 - * - * @param[in] app_control The app_control handle - * @param[in] component_id The ID of the component - * @return @c 0 on success, - * otherwise a negative error value - * @retval #APP_CONTROL_ERROR_NONE Successful - * @retval #APP_CONTROL_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #APP_CONTROL_ERROR_OUT_OF_MEMORY Out of memory - */ -int app_control_set_component_id(app_control_h app_control, - const char *component_id); - -/** - * @brief Gets the ID of the component. - * @since_tizen 5.5 - * @remarks The @a component_id must be released using free(). - * - * @param[in] app_control The app_control handle - * @param[out] component_id The ID of the component - * @return @c 0 on success, - * otherwise a negative error value - * @retval #APP_CONTROL_ERROR_NONE Successful - * @retval #APP_CONTROL_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #APP_CONTROL_ERROR_OUT_OF_MEMORY Out of memory - */ -int app_control_get_component_id(app_control_h app_control, - char **component_id); - /** * @} */