summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-04 13:36:52 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-03-04 13:36:52 -0500
commitc388e853f879191e7e76d567a5f96aa07492fa72 (patch)
treec1a850ede8322d55a965a54ca5d44157bda96aaf /src
parent43ef483801066ba103bf93de3eb01f7787e5150b (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/Evas_Loader.h23
1 files 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;
134 134
135typedef struct _Evas_Image_Load_Func Evas_Image_Load_Func; 135typedef struct _Evas_Image_Load_Func Evas_Image_Load_Func;
136 136
137typedef Efl_Gfx_Image_Load_Error Evas_Load_Error; 137typedef enum
138 138{
139#define EVAS_LOAD_ERROR_NONE EFL_GFX_IMAGE_LOAD_ERROR_NONE 139 EVAS_LOAD_ERROR_NONE = 0,
140#define EVAS_LOAD_ERROR_GENERIC EFL_GFX_IMAGE_LOAD_ERROR_GENERIC 140 EVAS_LOAD_ERROR_GENERIC,
141#define EVAS_LOAD_ERROR_DOES_NOT_EXIST EFL_GFX_IMAGE_LOAD_ERROR_DOES_NOT_EXIST 141 EVAS_LOAD_ERROR_DOES_NOT_EXIST,
142#define EVAS_LOAD_ERROR_PERMISSION_DENIED EFL_GFX_IMAGE_LOAD_ERROR_PERMISSION_DENIED 142 EVAS_LOAD_ERROR_PERMISSION_DENIED,
143#define EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED EFL_GFX_IMAGE_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED 143 EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED,
144#define EVAS_LOAD_ERROR_CORRUPT_FILE EFL_GFX_IMAGE_LOAD_ERROR_CORRUPT_FILE 144 EVAS_LOAD_ERROR_CORRUPT_FILE,
145#define EVAS_LOAD_ERROR_UNKNOWN_FORMAT EFL_GFX_IMAGE_LOAD_ERROR_UNKNOWN_FORMAT 145 EVAS_LOAD_ERROR_UNKNOWN_FORMAT,
146#define EVAS_LOAD_ERROR_CANCELLED EFL_GFX_IMAGE_LOAD_ERROR_CANCELLED 146 EVAS_LOAD_ERROR_CANCELLED,
147} Evas_Load_Error;
147 148
148typedef Emile_Image_Animated_Loop_Hint Evas_Image_Animated_Loop_Hint; 149typedef Emile_Image_Animated_Loop_Hint Evas_Image_Animated_Loop_Hint;
149 150
@@ -219,7 +220,7 @@ EAPI Eina_Bool evas_module_task_cancelled (void); /**< @since 1.19 */
219 Count = 0; \ 220 Count = 0; \
220 if (evas_module_task_cancelled()) \ 221 if (evas_module_task_cancelled()) \
221 { \ 222 { \
222 *Error = EFL_GFX_IMAGE_LOAD_ERROR_CANCELLED; \ 223 *Error = EVAS_LOAD_ERROR_CANCELLED; \
223 goto Error_Handler; \ 224 goto Error_Handler; \
224 } \ 225 } \
225 } \ 226 } \