summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2017-07-31 11:35:49 +0900
committerMinje ahn <minje.ahn@samsung.com>2017-08-01 23:11:40 +0000
commit5b06661e2a91fba6b0923dbe047828fecfbce85f (patch)
tree4cd56d685267570efe0f5c98a3b24d43f7334f60
parent79ab0a6bc6aedc47d56156d398227b8370e13522 (diff)
downloadmedia-content-5b06661e2a91fba6b0923dbe047828fecfbce85f.tar.gz
media-content-5b06661e2a91fba6b0923dbe047828fecfbce85f.tar.bz2
media-content-5b06661e2a91fba6b0923dbe047828fecfbce85f.zip
author information is user data. Therefore, the get function is not needed if the set function does not exist. (media_info_set_author() is deprecated since 4.0) Change-Id: Ie00cb7a57891e202eb82b978de055091df173f01 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-rwxr-xr-xinclude/media_content_type.h4
-rwxr-xr-xinclude/media_info.h3
-rwxr-xr-xinclude_product/media_content_type.h4
-rwxr-xr-xinclude_product/media_info.h3
-rwxr-xr-xsrc/media_info.c1
5 files changed, 11 insertions, 4 deletions
diff --git a/include/media_content_type.h b/include/media_content_type.h
index a33866a..d08c146 100755
--- a/include/media_content_type.h
+++ b/include/media_content_type.h
@@ -173,7 +173,7 @@ typedef enum {
MEDIA_CONTENT_GROUP_ALTITUDE, /**< Media group ID for the altitude*/
MEDIA_CONTENT_GROUP_BURST_IMAGE, /**< Media group ID for the burst shot*/
MEDIA_CONTENT_GROUP_RATING, /**< Media group ID for a rating*/
- MEDIA_CONTENT_GROUP_AUTHOR, /**< Media group ID for an author*/
+ MEDIA_CONTENT_GROUP_AUTHOR, /**< Media group ID for an author (Deprecated since 4.0)*/
MEDIA_CONTENT_GROUP_PROVIDER, /**< Media group ID for a provider*/
MEDIA_CONTENT_GROUP_CONTENT_NAME, /**< Media group ID for the content name (Deprecated since 4.0)*/
MEDIA_CONTENT_GROUP_CATEGORY, /**< Media group ID for a category*/
@@ -970,6 +970,7 @@ typedef bool (*media_face_cb)(media_face_h face, void *user_data);
#define MEDIA_FAVOURITE "MEDIA_FAVOURITE"
/**
+ * @deprecated Deprecated since 4.0.
* @brief Media author
* @details You can use above define to set the condition of media filter and order keyword.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
@@ -1160,6 +1161,7 @@ typedef bool (*media_face_cb)(media_face_h face, void *user_data);
#define MEDIA_DESCRIPTION_PINYIN "MEDIA_DESCRIPTION_PINYIN"
/**
+ * @deprecated Deprecated since 4.0.
* @brief Media author pinyin
* @details You can use above define to set the condition of media filter and order keyword.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
diff --git a/include/media_info.h b/include/media_info.h
index b654ea8..c4a17a3 100755
--- a/include/media_info.h
+++ b/include/media_info.h
@@ -859,6 +859,7 @@ int media_info_get_rating(media_info_h media, int *rating);
int media_info_get_favorite(media_info_h media, bool* favorite);
/**
+ * @deprecated Deprecated since 4.0.
* @brief Gets the author of content file.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
@@ -874,7 +875,7 @@ int media_info_get_favorite(media_info_h media, bool* favorite);
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int media_info_get_author(media_info_h media, char **author);
+int media_info_get_author(media_info_h media, char **author) TIZEN_DEPRECATED_API;
/**
* @brief Gets the provider of content file which User set.
diff --git a/include_product/media_content_type.h b/include_product/media_content_type.h
index 594af75..f90f878 100755
--- a/include_product/media_content_type.h
+++ b/include_product/media_content_type.h
@@ -182,7 +182,7 @@ typedef enum {
MEDIA_CONTENT_GROUP_ALTITUDE, /**< Media group ID for the altitude*/
MEDIA_CONTENT_GROUP_BURST_IMAGE, /**< Media group ID for the burst shot*/
MEDIA_CONTENT_GROUP_RATING, /**< Media group ID for a rating*/
- MEDIA_CONTENT_GROUP_AUTHOR, /**< Media group ID for an author*/
+ MEDIA_CONTENT_GROUP_AUTHOR, /**< Media group ID for an author (Deprecated since 4.0)*/
MEDIA_CONTENT_GROUP_PROVIDER, /**< Media group ID for a provider*/
MEDIA_CONTENT_GROUP_CONTENT_NAME, /**< Media group ID for the content name (Deprecated since 4.0)*/
MEDIA_CONTENT_GROUP_CATEGORY, /**< Media group ID for a category*/
@@ -1036,6 +1036,7 @@ typedef bool (*media_face_cb)(media_face_h face, void *user_data);
#define MEDIA_FAVOURITE "MEDIA_FAVOURITE"
/**
+ * @deprecated Deprecated since 4.0.
* @brief Media author
* @details You can use above define to set the condition of media filter and order keyword.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
@@ -1226,6 +1227,7 @@ typedef bool (*media_face_cb)(media_face_h face, void *user_data);
#define MEDIA_DESCRIPTION_PINYIN "MEDIA_DESCRIPTION_PINYIN"
/**
+ * @deprecated Deprecated since 4.0.
* @brief Media author pinyin
* @details You can use above define to set the condition of media filter and order keyword.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
diff --git a/include_product/media_info.h b/include_product/media_info.h
index b654ea8..c4a17a3 100755
--- a/include_product/media_info.h
+++ b/include_product/media_info.h
@@ -859,6 +859,7 @@ int media_info_get_rating(media_info_h media, int *rating);
int media_info_get_favorite(media_info_h media, bool* favorite);
/**
+ * @deprecated Deprecated since 4.0.
* @brief Gets the author of content file.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
@@ -874,7 +875,7 @@ int media_info_get_favorite(media_info_h media, bool* favorite);
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int media_info_get_author(media_info_h media, char **author);
+int media_info_get_author(media_info_h media, char **author) TIZEN_DEPRECATED_API;
/**
* @brief Gets the provider of content file which User set.
diff --git a/src/media_info.c b/src/media_info.c
index c4459ba..660255b 100755
--- a/src/media_info.c
+++ b/src/media_info.c
@@ -2019,6 +2019,7 @@ int media_info_get_favorite(media_info_h media, bool* favorite)
int media_info_get_author(media_info_h media, char **author)
{
int ret = MEDIA_CONTENT_ERROR_NONE;
+ media_content_warn("DEPRECATION WARNING: media_info_get_author() is deprecated and will be removed from next release.");
media_info_s *_media = (media_info_s*)media;
if (_media && author) {