diff options
author | Yunhee Seo <yuni.seo@samsung.com> | 2023-12-19 17:43:41 +0900 |
---|---|---|
committer | Yunhee Seo <yuni.seo@samsung.com> | 2023-12-26 13:15:36 +0900 |
commit | 2b524b10a718e8b55c33bfc4d64e8cefa7734699 (patch) | |
tree | 72ff78a27f34c7d279c2970f7bf69e3689b41c99 /include | |
parent | 39bd53c9b2899f4fe5c5ea197cc62fd939806939 (diff) | |
download | libsvi-2b524b10a718e8b55c33bfc4d64e8cefa7734699.tar.gz libsvi-2b524b10a718e8b55c33bfc4d64e8cefa7734699.tar.bz2 libsvi-2b524b10a718e8b55c33bfc4d64e8cefa7734699.zip |
feedback: Add feedback_put_theme_ids_internal()
This function is added to feedback.
- int feedback_put_theme_ids_internal(unsigned int **theme_ids);
- This function free the array of theme ids from feedback_get_theme_ids_internal().
After use the array of theme id, it should be freed by caller.
Also, it is possible for the user to release the array directly.
Change-Id: I7d2f2a4456d9e6662c59e3360a1eb0a5490ed6b1
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
Diffstat (limited to 'include')
-rwxr-xr-x | include/feedback-internal.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/feedback-internal.h b/include/feedback-internal.h index c2a71ca..2a9a02d 100755 --- a/include/feedback-internal.h +++ b/include/feedback-internal.h @@ -242,6 +242,7 @@ int feedback_stop_type_internal(feedback_type_e feedback_type); * @brief Gets the array of theme id supported. * @details This function gets all theme id as defined in the conf file. * The theme id is positive value according to conf file. + * After using theme ids, it should be freed by caller. * @since_tizen 7.0 * @param[in] type The feedback type * @param[out] count_of_theme This means size of theme id array @@ -252,10 +253,25 @@ int feedback_stop_type_internal(feedback_type_e feedback_type); * @retval #FEEDBACK_ERROR_OPERATION_FAILED Operation not permitted * @retval #FEEDBACK_ERROR_INVALID_PARAMETER Invalid parameter * @retval #FEEDBACK_ERROR_NOT_SUPPORTED Not supported device + * @see feedback_put_theme_ids_internal() */ int feedback_get_theme_ids_internal(feedback_type_e feedback_type, unsigned int *count_of_theme, unsigned int **theme_ids); /** + * @brief Free the array of theme id. + * @details This function free the array of theme ids from feedback_get_theme_ids_internal() + * Also, it is possible for the user to release the array directly. + * @since_tizen 7.0 + * @param[in] theme_ids The Address of theme id array + * @return @c 0 on success, + * otherwise a negative error value + * @retval #FEEDBACK_ERROR_NONE Successful + * @retval #FEEDBACK_ERROR_INVALID_PARAMETER Invalid parameter + * @see feedback_get_theme_ids_internal() + */ +int feedback_put_theme_ids_internal(unsigned int **theme_ids); + +/** * @brief Plays specific type of reactions that are pre-defined with priority. * @details This function can be used to react to pre-defined actions. \n * It play specific type of system pre-defined pattern with priority. |