From ad7a700ac90e0774db6efb57839e4117adcf6714 Mon Sep 17 00:00:00 2001 From: Jiyong Min Date: Thu, 6 Apr 2017 20:56:51 +0900 Subject: [PATCH] Add new enum for unsupported content and description for thumbnail_extracted_cb Change-Id: I1a998c6f6daae2e71d83a83f3de6fcf7d4b681b9 Signed-off-by: Jiyong Min --- include/thumbnail_util_type.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/thumbnail_util_type.h b/include/thumbnail_util_type.h index e87b545..d7734b2 100755 --- a/include/thumbnail_util_type.h +++ b/include/thumbnail_util_type.h @@ -36,6 +36,8 @@ extern "C" { * @{ */ +#define THUMBNAIL_UTIL_ERROR_CLASS TIZEN_ERROR_THUMBNAIL_UTIL + /** * @ingroup CAPI_MEDIA_THUMBNAIL_UTIL_MODULE * @brief Enumeration for a thumbnail util error. @@ -48,6 +50,7 @@ typedef enum { THUMBNAIL_UTIL_ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION, /**< Invalid Operation */ THUMBNAIL_UTIL_ERROR_FILE_NO_SPACE_ON_DEVICE = TIZEN_ERROR_FILE_NO_SPACE_ON_DEVICE, /**< No space left on device */ THUMBNAIL_UTIL_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */ + THUMBNAIL_UTIL_ERROR_UNSUPPORTED_CONTENT = THUMBNAIL_UTIL_ERROR_CLASS | 0x01, /**< Unsupported Content (Since 4.0) */ } thumbnail_util_error_e; @@ -68,6 +71,12 @@ typedef struct thumbnail_s *thumbnail_h; * You must release @a thumb_data using free(). * * @details This callback is called for completion of generating the thumbnail. + * The following error codes can be delivered. \n + * #MEDIA_CONTENT_ERROR_NONE, \n + * #MEDIA_CONTENT_ERROR_INVALID_PARAMETER, \n + * #MEDIA_CONTENT_ERROR_INVALID_OPERATION, \n + * #MEDIA_CONTENT_ERROR_PERMISSION_DENIED, \n + * #MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT * * @param[in] error The error code * @param[in] request_id The generated request id by thumbnail extraction request @@ -75,7 +84,7 @@ typedef struct thumbnail_s *thumbnail_h; * @param[in] thumb_height The height of the thumbnail which is generated * @param[in] thumb_data The raw data of the thumbnail which is generated * @param[in] thumb_size The size of the thumbnail which is generated - * @param[in] user_data The user data passed from the thumbnail_util_extract() fuction + * @param[in] user_data The user data passed from the thumbnail_util_extract() function * * @pre thumbnail_util_extract() * -- 2.34.1