X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fmedia_image.c;h=44cc21081b89a463b9a7498a7f705b5d360e6425;hb=c4791a24e66f7810ea9b7815017d69ec5a6bb200;hp=b114c1221112d1912d78fda6f23bb24ede4cf17c;hpb=db50dcd4b00525857ad9a0adfca75bb4a72e0dce;p=platform%2Fcore%2Fapi%2Fmedia-content.git diff --git a/src/media_image.c b/src/media_image.c index b114c12..44cc210 100755 --- a/src/media_image.c +++ b/src/media_image.c @@ -162,41 +162,3 @@ int image_meta_get_model(image_meta_h image, char **model) return MEDIA_CONTENT_ERROR_NONE; } - -int image_meta_set_orientation(image_meta_h image, media_content_orientation_e orientation) -{ - content_warn("DEPRECATION WARNING: image_meta_set_orientation() is deprecated and will be removed from next release."); - image_meta_s *_image = (image_meta_s*)image; - - content_retip_if_fail(image); - content_retvm_if(orientation < MEDIA_CONTENT_ORIENTATION_NOT_AVAILABLE || orientation > MEDIA_CONTENT_ORIENTATION_ROT_270, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid orientation"); - - _image->orientation = orientation; - - return MEDIA_CONTENT_ERROR_NONE; -} - -int image_meta_update_to_db(image_meta_h image) -{ - int ret = MEDIA_CONTENT_ERROR_NONE; - content_warn("DEPRECATION WARNING: image_meta_update_to_db() is deprecated and will be removed from next release."); - image_meta_s *_image = (image_meta_s*)image; - char *sql = NULL; - - content_retip_if_fail(image); - content_retip_if_fail(STRING_VALID(_image->media_id)); - -#ifdef _USE_TVPD_MODE - char *storage_id = NULL; - ret = _media_db_get_storage_id_by_media_id(_image->media_id, &storage_id); - content_retv_if(ret != MEDIA_CONTENT_ERROR_NONE, ret); - sql = sqlite3_mprintf(UPDATE_IMAGE_META_FROM_MEDIA, storage_id, _image->orientation, _image->media_id); - g_free(storage_id); -#else - sql = sqlite3_mprintf(UPDATE_IMAGE_META_FROM_MEDIA, _image->orientation, _image->media_id); -#endif - ret = _content_query_sql(sql); - SQLITE3_SAFE_FREE(sql); - - return ret; -}