summaryrefslogtreecommitdiff
path: root/src/modules/evas/image_loaders/xpm/evas_image_load_xpm.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-05-31 11:57:53 -0700
committerCedric BAIL <cedric.bail@free.fr>2019-07-12 09:54:14 -0700
commitce076d1323ef89cad5d9b4fe185d14101e8d5d3e (patch)
tree06dc1a46d8033e3e8365d1857e62f86745fba65e /src/modules/evas/image_loaders/xpm/evas_image_load_xpm.c
parent9f35c74d9d66181ff609e325d23796efc823e95e (diff)
evas: break Image_Loader API to allow for getting property from the data field of an image.
Reviewed-by: Hermet Park <hermetpark@gmail.com> Differential Revision: https://phab.enlightenment.org/D9101
Diffstat (limited to '')
-rw-r--r--src/modules/evas/image_loaders/xpm/evas_image_load_xpm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/evas/image_loaders/xpm/evas_image_load_xpm.c b/src/modules/evas/image_loaders/xpm/evas_image_load_xpm.c
index 3b5e682139..d7aa25ded3 100644
--- a/src/modules/evas/image_loaders/xpm/evas_image_load_xpm.c
+++ b/src/modules/evas/image_loaders/xpm/evas_image_load_xpm.c
@@ -1688,7 +1688,7 @@ _cmap_cmp_key_cb(const Eina_Rbtree *node, const void *key, int length EINA_UNUSE
1688 1688
1689/** FIXME: clean this up and make more efficient **/ 1689/** FIXME: clean this up and make more efficient **/
1690static Eina_Bool 1690static Eina_Bool
1691evas_image_load_file_xpm(Eina_File *f, Evas_Image_Property *prop, void *pixels, int load_data, int *error) 1691evas_image_load_file_xpm(Eina_File *f, Emile_Image_Property *prop, void *pixels, int load_data, int *error)
1692{ 1692{
1693 DATA32 *ptr, *end, *head = NULL; 1693 DATA32 *ptr, *end, *head = NULL;
1694 const char *map = NULL; 1694 const char *map = NULL;
@@ -2193,7 +2193,7 @@ evas_image_load_file_close_xpm(void *loader_data EINA_UNUSED)
2193 2193
2194static Eina_Bool 2194static Eina_Bool
2195evas_image_load_file_head_xpm(void *loader_data, 2195evas_image_load_file_head_xpm(void *loader_data,
2196 Evas_Image_Property *prop, 2196 Emile_Image_Property *prop,
2197 int *error) 2197 int *error)
2198{ 2198{
2199 Eina_File *f = loader_data; 2199 Eina_File *f = loader_data;
@@ -2203,7 +2203,7 @@ evas_image_load_file_head_xpm(void *loader_data,
2203 2203
2204static Eina_Bool 2204static Eina_Bool
2205evas_image_load_file_data_xpm(void *loader_data, 2205evas_image_load_file_data_xpm(void *loader_data,
2206 Evas_Image_Property *prop, 2206 Emile_Image_Property *prop,
2207 void *pixels, 2207 void *pixels,
2208 int *error) 2208 int *error)
2209{ 2209{
@@ -2217,8 +2217,9 @@ static Evas_Image_Load_Func evas_image_load_xpm_func =
2217 EVAS_IMAGE_LOAD_VERSION, 2217 EVAS_IMAGE_LOAD_VERSION,
2218 evas_image_load_file_open_xpm, 2218 evas_image_load_file_open_xpm,
2219 evas_image_load_file_close_xpm, 2219 evas_image_load_file_close_xpm,
2220 evas_image_load_file_head_xpm, 2220 (void*) evas_image_load_file_head_xpm,
2221 evas_image_load_file_data_xpm, 2221 NULL,
2222 (void*) evas_image_load_file_data_xpm,
2222 NULL, 2223 NULL,
2223 EINA_FALSE, 2224 EINA_FALSE,
2224 EINA_FALSE 2225 EINA_FALSE