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>
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*/
#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
#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
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
*
* @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.
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*/
#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
#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
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
*
* @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.
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) {