int thumbnail_util_cancel(thumbnail_h thumb, const char *request_id) TIZEN_DEPRECATED_API;
/**
- * @deprecated Deprecated since 4.0.
- * @brief Cancels all thumbnail extraction requests associated with the given thumbnail info handle.
- * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
- * @remarks If there is no item you want to cancel, this function return MEDIA_CONTENT_ERROR_INVALID_OPERATION
- *
- * @param[in] thumb The media thumbnail info handle
- *
- * @return @c 0 on success, otherwise a negative error value
- *
- * @retval #THUMBNAIL_UTIL_ERROR_NONE Successful
- * @retval #THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @pre It is available before thumbnail_extracted_cb() is called.
- * @see thumbnail_util_extract()
- */
-int thumbnail_util_cancel_all(thumbnail_h thumb) TIZEN_DEPRECATED_API;
-
-/**
* @deprecated Deprecated since 5.0.
* @brief Destroys thumbnail info handle.
* @details The function frees all resources related to the thumbnail info handle. This handle
return ret;
}
-int thumbnail_util_cancel_all(thumbnail_h thumb)
-{
- thumbnail_util_warn("DEPRECATION WARNING: thumbnail_util_cancel_all() is deprecated and will be removed from next release.");
- int ret = THUMBNAIL_UTIL_ERROR_NONE;
- thumbnail_s *_thumb = (thumbnail_s *)thumb;
-
- if (_thumb != NULL) {
- ret = thumbnail_request_cancel_all();
- } else {
- thumbnail_util_error("INVALID_PARAMETER(0x%08x)", THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER);
- ret = THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER;
- }
-
- return ret;
-}
-
-
int thumbnail_util_destroy(thumbnail_h thumb)
{
thumbnail_util_warn("DEPRECATION WARNING: thumbnail_util_destroy() is deprecated and will be removed from next release.");
int ret = THUMBNAIL_UTIL_ERROR_NONE;
thumbnail_h _media_thumb;
thumbnail_util_create(&_media_thumb);
-#if 0
- ret = thumbnail_util_cancel_all(_media_thumb);
- if (ret == THUMBNAIL_UTIL_ERROR_NONE)
- thumbnail_util_debug("thumbnail_util_cancel_all is success");
- else
- thumbnail_util_error("thumbnail_util_cancel_all is failed");
-#else
int i, num;
num = atoi(g_id);
char *req_str = NULL;
else
thumbnail_util_error("thumbnail_util_cancel[%d] is failed", i);
}
-#endif
thumbnail_util_destroy(_media_thumb);
return false;