zmike pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c388e853f879191e7e76d567a5f96aa07492fa72

commit c388e853f879191e7e76d567a5f96aa07492fa72
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Mar 4 13:36:52 2019 -0500

    evas: remove linkage between Efl_Gfx_Image_Load_Error and Evas_Load_Error
    
    Summary:
    new api should not be bound to legacy values like this
    
    ref T7718
    Depends on D8064
    
    Reviewers: cedric
    
    Reviewed By: cedric
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl_api
    
    Maniphest Tasks: T7718
    
    Differential Revision: https://phab.enlightenment.org/D8066
---
 src/lib/evas/Evas_Loader.h | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/src/lib/evas/Evas_Loader.h b/src/lib/evas/Evas_Loader.h
index 5dbbab99df..2e61f1bf60 100644
--- a/src/lib/evas/Evas_Loader.h
+++ b/src/lib/evas/Evas_Loader.h
@@ -134,16 +134,17 @@ typedef Emile_Image_Property  Evas_Image_Property;
 
 typedef struct _Evas_Image_Load_Func Evas_Image_Load_Func;
 
-typedef Efl_Gfx_Image_Load_Error Evas_Load_Error;
-
-#define EVAS_LOAD_ERROR_NONE EFL_GFX_IMAGE_LOAD_ERROR_NONE
-#define EVAS_LOAD_ERROR_GENERIC EFL_GFX_IMAGE_LOAD_ERROR_GENERIC
-#define EVAS_LOAD_ERROR_DOES_NOT_EXIST EFL_GFX_IMAGE_LOAD_ERROR_DOES_NOT_EXIST
-#define EVAS_LOAD_ERROR_PERMISSION_DENIED 
EFL_GFX_IMAGE_LOAD_ERROR_PERMISSION_DENIED
-#define EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED 
EFL_GFX_IMAGE_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED
-#define EVAS_LOAD_ERROR_CORRUPT_FILE EFL_GFX_IMAGE_LOAD_ERROR_CORRUPT_FILE
-#define EVAS_LOAD_ERROR_UNKNOWN_FORMAT EFL_GFX_IMAGE_LOAD_ERROR_UNKNOWN_FORMAT
-#define EVAS_LOAD_ERROR_CANCELLED EFL_GFX_IMAGE_LOAD_ERROR_CANCELLED
+typedef enum
+{
+   EVAS_LOAD_ERROR_NONE = 0,
+   EVAS_LOAD_ERROR_GENERIC,
+   EVAS_LOAD_ERROR_DOES_NOT_EXIST,
+   EVAS_LOAD_ERROR_PERMISSION_DENIED,
+   EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED,
+   EVAS_LOAD_ERROR_CORRUPT_FILE,
+   EVAS_LOAD_ERROR_UNKNOWN_FORMAT,
+   EVAS_LOAD_ERROR_CANCELLED,
+} Evas_Load_Error;
 
 typedef Emile_Image_Animated_Loop_Hint Evas_Image_Animated_Loop_Hint;
 
@@ -219,7 +220,7 @@ EAPI Eina_Bool    evas_module_task_cancelled (void); /**< 
@since 1.19 */
           Count = 0;                                                    \
           if (evas_module_task_cancelled())                             \
             {                                                           \
-               *Error = EFL_GFX_IMAGE_LOAD_ERROR_CANCELLED;                 \
+               *Error = EVAS_LOAD_ERROR_CANCELLED;                 \
                goto Error_Handler;                                      \
             }                                                           \
        }                                                                \

-- 


Reply via email to