[ACR-1838] Deprecate all bookmark and playlist funtions
[platform/core/api/media-content.git] / include_product / media_info.h
index 0ffe010..a75380b 100755 (executable)
@@ -30,8 +30,7 @@ extern "C" {
  * @file media_info.h
  * @brief This file contains the media info function and related functions to proceed with it. \n
  *        You can use the functions to insert, delete, count and get list of content files from media database. \n
- *        You can get properties of content file such as size, mime_type, modified_time etc. And you can set properties such as favorite etc. \n
- *        And you can get bookmark, face, tag info related the content file.
+ *        You can get properties of content file such as size, mime_type, modified_time etc. And you can set properties such as favorite etc.
  */
 
 
@@ -48,7 +47,7 @@ extern "C" {
  *          Since 5.5, if media information already exists in the media database,
  *          this function returns the updated latest information. (Media database will be updated if necessary).
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @privlevel public
  * @privilege %http://tizen.org/privilege/content.write \n
@@ -56,9 +55,9 @@ extern "C" {
  *                   %http://tizen.org/privilege/externalstorage
  *
  * @remarks The @a info should be released using media_info_destroy(). \n
- *                   You must add the privilege http://tizen.org/privilege/content.write. You need to add more privileges depending on your choice of contents path. \n
- *                   If you want to access only internal storage by using this function, you should add privilege http://tizen.org/privilege/mediastorage. \n
- *                   If you want to access only external storage by using this function, you should add privilege http://tizen.org/privilege/externalstorage. \n
+ *                   You must add the privilege %http://tizen.org/privilege/content.write. You need to add more privileges depending on your choice of contents path. \n
+ *                   If you want to access only internal storage by using this function, you should add privilege %http://tizen.org/privilege/mediastorage. \n
+ *                   If you want to access only external storage by using this function, you should add privilege %http://tizen.org/privilege/externalstorage. \n
  *                   If you want to access storages of both types, you must add all privileges. \n
  *                   Since 4.0, this function does not accept symbolic links. \n
  * @remarks Since 4.0, this function is related to the following feature:\n
@@ -93,16 +92,16 @@ int media_info_insert_to_db(const char *path, media_info_h *info);
  * @brief Inserts content files into the media database, asynchronously.
  * @details This function can insert multiple content files into the media database.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @privlevel public
  * @privilege %http://tizen.org/privilege/content.write \n
  *                   %http://tizen.org/privilege/mediastorage \n
  *                   %http://tizen.org/privilege/externalstorage
  *
- * @remarks You must add privilege http://tizen.org/privilege/content.write. And You add more privilege depending on your choice of contents path. \n
- *                   If you want to access only internal storage by using this function, you should add privilege http://tizen.org/privilege/mediastorage. \n
- *                   Or if you want to access only external storage by using this function, you should add privilege http://tizen.org/privilege/externalstorage. \n
+ * @remarks You must add privilege %http://tizen.org/privilege/content.write. And You add more privilege depending on your choice of contents path. \n
+ *                   If you want to access only internal storage by using this function, you should add privilege %http://tizen.org/privilege/mediastorage. \n
+ *                   Or if you want to access only external storage by using this function, you should add privilege %http://tizen.org/privilege/externalstorage. \n
  *                   If you can access both storage, you must add all privilege. \n
  *                   Since 4.0, This function does not allow a symbolic link. \n
  * @remarks Since 4.0, this function is related to the following feature:\n
@@ -135,45 +134,12 @@ int media_info_insert_to_db(const char *path, media_info_h *info);
 int media_info_insert_batch_to_db(const char **path_array, unsigned int array_length, media_insert_completed_cb callback, void *user_data);
 
 /**
- * @deprecated Deprecated since 5.0. Use media_content_scan_file() instead.
- * @brief Deletes the media information from the media database.
- * @details This function only remove media information in the media database. \n
- *               You can use media_content_scan_file()/media_content_scan_folder() function instead of this function if a file is removed from the file system.
- *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @privlevel public
- * @privilege %http://tizen.org/privilege/content.write
- *
- * @param[in] media_id The media ID. It can get from media info handle.
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
- * @retval #MEDIA_CONTENT_ERROR_DB_FAILED         DB Operation failed
- * @retval #MEDIA_CONTENT_ERROR_DB_BUSY           DB Operation busy
- * @retval #MEDIA_CONTENT_ERROR_NETWORK           Network fail
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- *
- * @pre This function requires opened connection to content service by media_content_connect().
- *
- * @see media_content_connect()
- * @see media_content_scan_file()
- * @see media_content_scan_folder()
- */
-int media_info_delete_from_db(const char *media_id) TIZEN_DEPRECATED_API;
-
-
-/**
  * @brief Destroys media info.
  * @details The function frees all resources related to the media info handle. This handle
  *          can no longer be used to perform any operations. New media info handle has to
  *          be created before the next usage.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  *
@@ -195,7 +161,7 @@ int media_info_destroy(media_info_h media);
  * @details This function copies the media info handle from a source to the destination.
  *          To use this handle outside of these foreach functions, use this function.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @remarks The @a dst should be released using media_info_destroy().
  *
@@ -224,7 +190,7 @@ int media_info_clone(media_info_h *dst, media_info_h src);
  * @brief Gets the count of media info for the passed @a filter from the media database.
  * @details If @c NULL is passed to the @a filter, then no filtering is applied.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  *
  * @param[in] filter The handle to the media filter
@@ -251,7 +217,7 @@ int media_info_get_media_count_from_db(filter_h filter, int *media_count);
  *          The @a callback function will be invoked for every retrieved media info.
  *          If @c NULL is passed to the @a filter, then no filtering is applied.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @remarks Do not call updating DB function like media_info_update_to_db() in your callback function,
  *                   your callback function is invoked as inline function.
@@ -281,10 +247,11 @@ int media_info_get_media_count_from_db(filter_h filter, int *media_count);
 int media_info_foreach_media_from_db(filter_h filter, media_info_cb callback, void *user_data);
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Gets the count of media tags for the passed @a filter in the given @a media_id from the media database.
  * @details If @c NULL is passed to the @a filter, then no filtering is applied.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media_id The media ID
  * @param[in] filter The handle to the media filter
@@ -303,14 +270,15 @@ int media_info_foreach_media_from_db(filter_h filter, media_info_cb callback, vo
  * @see media_content_connect()
  * @see media_filter_create()
  */
-int media_info_get_tag_count_from_db(const char *media_id, filter_h filter, int *tag_count);
+int media_info_get_tag_count_from_db(const char *media_id, filter_h filter, int *tag_count) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Iterates through the media tag in the given media info from the media database.
  * @details This function gets all the media tags associated with the given @a media_id and calls @a callback for every retrieved media tag. \n
  *               If @c NULL is passed to the @a filter, then no filtering is applied.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media_id The media ID
  * @param[in] filter The handle to the media filter
@@ -333,17 +301,18 @@ int media_info_get_tag_count_from_db(const char *media_id, filter_h filter, int
  * @see #media_tag_cb
  * @see media_filter_create()
  */
-int media_info_foreach_tag_from_db(const char *media_id, filter_h filter, media_tag_cb callback, void *user_data);
+int media_info_foreach_tag_from_db(const char *media_id, filter_h filter, media_tag_cb callback, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Gets the number of bookmarks for the passed @a filter in the given media ID from the media database.
  * @details If @c NULL is passed to the @a filter, then no filtering is applied.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media_id The media ID
  * @param[in] filter The handle to the media filter
- * @param[out] bookmark_count The count of the media tag
+ * @param[out] bookmark_count The count of the media bookmark
  *
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -358,14 +327,15 @@ int media_info_foreach_tag_from_db(const char *media_id, filter_h filter, media_
  * @see media_content_connect()
  * @see media_filter_create()
  */
-int media_info_get_bookmark_count_from_db(const char *media_id, filter_h filter, int *bookmark_count);
+int media_info_get_bookmark_count_from_db(const char *media_id, filter_h filter, int *bookmark_count) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Iterates through the media bookmark in the given media info from the media database.
  * @details This function gets all media bookmarks associated with the given media and calls @a callback for every retrieved media bookmark.
  *                If @c NULL is passed to the @a filter, then no filtering is applied.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media_id The media ID
  * @param[in] filter The handle to the media filter
@@ -388,9 +358,10 @@ int media_info_get_bookmark_count_from_db(const char *media_id, filter_h filter,
  * @see media_bookmark_cb()
  * @see media_filter_create()
  */
-int media_info_foreach_bookmark_from_db(const char *media_id, filter_h filter, media_bookmark_cb callback, void *user_data);
+int media_info_foreach_bookmark_from_db(const char *media_id, filter_h filter, media_bookmark_cb callback, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Gets the number of face for the passed @a media_id from the media database.
  * @details If @c NULL is passed to the @a filter, then no filtering is applied.
  *
@@ -411,9 +382,10 @@ int media_info_foreach_bookmark_from_db(const char *media_id, filter_h filter, m
  * @see media_filter_create()
  *
  */
-int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int *face_count);
+int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int *face_count) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @brief Iterates through the media files with optional @a filter in the given @a media_id from the media database.
  * @details This function gets all media face info associated with the given media id and
  * meeting desired filter option and calls @a callback for
@@ -437,13 +409,13 @@ int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int
  * @see media_filter_create()
  *
  */
-int media_info_foreach_face_from_db(const char *media_id, filter_h filter, media_face_cb callback, void *user_data);
+int media_info_foreach_face_from_db(const char *media_id, filter_h filter, media_face_cb callback, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Gets the image metadata handle for a given media info.
  * @details This function returns an image metadata handle retrieved from the media info.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @remarks The @a image should be released using image_meta_destroy().
  *
@@ -462,10 +434,11 @@ int media_info_foreach_face_from_db(const char *media_id, filter_h filter, media
 int media_info_get_image(media_info_h media, image_meta_h *image);
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Gets a video metadata handle for a given media info.
  * @details This function returns a video metadata handle retrieved from the media info handle.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @remarks The @a video should be released using video_meta_destroy().
  *
@@ -481,13 +454,13 @@ int media_info_get_image(media_info_h media, image_meta_h *image);
  *
  * @see video_meta_destroy()
  */
-int media_info_get_video(media_info_h media, video_meta_h *video);
+int media_info_get_video(media_info_h media, video_meta_h *video) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Gets an audio metadata handle for a given media info.
  * @details This function returns an audio metadata handle retrieved from the media info handle.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @remarks The @a audio should be released using audio_meta_destroy().
  *
@@ -506,8 +479,32 @@ int media_info_get_video(media_info_h media, video_meta_h *video);
 int media_info_get_audio(media_info_h media, audio_meta_h *audio);
 
 /**
+ * @brief Gets a book metadata handle for a given media info.
+ * @details This function returns a book metadata handle retrieved from the media info handle. \n
+ *          The title and description information of the book can be obtained from @a media.
+ *
+ * @since_tizen 6.5
+ *
+ * @remarks The @a book should be released using book_meta_destroy().
+ *
+ * @param[in] media The handle to the media info
+ * @param[out] book The handle to the book metadata
+ *
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ *
+ * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
+ * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
+ *
+ * @see media_info_get_title()
+ * @see media_info_get_description()
+ * @see book_meta_destroy()
+ */
+int media_info_get_book(media_info_h media, book_meta_h *book);
+
+/**
  * @brief Gets the media ID.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @remarks The @a media_id should be released using free().
  *
  * @param[in] media The handle to the media info
@@ -524,7 +521,7 @@ int media_info_get_media_id(media_info_h media, char **media_id);
 
 /**
  * @brief Gets the full path of the content file.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @remarks The @a path should be released using free().
  *
@@ -543,7 +540,7 @@ int media_info_get_file_path(media_info_h media, char **path);
 
 /**
  * @brief Gets the file name including the extension of the content file.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @remarks The @a name should be released using free().
  *
@@ -561,7 +558,7 @@ int media_info_get_display_name(media_info_h media, char **name);
 
 /**
  * @brief Gets the content type of the content file.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  * @param[out] type The content type of the content file (#media_content_type_e)
@@ -578,7 +575,7 @@ int media_info_get_media_type(media_info_h media, media_content_type_e *type);
 
 /**
  * @brief Gets the MIME type of the content file.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @remarks The @a mime_type should be released using free().
  *
@@ -596,7 +593,7 @@ int media_info_get_mime_type(media_info_h media, char **mime_type);
 
 /**
  * @brief Gets the content file size.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  * @param[out] size The content file size
@@ -612,7 +609,7 @@ int media_info_get_size(media_info_h media, unsigned long long *size);
 /**
  * @brief Gets the added time of the content file.
  * @details The added time refers to the time that content file was first added to media database.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  * @param[out] added_time The added time to the media database
@@ -628,7 +625,7 @@ int media_info_get_added_time(media_info_h media, time_t *added_time);
 /**
  * @brief Gets the modified time of the content file.
  * @details The modified time refers to the last modification time provided by the file system.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  * @param[out] time The last modification time of the content file
@@ -642,10 +639,11 @@ int media_info_get_added_time(media_info_h media, time_t *added_time);
 int media_info_get_modified_time(media_info_h media, time_t *time);
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Gets the timeline of content file.
  * @details If the content file has the creation time information (like Content recorded date or Image creation date), that value is timeline. \n
  *               Otherwise, timeline value is the same as modified time.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  * @param[out] time The timeline of content file
@@ -656,11 +654,11 @@ int media_info_get_modified_time(media_info_h media, time_t *time);
  * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_info_get_timeline(media_info_h media, time_t *time);
+int media_info_get_timeline(media_info_h media, time_t *time) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Gets the thumbnail path of content file.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @remarks The @a path should be released using free(). \n
  *                   If the thumbnail extraction for the given media has not been requested yet, this function returns NULL. \n
@@ -680,10 +678,11 @@ int media_info_get_timeline(media_info_h media, time_t *time);
 int media_info_get_thumbnail_path(media_info_h media, char **path);
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Gets the description of content file.
  * @details If the value is an empty string, the method returns "Unknown". \n
  *                Since 3.0, if the media info has no description, the method returns empty string.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @remarks The @a description should be released using free().
  *
@@ -697,11 +696,12 @@ int media_info_get_thumbnail_path(media_info_h media, char **path);
  * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_info_get_description(media_info_h media, char **description);
+int media_info_get_description(media_info_h media, char **description) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Gets the longitude of content file.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  * @param[out] longitude The longitude of the content file
@@ -712,11 +712,12 @@ int media_info_get_description(media_info_h media, char **description);
  * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_info_get_longitude(media_info_h media, double *longitude);
+int media_info_get_longitude(media_info_h media, double *longitude) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Gets the latitude of content file.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  * @param[out] latitude The latitude of the content file
@@ -728,11 +729,12 @@ int media_info_get_longitude(media_info_h media, double *longitude);
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  *
  */
-int media_info_get_latitude(media_info_h media, double* latitude);
+int media_info_get_latitude(media_info_h media, double* latitude) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Gets the altitude of content file.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  * @param[out] altitude The altitude of the content file
@@ -743,11 +745,12 @@ int media_info_get_latitude(media_info_h media, double* latitude);
  * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_info_get_altitude(media_info_h media, double* altitude);
+int media_info_get_altitude(media_info_h media, double* altitude) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Gets the rating of content file.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  * @param[out] rating The rating of the content file
@@ -758,11 +761,12 @@ int media_info_get_altitude(media_info_h media, double* altitude);
  * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_info_get_rating(media_info_h media, int *rating);
+int media_info_get_rating(media_info_h media, int *rating) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Gets the favorite status of content file which User set.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  * @param[out] favorite @c true if content file is set as favorite,
@@ -776,13 +780,13 @@ int media_info_get_rating(media_info_h media, int *rating);
  *
  * @see media_info_set_favorite()
  */
-int media_info_get_favorite(media_info_h media, bool* favorite);
+int media_info_get_favorite(media_info_h media, bool* favorite) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Gets the title of content file.
  * @details If the content file does not have a title, this method returns the filename without the extension.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @remarks The @a title should be released using free().
  *
@@ -799,27 +803,9 @@ int media_info_get_favorite(media_info_h media, bool* favorite);
 int media_info_get_title(media_info_h media, char **title);
 
 /**
- * @deprecated Deprecated since 5.0.
- * @brief Gets the storage id of content file.
- * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
- *
- * @remarks The @a storage_id should be released using free().
- *
- * @param[in] media The handle to the media info
- * @param[out] storage_id The ID of the media storage
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_get_storage_id(media_info_h media, char **storage_id) TIZEN_DEPRECATED_API;
-
-/**
+ * @deprecated Deprecated since 9.0.
  * @brief Checks whether the media is protected via DRM.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  * @param[out] is_drm @c true if media is DRM media,
@@ -831,9 +817,10 @@ int media_info_get_storage_id(media_info_h media, char **storage_id) TIZEN_DEPRE
  * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_info_is_drm(media_info_h media, bool *is_drm);
+int media_info_is_drm(media_info_h media, bool *is_drm) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Checks whether the content file is 360 content.
  * @since_tizen 3.0
  *
@@ -847,60 +834,77 @@ int media_info_is_drm(media_info_h media, bool *is_drm);
  * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_info_is_360_content(media_info_h media, bool *is_360);
+int media_info_is_360_content(media_info_h media, bool *is_360) TIZEN_DEPRECATED_API;
 
 /**
- * @deprecated Deprecated since 5.0. Use storage_get_type_dev() instead.
- * @brief Gets the storage type of content file.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @brief Gets the media info from the media database.
  *
- * @param[in] media The handle to the media info
- * @param[out] storage_type The storage type of the content file
+ * @details This function creates a new media handle from the media database by the given @a media_id.
+ *          Media info will be created and filled with information.
+ *
+ * @since_tizen 2.3
+ *
+ * @remarks The @a media should be released using media_info_destroy().
+ *
+ * @param[in] media_id The media ID
+ * @param[out] media The handle to the media info
  *
  * @return @c 0 on success,
  *         otherwise a negative error value
  *
  * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
+ * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
+ * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
+ *
+ * @pre This function requires opened connection to content service by media_content_connect().
+ *
+ * @see media_content_connect()
+ * @see media_info_destroy()
  */
-int media_info_get_storage_type(media_info_h media, media_content_storage_e *storage_type) TIZEN_DEPRECATED_API;
+int media_info_get_media_from_db(const char *media_id, media_info_h *media);
 
 /**
- * @brief Gets the media info from the media database.
+ * @brief Gets the media info from the media database using path.
  *
- * @details This function creates a new media handle from the media database by the given @a media_id.
- *          Media info will be created and filled with information.
+ * @details This function creates a new media handle filled with information from the database by the given @a media_path.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 6.5
  *
- * @remarks The @a media should be released using media_info_destroy().
+ * @remarks The @a media should be released using media_info_destroy().\n
+ *          If you want to access only internal storage by using this function, you should add privilege %http://tizen.org/privilege/mediastorage. \n
+ *          If you want to access only external storage by using this function, you should add privilege %http://tizen.org/privilege/externalstorage. \n
+ *          If you want to access storages of both types, you must add all privileges. \n
  *
- * @param[in] media_id The media ID
+ * @param[in] media_path The media path
  * @param[out] media The handle to the media info
  *
  * @return @c 0 on success,
  *         otherwise a negative error value
  *
  * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
  * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
  * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
+ * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
  *
  * @pre This function requires opened connection to content service by media_content_connect().
  *
  * @see media_content_connect()
  * @see media_info_destroy()
  */
-int media_info_get_media_from_db(const char *media_id, media_info_h *media);
+int media_info_get_media_from_db_by_path(const char *media_path, media_info_h *media);
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Sets the favorite of media info.
  * @details This function can mark favorite of the media. If set to @c true, this function record the time of the change moment. \n
  *                So, If you use it in order parameter, you can sort the order of the time was a favorite. \n
  *                Or, if you use it in condition parameter, you can get the result of the favorite media.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @param[in] media The handle to the media info
  * @param[in] favorite Set @c true to set the media info as favorite,
@@ -912,14 +916,15 @@ int media_info_get_media_from_db(const char *media_id, media_info_h *media);
  * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_info_set_favorite(media_info_h media, bool favorite);
+int media_info_set_favorite(media_info_h media, bool favorite) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0.
  * @brief Updates the media info to the media database.
  *
  * @details The function updates the given media info in the media database.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @privlevel public
  * @privilege %http://tizen.org/privilege/content.write
  *
@@ -947,7 +952,7 @@ int media_info_set_favorite(media_info_h media, bool favorite);
  * @see media_content_connect()
  * @see media_info_set_favorite()
  */
-int media_info_update_to_db(media_info_h media);
+int media_info_update_to_db(media_info_h media) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Moves the media info to the given destination path in the media database.
@@ -955,16 +960,16 @@ int media_info_update_to_db(media_info_h media);
  *               If the source path and destination path are the same, then this function does nothing.
  *               If you want to refresh media information, you should use media_content_scan_file() function.
  *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  *
  * @privlevel public
  * @privilege %http://tizen.org/privilege/content.write \n
  *                   %http://tizen.org/privilege/mediastorage \n
  *                   %http://tizen.org/privilege/externalstorage
  *
- * @remarks You must add privilege http://tizen.org/privilege/content.write. And You add more privilege depending on your choice of contents path. \n
- *                   If you want to access only internal storage by using this function, you should add privilege http://tizen.org/privilege/mediastorage. \n
- *                   Or if you want to access only external storage by using this function, you should add privilege http://tizen.org/privilege/externalstorage. \n
+ * @remarks You must add privilege %http://tizen.org/privilege/content.write. And You add more privilege depending on your choice of contents path. \n
+ *                   If you want to access only internal storage by using this function, you should add privilege %http://tizen.org/privilege/mediastorage. \n
+ *                   Or if you want to access only external storage by using this function, you should add privilege %http://tizen.org/privilege/externalstorage. \n
  *                   If you can access both storage, you should add all privilege. \n
  *                   Since 4.0, this function does not allow symbolic links. \n
  *                   This function does not support USB storage before 5.0. Since 5.0, USB storage is supported. \n
@@ -994,72 +999,6 @@ int media_info_update_to_db(media_info_h media);
 int media_info_move_to_db(media_info_h media, const char* dst_path);
 
 /**
- * @deprecated Deprecated since 5.0. Use media_info_generate_thumbnail() instead.
- * @brief Creates a thumbnail file for the given media, asynchronously.
- * @details This function creates an thumbnail file for given media item and calls @a callback for completion of creating the thumbnail.
- *          If a thumbnail already exists for the given media, then the path of thumbnail will be returned in callback function. \n
- *          Since 3.0, a thumbnail is not automatically extracted during media scanning. \n
- *          Therefore, if there exists no thumbnail for the given media, you MUST call this function to create a thumbnail.
- *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @privlevel public
- * @privilege %http://tizen.org/privilege/content.write \n
- *                   %http://tizen.org/privilege/mediastorage \n
- *                   %http://tizen.org/privilege/externalstorage
- *
- * @remarks If you want to destroy media handle before callback invoked, you must cancel thumbnail request by using media_info_cancel_thumbnail() \n
- *          Since 3.0, if creation of a thumbnail is failed, empty string will be passed through media_thumbnail_completed_cb().
- *          Items in external storage except MMC not supported.
- *
- * @param[in] media The handle to the media info
- * @param[in] callback The callback function to be invoked
- * @param[in] user_data The user data to be passed to the callback function
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
- * @retval #MEDIA_CONTENT_ERROR_DB_FAILED         DB Operation failed
- * @retval #MEDIA_CONTENT_ERROR_DB_BUSY           DB Operation busy
- * @retval #MEDIA_CONTENT_ERROR_NETWORK           Network fail
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- *
- * @pre This function requires opened connection to content service by media_content_connect().
- *
- * @see media_content_connect()
- */
-int media_info_create_thumbnail(media_info_h media, media_thumbnail_completed_cb callback, void *user_data) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 5.0.
- * @brief Cancels the creation of thumbnail file for the given media.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @privlevel public
- * @privilege %http://tizen.org/privilege/content.write
- *
- * @remarks If you request cancel for the already thumbnail created media, this function return MEDIA_CONTENT_ERROR_INVALID_OPERATION
- *
- * @param[in] media The handle to the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
- *
- * @pre This function requires opened connection to content service by media_content_connect().
- * @see media_content_connect()
- */
-int media_info_cancel_thumbnail(media_info_h media) TIZEN_DEPRECATED_API;
-
-/**
  * @brief Generates a thumbnail file for the given media, synchronously.
  *
  * @since_tizen 5.0
@@ -1067,8 +1006,8 @@ int media_info_cancel_thumbnail(media_info_h media) TIZEN_DEPRECATED_API;
  * @privlevel public
  * @privilege %http://tizen.org/privilege/content.write
  *
- * @remarks http://tizen.org/privilege/mediastorage is needed if input or output path are relevant to media storage. \n
- *          http://tizen.org/privilege/externalstorage is needed if input or output path are relevant to external storage. \n
+ * @remarks %http://tizen.org/privilege/mediastorage is needed if input or output path are relevant to media storage. \n
+ *          %http://tizen.org/privilege/externalstorage is needed if input or output path are relevant to external storage. \n
  *          Items in external storage are not supported, with the exception of MMC.
  *
  * @param[in] media The handle to the media info
@@ -1093,6 +1032,7 @@ int media_info_cancel_thumbnail(media_info_h media) TIZEN_DEPRECATED_API;
 int media_info_generate_thumbnail(media_info_h media);
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
  * @brief Starts face detection for the given image, asynchronously.
  * @details This function detects faces for given image item and calls the given callback function when the detection is completed. \n
@@ -1134,9 +1074,10 @@ int media_info_generate_thumbnail(media_info_h media);
  * @see media_content_connect()
  * @see media_info_cancel_face_detection()
  */
-int media_info_start_face_detection(media_info_h media, media_face_detection_completed_cb callback, void *user_data);
+int media_info_start_face_detection(media_info_h media, media_face_detection_completed_cb callback, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 8.0.
  * @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
  * @brief Cancels face detection of image for the given media.
  * @details This function cancels face detection for given media item. \n
@@ -1147,7 +1088,7 @@ int media_info_start_face_detection(media_info_h media, media_face_detection_com
  * @privlevel public
  * @privilege %http://tizen.org/privilege/content.write
  *
- * @remarks If face detection is already done when you request the cancellation, this function return MEDIA_CONTENT_ERROR_INVALID_OPERATION
+ * @remarks If face detection is already done when you request the cancellation, this function returns #MEDIA_CONTENT_ERROR_INVALID_OPERATION
  *
  * @param[in] media The handle to the media info
  *
@@ -1164,7 +1105,7 @@ int media_info_start_face_detection(media_info_h media, media_face_detection_com
  * @see media_content_connect()
  * @see media_info_start_face_detection()
  */
-int media_info_cancel_face_detection(media_info_h media);
+int media_info_cancel_face_detection(media_info_h media) TIZEN_DEPRECATED_API;
 
 /**
  * @}