From 09691fa1cd3c9ad1a11f96ad12ae561be0e1a648 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Wed, 22 May 2024 20:57:13 +0900 Subject: [PATCH] doxygen: update API documentation - Describe how to release memory - Add sample code Change-Id: Ifa6aa5712756eed6c8000f999584b776dfa08a0f --- include/download.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/download.h b/include/download.h index bb82dcf..00a4c70 100755 --- a/include/download.h +++ b/include/download.h @@ -1181,8 +1181,8 @@ int download_set_notification_app_control(int download_id, download_notification * @brief Gets the app control handle (used previously to register notification messages) which is set by download_set_notification_app_control(). * * @details When the notification message is clicked, the action is decided by the app control handle. - * * @since_tizen 2.3 + * @remarks The @a handle should be released using app_control_destroy(). * @privlevel public * @privilege %http://tizen.org/privilege/download * @@ -1204,6 +1204,17 @@ int download_set_notification_app_control(int download_id, download_notification * @retval #DOWNLOAD_ERROR_NOT_SUPPORTED Not supported * * @see download_set_notification_app_control() + * + * @code + * #include + * #include + * ... + * int ret = download_get_notification_app_control(id, DOWNLOAD_NOTIFICATION_APP_CONTROL_TYPE_COMPLETE, &handle); + * ... + * + * ret = app_control_destroy(handle); + * + * @endcode */ int download_get_notification_app_control(int download_id, download_notification_app_control_type_e type, app_control_h *handle); -- 2.7.4