Add new enum for unsupported content and description for thumbnail_extracted_cb 89/123689/5
authorJiyong Min <jiyong.min@samsung.com>
Thu, 6 Apr 2017 11:56:51 +0000 (20:56 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Thu, 13 Apr 2017 03:47:15 +0000 (12:47 +0900)
Change-Id: I1a998c6f6daae2e71d83a83f3de6fcf7d4b681b9
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
include/thumbnail_util_type.h

index e87b545..d7734b2 100755 (executable)
@@ -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()
  *