return MEDIA_CONTENT_ERROR_NONE;
}
-int audio_meta_get_composer(audio_meta_h audio, char **composer)
+int audio_meta_get_year(audio_meta_h audio, char **year)
{
audio_meta_s *_audio = (audio_meta_s*)audio;
content_retip_if_fail(audio);
- content_retip_if_fail(composer);
+ content_retip_if_fail(year);
- /*composer can be empty string*/
- *composer = g_strdup(_audio->composer);
+ /*year can be empty string*/
+ *year = g_strdup(_audio->year);
return MEDIA_CONTENT_ERROR_NONE;
}
-int audio_meta_get_year(audio_meta_h audio, char **year)
+int audio_meta_get_track_num(audio_meta_h audio, char **track_num)
{
audio_meta_s *_audio = (audio_meta_s*)audio;
content_retip_if_fail(audio);
- content_retip_if_fail(year);
+ content_retip_if_fail(track_num);
- /*year can be empty string*/
- *year = g_strdup(_audio->year);
+ /*track_num can be empty string*/
+ *track_num = g_strdup(_audio->track_num);
return MEDIA_CONTENT_ERROR_NONE;
}
-
-int audio_meta_get_recorded_date(audio_meta_h audio, char **recorded_date)
+// LCOV_EXCL_START
+int audio_meta_get_composer(audio_meta_h audio, char **composer)
{
+ content_warn("DEPRECATION WARNING: audio_meta_get_composer() is deprecated and will be removed from next release.");
audio_meta_s *_audio = (audio_meta_s*)audio;
content_retip_if_fail(audio);
- content_retip_if_fail(recorded_date);
+ content_retip_if_fail(composer);
- *recorded_date = g_strdup(_audio->recorded_date);
+ /*composer can be empty string*/
+ *composer = g_strdup(_audio->composer);
return MEDIA_CONTENT_ERROR_NONE;
}
-int audio_meta_get_copyright(audio_meta_h audio, char **copyright)
+int audio_meta_get_recorded_date(audio_meta_h audio, char **recorded_date)
{
+ content_warn("DEPRECATION WARNING: audio_meta_get_recorded_date() is deprecated and will be removed from next release.");
audio_meta_s *_audio = (audio_meta_s*)audio;
content_retip_if_fail(audio);
- content_retip_if_fail(copyright);
+ content_retip_if_fail(recorded_date);
- /*copyright can be empty string*/
- *copyright = g_strdup(_audio->copyright);
+ *recorded_date = g_strdup(_audio->recorded_date);
return MEDIA_CONTENT_ERROR_NONE;
}
-int audio_meta_get_track_num(audio_meta_h audio, char **track_num)
+int audio_meta_get_copyright(audio_meta_h audio, char **copyright)
{
+ content_warn("DEPRECATION WARNING: audio_meta_get_copyright() is deprecated and will be removed from next release.");
audio_meta_s *_audio = (audio_meta_s*)audio;
content_retip_if_fail(audio);
- content_retip_if_fail(track_num);
+ content_retip_if_fail(copyright);
- /*track_num can be empty string*/
- *track_num = g_strdup(_audio->track_num);
+ /*copyright can be empty string*/
+ *copyright = g_strdup(_audio->copyright);
return MEDIA_CONTENT_ERROR_NONE;
}
int audio_meta_get_bit_rate(audio_meta_h audio, int *bit_rate)
{
+ content_warn("DEPRECATION WARNING: audio_meta_get_bit_rate() is deprecated and will be removed from next release.");
audio_meta_s *_audio = (audio_meta_s*)audio;
content_retip_if_fail(audio);
int audio_meta_get_bitpersample(audio_meta_h audio, int *bitpersample)
{
+ content_warn("DEPRECATION WARNING: audio_meta_get_bitpersample() is deprecated and will be removed from next release.");
audio_meta_s *_audio = (audio_meta_s*)audio;
content_retip_if_fail(audio);
int audio_meta_get_sample_rate(audio_meta_h audio, int *sample_rate)
{
+ content_warn("DEPRECATION WARNING: audio_meta_get_sample_rate() is deprecated and will be removed from next release.");
audio_meta_s *_audio = (audio_meta_s*)audio;
content_retip_if_fail(audio);
int audio_meta_get_channel(audio_meta_h audio, int *channel)
{
+ content_warn("DEPRECATION WARNING: audio_meta_get_channel() is deprecated and will be removed from next release.");
audio_meta_s *_audio = (audio_meta_s*)audio;
content_retip_if_fail(audio);
int audio_meta_get_duration(audio_meta_h audio, int *duration)
{
+ content_warn("DEPRECATION WARNING: audio_meta_get_duration() is deprecated and will be removed from next release.");
audio_meta_s *_audio = (audio_meta_s*)audio;
content_retip_if_fail(audio);
return MEDIA_CONTENT_ERROR_NONE;
}
-
-#ifdef TIZEN_FEATURE_COMPATIBILITY
-int audio_meta_get_played_time(audio_meta_h audio, time_t* played_time)
-{
- content_warn("DEPRECATION WARNING: audio_meta_get_played_time() is removed from 5.5.");
-
- return MEDIA_CONTENT_ERROR_NONE;
-}
-
-int audio_meta_get_played_count(audio_meta_h audio, int *played_count)
-{
- content_warn("DEPRECATION WARNING: audio_meta_get_played_count() is removed from 5.5.");
-
- return MEDIA_CONTENT_ERROR_NONE;
-}
-
-int audio_meta_set_played_count(audio_meta_h audio, int played_count)
-{
- content_warn("DEPRECATION WARNING: audio_meta_set_played_count() is removed from 5.5.");
-
- return MEDIA_CONTENT_ERROR_NONE;
-}
-
-int audio_meta_set_played_time(audio_meta_h audio, time_t played_time)
-{
- content_warn("DEPRECATION WARNING: audio_meta_set_played_time() is removed from 5.5.");
-
- return MEDIA_CONTENT_ERROR_NONE;
-}
-
-int audio_meta_update_to_db(audio_meta_h audio)
-{
- content_warn("DEPRECATION WARNING: audio_meta_update_to_db() is removed from 5.5.");
-
- return MEDIA_CONTENT_ERROR_NONE;
-}
-#endif
+// LCOV_EXCL_STOP
\ No newline at end of file