return _content_error_capi(MEDIA_REGISTER_TYPE, ret);
}
-int media_content_set_db_updated_cb_v2(media_content_noti_h *noti_handle, media_content_db_update_cb callback, void *user_data)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- media_noti_cb_s *noti_info = NULL;
-
- if (noti_handle == NULL) {
- media_content_error("INVALID_PARAMETER(0x%08x)", MEDIA_CONTENT_ERROR_INVALID_PARAMETER);
- return MEDIA_CONTENT_ERROR_INVALID_PARAMETER;
- }
-
- if (callback == NULL) {
- media_content_error("INVALID_PARAMETER(0x%08x)", MEDIA_CONTENT_ERROR_INVALID_PARAMETER);
- return MEDIA_CONTENT_ERROR_INVALID_PARAMETER;
- }
-
- noti_info = (media_noti_cb_s *)calloc(1, sizeof(media_noti_cb_s));
- if (noti_info == NULL) {
- media_content_error("Failed to create noti info");
- return MEDIA_CONTENT_ERROR_OUT_OF_MEMORY;
- }
-
- noti_info->update_noti_cb = callback;
- noti_info->user_data = user_data;
-
- ret = media_db_update_subscribe_internal((MediaNotiHandle*)noti_handle, _media_content_db_update_noti_cb, (void *)noti_info);
-
- return _content_error_capi(MEDIA_REGISTER_TYPE, ret);
-}
-
int media_content_add_db_updated_cb(media_content_db_update_cb callback, void *user_data, media_content_noti_h *noti_handle)
{
int ret = MEDIA_CONTENT_ERROR_NONE;
return;
}
-int media_content_unset_db_updated_cb_v2(media_content_noti_h noti_handle)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_db_update_unsubscribe_internal((MediaNotiHandle)noti_handle, __media_content_clear_user_data);
-
- return _content_error_capi(MEDIA_REGISTER_TYPE, ret);
-}
-
-
int media_content_remove_db_updated_cb(media_content_noti_h noti_handle)
{
int ret = MEDIA_CONTENT_ERROR_NONE;
int ret_cnt = 0;
char repl_path[MAX_PATH_LEN] = {0, };
+ media_content_warn("DEPRECATION WARNING: media_info_insert_to_db_with_data() is deprecated and will be removed from next release. Use media_info_insert_to_db() instead.");
+
media_info_s *_media = (media_info_s*)media;
media_content_retvm_if(_media == NULL, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid media");
media_svc_storage_type_e storage_type = 0;
bool ignore_file = FALSE;
char repl_path[MAX_PATH_LEN] = {0, };
+ media_content_warn("DEPRECATION WARNING: media_info_create() is deprecated and will be removed from next release. Use media_info_insert_to_db() instead.");
media_content_retvm_if(!STRING_VALID(path), MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid path");
media_content_retvm_if(media == NULL, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid media");
int media_info_set_title(media_info_h media, const char *title)
{
+ media_content_warn("DEPRECATION WARNING: media_info_set_title() is deprecated and will be removed from next release.");
+
return __media_info_set_str_data(media, MEDIA_INFO_TITLE, title);
}
int media_info_set_album(media_info_h media, const char *album)
{
+ media_content_warn("DEPRECATION WARNING: media_info_set_album() is deprecated and will be removed from next release.");
+
return __media_info_set_str_data(media, MEDIA_INFO_ALBUM, album);
}
int media_info_set_artist(media_info_h media, const char *artist)
{
+ media_content_warn("DEPRECATION WARNING: media_info_set_artist() is deprecated and will be removed from next release.");
+
return __media_info_set_str_data(media, MEDIA_INFO_ARTIST, artist);
}
int media_info_set_genre(media_info_h media, const char *genre)
{
+ media_content_warn("DEPRECATION WARNING: media_info_set_genre() is deprecated and will be removed from next release.");
+
return __media_info_set_str_data(media, MEDIA_INFO_GENRE, genre);
}
int media_info_set_recorded_date(media_info_h media, const char *recorded_date)
{
+ media_content_warn("DEPRECATION WARNING: media_info_set_recorded_date() is deprecated and will be removed from next release.");
+
return __media_info_set_str_data(media, MEDIA_INFO_RECORDED_DATE, recorded_date);
}