Rearrange resource_error_e enum and add RESOURCE_ERROR_OPERATION_FAILED 14/277614/1
authorHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 11 Jul 2022 05:48:40 +0000 (14:48 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 11 Jul 2022 05:48:40 +0000 (14:48 +0900)
Change-Id: If2e8bc8e1bff0c212cd0e1745ba7c9c3ca229b84
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
include/common.h

index 19a73f639fe59c0cddba09ec3a111b7dd12e82f1..14086f74ee9a3b990d2fdec7880593fb0a777af5 100644 (file)
@@ -52,12 +52,12 @@ extern "C" {
 
 typedef enum {
        RESOURCE_ERROR_NONE              = TIZEN_ERROR_NONE,               /**< Success */
-       RESOURCE_ERROR_OUT_OF_MEMORY     = TIZEN_ERROR_OUT_OF_MEMORY,      /**< Out of memory */
+       RESOURCE_ERROR_NOT_SUPPORTED     = TIZEN_ERROR_INVALID_OPERATION,  /**< Not supported */
        RESOURCE_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER,  /**< Invalid parameter */
-       RESOURCE_ERROR_NO_DATA           = TIZEN_ERROR_NO_DATA,            /**< Empty data */
        RESOURCE_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED,  /**< Permission denied */
-       RESOURCE_ERROR_NO_SUCH_FILE      = TIZEN_ERROR_NO_SUCH_FILE,       /**< No such file */
-       RESOURCE_ERROR_NOT_SUPPORTED     = TIZEN_ERROR_INVALID_OPERATION   /**< Not supported */
+       RESOURCE_ERROR_OPERATION_FAILED  = TIZEN_ERROR_IO_ERROR,           /**< Operation failed */
+       RESOURCE_ERROR_OUT_OF_MEMORY     = TIZEN_ERROR_OUT_OF_MEMORY,      /**< Out of memory */
+       RESOURCE_ERROR_NO_SUCH_FILE      = TIZEN_ERROR_NO_SUCH_FILE        /**< No such file */
 } resource_error_e;
 
 #ifdef __cplusplus