From 934c37e407e2280c859ae2b484efafa013ad4c4f Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Fri, 11 May 2018 09:48:06 +0900 Subject: [PATCH] Reinforce API description Change-Id: I881b8f955f0fb5ea9b0d3f20452fe7a03168aaa3 Signed-off-by: Minje Ahn --- include/media_storage.h | 5 ++++- include_product/media_storage.h | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/media_storage.h b/include/media_storage.h index c5d77bc..b141c51 100755 --- a/include/media_storage.h +++ b/include/media_storage.h @@ -116,6 +116,8 @@ int media_storage_foreach_storage_from_db(filter_h filter, media_storage_cb call * @brief Gets the count of media files for the passed @a filter in the given @a storage_id from the media database. * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif * + * @remarks Use media_info_get_media_count_from_db() if you want to search for internal storage. + * * @param[in] storage_id The ID of the media storage * @param[in] filter The handle to the media filter * @param[out] media_count The count of media storage items @@ -145,7 +147,8 @@ int media_storage_get_media_count_from_db(const char *storage_id, filter_h filte * @remarks Do not call updating DB function like media_info_update_to_db(), media_info_refresh_metadata_to_db(), audio_meta_update_to_db(), image_meta_update_to_db() and video_meta_update_to_db() in your callback function, * your callback function is invoked as inline function. \n * So, your callback function is in read state in SQLite. When you are in read state, sometimes you do not update DB. \n - * We do not recommend you call updating DB function in callback of foreach function. + * We do not recommend you call updating DB function in callback of foreach function.\n + * Use media_info_foreach_media_from_db() if you want to search for internal storage. * * @param[in] storage_id The ID of the media storage * @param[in] filter The handle to the media filter diff --git a/include_product/media_storage.h b/include_product/media_storage.h index c5d77bc..b141c51 100755 --- a/include_product/media_storage.h +++ b/include_product/media_storage.h @@ -116,6 +116,8 @@ int media_storage_foreach_storage_from_db(filter_h filter, media_storage_cb call * @brief Gets the count of media files for the passed @a filter in the given @a storage_id from the media database. * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif * + * @remarks Use media_info_get_media_count_from_db() if you want to search for internal storage. + * * @param[in] storage_id The ID of the media storage * @param[in] filter The handle to the media filter * @param[out] media_count The count of media storage items @@ -145,7 +147,8 @@ int media_storage_get_media_count_from_db(const char *storage_id, filter_h filte * @remarks Do not call updating DB function like media_info_update_to_db(), media_info_refresh_metadata_to_db(), audio_meta_update_to_db(), image_meta_update_to_db() and video_meta_update_to_db() in your callback function, * your callback function is invoked as inline function. \n * So, your callback function is in read state in SQLite. When you are in read state, sometimes you do not update DB. \n - * We do not recommend you call updating DB function in callback of foreach function. + * We do not recommend you call updating DB function in callback of foreach function.\n + * Use media_info_foreach_media_from_db() if you want to search for internal storage. * * @param[in] storage_id The ID of the media storage * @param[in] filter The handle to the media filter -- 2.7.4