From d1d21ab83011d363a2915e331d2131661fc8fd0b Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Tue, 8 May 2018 14:47:39 +0900 Subject: [PATCH] [ACR-1249] Deprecate APIs related with storage id and type Change-Id: I3ece6ca87206a7a3a05e252db707d4c1a28a1074 Signed-off-by: Minje Ahn --- include/media_content_type.h | 9 ++++++++- include/media_filter.h | 8 ++++++-- include/media_folder.h | 6 ++++-- include/media_info.h | 8 +++++--- include/media_storage.h | 30 ++++++++++++++++++++---------- include_product/media_content_type.h | 9 ++++++++- include_product/media_filter.h | 8 ++++++-- include_product/media_folder.h | 6 ++++-- include_product/media_info.h | 8 +++++--- include_product/media_storage.h | 30 ++++++++++++++++++++---------- src/media_filter.c | 2 ++ src/media_folder.c | 2 ++ src/media_info.c | 2 ++ src/media_storage.c | 10 ++++++++++ 14 files changed, 102 insertions(+), 36 deletions(-) diff --git a/include/media_content_type.h b/include/media_content_type.h index 6df515a..36cd9b3 100755 --- a/include/media_content_type.h +++ b/include/media_content_type.h @@ -44,7 +44,7 @@ extern "C" { * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * @remarks Since 4.0, #MEDIA_CONTENT_TYPE_OTHERS is related to the following feature:\n * %http://tizen.org/feature/content.scanning.others\n - * If this feature is not supported on the device, MEDIA_CONTENT_TYPE_OTHERS type file is not scanned. + * If this feature is not supported on the device, #MEDIA_CONTENT_TYPE_OTHERS type file is not scanned. */ typedef enum { MEDIA_CONTENT_TYPE_IMAGE = 0, /**storage_id); @@ -140,6 +146,7 @@ int media_storage_destroy(media_storage_h storage) int media_storage_clone(media_storage_h *dst, media_storage_h src) { int ret = MEDIA_CONTENT_ERROR_NONE; + media_content_warn("DEPRECATION WARNING: media_storage_clone() is deprecated and will be removed from next release."); media_storage_s *_src = (media_storage_s*)src; if (_src != NULL) { @@ -180,6 +187,7 @@ int media_storage_clone(media_storage_h *dst, media_storage_h src) int media_storage_get_id(media_storage_h storage, char **storage_id) { int ret = MEDIA_CONTENT_ERROR_NONE; + media_content_warn("DEPRECATION WARNING: media_storage_get_id() is deprecated and will be removed from next release."); media_storage_s *_storage = (media_storage_s*)storage; if (_storage && storage_id) { @@ -218,6 +226,7 @@ int media_storage_get_name(media_storage_h storage, char **storage_name) int media_storage_get_path(media_storage_h storage, char **storage_path) { int ret = MEDIA_CONTENT_ERROR_NONE; + media_content_warn("DEPRECATION WARNING: media_storage_get_path() is deprecated and will be removed from next release."); media_storage_s *_storage = (media_storage_s*)storage; if (_storage && storage_path) { @@ -240,6 +249,7 @@ int media_storage_get_path(media_storage_h storage, char **storage_path) int media_storage_get_type(media_storage_h storage, media_content_storage_e *storage_type) { int ret = MEDIA_CONTENT_ERROR_NONE; + media_content_warn("DEPRECATION WARNING: media_storage_get_type() is deprecated and will be removed from next release. Use storage_get_type_dev() instead."); media_storage_s *_storage = (media_storage_s*)storage; if (_storage && storage_type) { -- 2.7.4