Move functions from internal header 68/208168/6
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 19 Jun 2019 06:48:37 +0000 (15:48 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 3 Jul 2019 09:30:22 +0000 (18:30 +0900)
Change-Id: I5687ead5c81b4750c5e4eadf221092ce996bfad8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Signed-off-by: hyunho <hhstark.kang@samsung.com>
include/app_control.h
include/app_control_internal.h

index 6d2199341e1a584a5b4876e8e8b4ebac89602b1a..4959118a1b0bc81c62df392510677082de31fbe2 100755 (executable)
@@ -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);
+
 /**
  * @}
  */
index 7fd94e66df629262607773be83b5e44c3392fb04..9289f762d0c96edb704e88c4d5b86a64491fecf7 100644 (file)
@@ -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);
-
 /**
  * @}
  */