[ACR-1838] Deprecate all bookmark and playlist funtions
[platform/core/api/media-content.git] / src / media_info.c
index f9d7ce5..0311070 100644 (file)
@@ -499,9 +499,6 @@ int media_info_destroy(media_info_h media)
        g_free(_media->thumbnail_path);
        g_free(_media->description);
        g_free(_media->title);
-#ifdef _USE_TVPD_MODE
-       g_free(_media->modified_month);
-#endif
        g_free(_media->storage_uuid);
 
        if (_media->image_meta) {
@@ -575,9 +572,6 @@ int media_info_clone(media_info_h *dst, media_info_h src)
        _dst->description = g_strdup(_src->description);
        _dst->title = g_strdup(_src->title);
        _dst->storage_uuid = g_strdup(_src->storage_uuid);
-#ifdef _USE_TVPD_MODE
-               _dst->modified_month = g_strdup(_src->modified_month);
-#endif
        _dst->media_type = _src->media_type;
        _dst->size = _src->size;
        _dst->added_time = _src->added_time;
@@ -696,9 +690,10 @@ int media_info_foreach_tag_from_db(const char *media_id, filter_h filter, media_
 
        return _media_db_get_tag(media_id, filter, callback, user_data);
 }
-// LCOV_EXCL_STOP
+
 int media_info_get_bookmark_count_from_db(const char *media_id, filter_h filter, int *bookmark_count)
 {
+       content_warn("DEPRECATION WARNING: media_info_get_bookmark_count_from_db() is deprecated and will be removed from next release.");
        content_retip_if_fail(STRING_VALID(media_id));
        content_retip_if_fail(bookmark_count);
 
@@ -707,12 +702,13 @@ int media_info_get_bookmark_count_from_db(const char *media_id, filter_h filter,
 
 int media_info_foreach_bookmark_from_db(const char *media_id, filter_h filter, media_bookmark_cb callback, void *user_data)
 {
+       content_warn("DEPRECATION WARNING: media_info_foreach_bookmark_from_db() is deprecated and will be removed from next release.");
        content_retip_if_fail(STRING_VALID(media_id));
        content_retip_if_fail(callback);
 
        return _media_db_get_bookmark(media_id, filter, callback, user_data);
 }
-// LCOV_EXCL_START
+
 int media_info_get_face_count_from_db(const char *media_id, filter_h filter, int *face_count)
 {
        content_warn("DEPRECATION WARNING: media_info_get_face_count_from_db() is deprecated and will be removed from next release.");
@@ -1186,19 +1182,6 @@ int media_info_get_stitched_state(media_info_h media, int *stitched_info)
 
        return MEDIA_CONTENT_ERROR_NONE;
 }
-
-int media_info_get_modified_month(media_info_h media, char **modified_month)
-{
-       media_info_s *_media = (media_info_s*)media;
-
-       content_retip_if_fail(media);
-       content_retip_if_fail(modified_month);
-
-       *modified_month = g_strdup(_media->modified_month);
-
-       return MEDIA_CONTENT_ERROR_NONE;
-}
-
 #endif
 
 int media_info_get_media_from_db(const char *media_id, media_info_h *media)