summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_gradient.c2
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_image.c2
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_line.c2
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_polygon.c2
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_rectangle.c2
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_smart.c2
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_text.c2
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_textblock.c2
-rw-r--r--legacy/evas/src/lib/data/evas_hash.c2
-rw-r--r--legacy/evas/src/lib/engines/common/evas_gradient_main.c4
-rw-r--r--legacy/evas/src/lib/file/evas_module.c2
-rw-r--r--legacy/evas/src/lib/file/evas_path.c2
-rw-r--r--legacy/evas/src/lib/include/evas_common.h10
-rw-r--r--legacy/evas/src/lib/include/evas_private.h6
-rw-r--r--legacy/evas/src/lib/main.c2
15 files changed, 22 insertions, 22 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_object_gradient.c b/legacy/evas/src/lib/canvas/evas_object_gradient.c
index 6e8cf684a0..c5b906b172 100644
--- a/legacy/evas/src/lib/canvas/evas_object_gradient.c
+++ b/legacy/evas/src/lib/canvas/evas_object_gradient.c
@@ -47,7 +47,7 @@ static void evas_object_gradient_render_post(Evas_Object *obj);
47static int evas_object_gradient_is_opaque(Evas_Object *obj); 47static int evas_object_gradient_is_opaque(Evas_Object *obj);
48static int evas_object_gradient_was_opaque(Evas_Object *obj); 48static int evas_object_gradient_was_opaque(Evas_Object *obj);
49 49
50static Evas_Object_Func object_func = 50static const Evas_Object_Func object_func =
51{ 51{
52 /* methods (compulsory) */ 52 /* methods (compulsory) */
53 evas_object_gradient_free, 53 evas_object_gradient_free,
diff --git a/legacy/evas/src/lib/canvas/evas_object_image.c b/legacy/evas/src/lib/canvas/evas_object_image.c
index a95e8559d2..5654e30528 100644
--- a/legacy/evas/src/lib/canvas/evas_object_image.c
+++ b/legacy/evas/src/lib/canvas/evas_object_image.c
@@ -68,7 +68,7 @@ static void evas_object_image_render_post(Evas_Object *obj);
68static int evas_object_image_is_opaque(Evas_Object *obj); 68static int evas_object_image_is_opaque(Evas_Object *obj);
69static int evas_object_image_was_opaque(Evas_Object *obj); 69static int evas_object_image_was_opaque(Evas_Object *obj);
70 70
71static Evas_Object_Func object_func = 71static const Evas_Object_Func object_func =
72{ 72{
73 /* methods (compulsory) */ 73 /* methods (compulsory) */
74 evas_object_image_free, 74 evas_object_image_free,
diff --git a/legacy/evas/src/lib/canvas/evas_object_line.c b/legacy/evas/src/lib/canvas/evas_object_line.c
index 8e6caf0b02..90d3f2e628 100644
--- a/legacy/evas/src/lib/canvas/evas_object_line.c
+++ b/legacy/evas/src/lib/canvas/evas_object_line.c
@@ -38,7 +38,7 @@ static int evas_object_line_is_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord
38static int evas_object_line_was_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord y); 38static int evas_object_line_was_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
39static void evas_object_line_coords_recalc(Evas_Object *obj); 39static void evas_object_line_coords_recalc(Evas_Object *obj);
40 40
41static Evas_Object_Func object_func = 41static const Evas_Object_Func object_func =
42{ 42{
43 /* methods (compulsory) */ 43 /* methods (compulsory) */
44 evas_object_line_free, 44 evas_object_line_free,
diff --git a/legacy/evas/src/lib/canvas/evas_object_polygon.c b/legacy/evas/src/lib/canvas/evas_object_polygon.c
index f21871d238..389e55a4b3 100644
--- a/legacy/evas/src/lib/canvas/evas_object_polygon.c
+++ b/legacy/evas/src/lib/canvas/evas_object_polygon.c
@@ -35,7 +35,7 @@ static int evas_object_polygon_was_opaque(Evas_Object *obj);
35static int evas_object_polygon_is_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord y); 35static int evas_object_polygon_is_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
36static int evas_object_polygon_was_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord y); 36static int evas_object_polygon_was_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
37 37
38static Evas_Object_Func object_func = 38static const Evas_Object_Func object_func =
39{ 39{
40 /* methods (compulsory) */ 40 /* methods (compulsory) */
41 evas_object_polygon_free, 41 evas_object_polygon_free,
diff --git a/legacy/evas/src/lib/canvas/evas_object_rectangle.c b/legacy/evas/src/lib/canvas/evas_object_rectangle.c
index b6469d08be..b6af21c537 100644
--- a/legacy/evas/src/lib/canvas/evas_object_rectangle.c
+++ b/legacy/evas/src/lib/canvas/evas_object_rectangle.c
@@ -32,7 +32,7 @@ static int evas_object_rectangle_is_inside(Evas_Object *obj, double x, double y)
32static int evas_object_rectangle_was_inside(Evas_Object *obj, double x, double y); 32static int evas_object_rectangle_was_inside(Evas_Object *obj, double x, double y);
33#endif 33#endif
34 34
35static Evas_Object_Func object_func = 35static const Evas_Object_Func object_func =
36{ 36{
37 /* methods (compulsory) */ 37 /* methods (compulsory) */
38 evas_object_rectangle_free, 38 evas_object_rectangle_free,
diff --git a/legacy/evas/src/lib/canvas/evas_object_smart.c b/legacy/evas/src/lib/canvas/evas_object_smart.c
index 7a9224ac90..0f978b67f9 100644
--- a/legacy/evas/src/lib/canvas/evas_object_smart.c
+++ b/legacy/evas/src/lib/canvas/evas_object_smart.c
@@ -27,7 +27,7 @@ static void evas_object_smart_free(Evas_Object *obj);
27static void evas_object_smart_render_pre(Evas_Object *obj); 27static void evas_object_smart_render_pre(Evas_Object *obj);
28static void evas_object_smart_render_post(Evas_Object *obj); 28static void evas_object_smart_render_post(Evas_Object *obj);
29 29
30static Evas_Object_Func object_func = 30static const Evas_Object_Func object_func =
31{ 31{
32 /* methods (compulsory) */ 32 /* methods (compulsory) */
33 evas_object_smart_free, 33 evas_object_smart_free,
diff --git a/legacy/evas/src/lib/canvas/evas_object_text.c b/legacy/evas/src/lib/canvas/evas_object_text.c
index 8a194e1d4d..3ff1c013a0 100644
--- a/legacy/evas/src/lib/canvas/evas_object_text.c
+++ b/legacy/evas/src/lib/canvas/evas_object_text.c
@@ -45,7 +45,7 @@ static void evas_object_text_render_post(Evas_Object *obj);
45static int evas_object_text_is_opaque(Evas_Object *obj); 45static int evas_object_text_is_opaque(Evas_Object *obj);
46static int evas_object_text_was_opaque(Evas_Object *obj); 46static int evas_object_text_was_opaque(Evas_Object *obj);
47 47
48static Evas_Object_Func object_func = 48static const Evas_Object_Func object_func =
49{ 49{
50 /* methods (compulsory) */ 50 /* methods (compulsory) */
51 evas_object_text_free, 51 evas_object_text_free,
diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c
index a1aae05d42..c5e53092da 100644
--- a/legacy/evas/src/lib/canvas/evas_object_textblock.c
+++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c
@@ -148,7 +148,7 @@ static int evas_object_textblock_was_opaque(Evas_Object *obj);
148 148
149static void evas_object_textblock_coords_recalc(Evas_Object *obj); 149static void evas_object_textblock_coords_recalc(Evas_Object *obj);
150 150
151static Evas_Object_Func object_func = 151static const Evas_Object_Func object_func =
152{ 152{
153 /* methods (compulsory) */ 153 /* methods (compulsory) */
154 evas_object_textblock_free, 154 evas_object_textblock_free,
diff --git a/legacy/evas/src/lib/data/evas_hash.c b/legacy/evas/src/lib/data/evas_hash.c
index 84dfbcd8a1..e2c7d972c7 100644
--- a/legacy/evas/src/lib/data/evas_hash.c
+++ b/legacy/evas/src/lib/data/evas_hash.c
@@ -109,7 +109,7 @@ evas_hash_add(Evas_Hash *hash, const char *key, const void *data)
109 return hash; 109 return hash;
110 }; 110 };
111 el->key = ((char *)el) + sizeof(struct _Evas_Hash_El); 111 el->key = ((char *)el) + sizeof(struct _Evas_Hash_El);
112 strcpy(el->key, key); 112 strcpy((char *) el->key, key);
113 el->data = (void *)data; 113 el->data = (void *)data;
114 hash_num = _evas_hash_gen(key); 114 hash_num = _evas_hash_gen(key);
115 hash->buckets[hash_num] = evas_object_list_prepend(hash->buckets[hash_num], el); 115 hash->buckets[hash_num] = evas_object_list_prepend(hash->buckets[hash_num], el);
diff --git a/legacy/evas/src/lib/engines/common/evas_gradient_main.c b/legacy/evas/src/lib/engines/common/evas_gradient_main.c
index 8b0704c205..00dbc7e3e6 100644
--- a/legacy/evas/src/lib/engines/common/evas_gradient_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_gradient_main.c
@@ -316,7 +316,7 @@ evas_common_gradient_alpha_data_set(RGBA_Gradient *gr, DATA8 *data, int len)
316} 316}
317 317
318EAPI void 318EAPI void
319evas_common_gradient_type_set(RGBA_Gradient *gr, char *name, char *params) 319evas_common_gradient_type_set(RGBA_Gradient *gr, const char *name, char *params)
320{ 320{
321 RGBA_Gradient_Type *geometer; 321 RGBA_Gradient_Type *geometer;
322 322
@@ -394,7 +394,7 @@ evas_common_gradient_map_angle_set(RGBA_Gradient *gr, float angle)
394} 394}
395 395
396EAPI RGBA_Gradient_Type * 396EAPI RGBA_Gradient_Type *
397evas_common_gradient_geometer_get(char *name) 397evas_common_gradient_geometer_get(const char *name)
398{ 398{
399 RGBA_Gradient_Type *geom = NULL; 399 RGBA_Gradient_Type *geom = NULL;
400 400
diff --git a/legacy/evas/src/lib/file/evas_module.c b/legacy/evas/src/lib/file/evas_module.c
index fefa42e4f3..9cb9016a0d 100644
--- a/legacy/evas/src/lib/file/evas_module.c
+++ b/legacy/evas/src/lib/file/evas_module.c
@@ -95,7 +95,7 @@ Evas_List *evas_modules = NULL;
95static Evas_List *evas_module_paths = NULL; 95static Evas_List *evas_module_paths = NULL;
96 96
97static void 97static void
98_evas_module_path_append(Evas_Module_Type type, char *path, char *subdir) 98_evas_module_path_append(Evas_Module_Type type, char *path, const char *subdir)
99{ 99{
100 Evas_Module_Path *mp; 100 Evas_Module_Path *mp;
101 char *buf; 101 char *buf;
diff --git a/legacy/evas/src/lib/file/evas_path.c b/legacy/evas/src/lib/file/evas_path.c
index d35b52d306..0394e16706 100644
--- a/legacy/evas/src/lib/file/evas_path.c
+++ b/legacy/evas/src/lib/file/evas_path.c
@@ -77,7 +77,7 @@ evas_file_path_is_dir(const char *path)
77} 77}
78 78
79Evas_List * 79Evas_List *
80evas_file_path_list(char *path, char *match, int match_case) 80evas_file_path_list(char *path, const char *match, int match_case)
81{ 81{
82 Evas_List *files = NULL; 82 Evas_List *files = NULL;
83 DIR *dir; 83 DIR *dir;
diff --git a/legacy/evas/src/lib/include/evas_common.h b/legacy/evas/src/lib/include/evas_common.h
index f00fdcbfc9..5d2e67af57 100644
--- a/legacy/evas/src/lib/include/evas_common.h
+++ b/legacy/evas/src/lib/include/evas_common.h
@@ -232,7 +232,7 @@ struct _Evas_Hash
232struct _Evas_Hash_El 232struct _Evas_Hash_El
233{ 233{
234 Evas_Object_List _list_data; 234 Evas_Object_List _list_data;
235 char *key; 235 const char *key;
236 void *data; 236 void *data;
237}; 237};
238 238
@@ -435,7 +435,7 @@ struct _RGBA_Gradient
435 435
436struct _RGBA_Gradient_Type 436struct _RGBA_Gradient_Type
437{ 437{
438 char *name; 438 const char *name;
439 void (*init)(void); 439 void (*init)(void);
440 void (*shutdown)(void); 440 void (*shutdown)(void);
441 void (*geom_init)(RGBA_Gradient *gr); 441 void (*geom_init)(RGBA_Gradient *gr);
@@ -513,7 +513,7 @@ struct _RGBA_Font_Glyph
513 513
514struct _RGBA_Gfx_Compositor 514struct _RGBA_Gfx_Compositor
515{ 515{
516 char *name; 516 const char *name;
517 517
518 void (*init)(void); 518 void (*init)(void);
519 void (*shutdown)(void); 519 void (*shutdown)(void);
@@ -895,7 +895,7 @@ EAPI void evas_common_gradient_color_stop_add (RGBA_Gradient *gr, in
895EAPI void evas_common_gradient_alpha_stop_add (RGBA_Gradient *gr, int a, int dist); 895EAPI void evas_common_gradient_alpha_stop_add (RGBA_Gradient *gr, int a, int dist);
896EAPI void evas_common_gradient_color_data_set (RGBA_Gradient *gr, DATA32 *data, int len, int alpha_flags); 896EAPI void evas_common_gradient_color_data_set (RGBA_Gradient *gr, DATA32 *data, int len, int alpha_flags);
897EAPI void evas_common_gradient_alpha_data_set (RGBA_Gradient *gr, DATA8 *adata, int len); 897EAPI void evas_common_gradient_alpha_data_set (RGBA_Gradient *gr, DATA8 *adata, int len);
898EAPI void evas_common_gradient_type_set (RGBA_Gradient *gr, char *name, char *params); 898EAPI void evas_common_gradient_type_set (RGBA_Gradient *gr, const char *name, char *params);
899EAPI void evas_common_gradient_fill_set (RGBA_Gradient *gr, int x, int y, int w, int h); 899EAPI void evas_common_gradient_fill_set (RGBA_Gradient *gr, int x, int y, int w, int h);
900EAPI void evas_common_gradient_fill_angle_set (RGBA_Gradient *gr, float angle); 900EAPI void evas_common_gradient_fill_angle_set (RGBA_Gradient *gr, float angle);
901EAPI void evas_common_gradient_fill_spread_set (RGBA_Gradient *gr, int spread); 901EAPI void evas_common_gradient_fill_spread_set (RGBA_Gradient *gr, int spread);
@@ -905,7 +905,7 @@ EAPI void evas_common_gradient_map_direction_set(RGBA_Gradient *gr, in
905EAPI void evas_common_gradient_map (RGBA_Draw_Context *dc, RGBA_Gradient *gr, int len); 905EAPI void evas_common_gradient_map (RGBA_Draw_Context *dc, RGBA_Gradient *gr, int len);
906EAPI void evas_common_gradient_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h, RGBA_Gradient *gr); 906EAPI void evas_common_gradient_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h, RGBA_Gradient *gr);
907 907
908RGBA_Gradient_Type *evas_common_gradient_geometer_get (char *name); 908RGBA_Gradient_Type *evas_common_gradient_geometer_get (const char *name);
909RGBA_Gradient_Type *evas_common_gradient_linear_get (void); 909RGBA_Gradient_Type *evas_common_gradient_linear_get (void);
910RGBA_Gradient_Type *evas_common_gradient_radial_get (void); 910RGBA_Gradient_Type *evas_common_gradient_radial_get (void);
911RGBA_Gradient_Type *evas_common_gradient_angular_get (void); 911RGBA_Gradient_Type *evas_common_gradient_angular_get (void);
diff --git a/legacy/evas/src/lib/include/evas_private.h b/legacy/evas/src/lib/include/evas_private.h
index 5d306c2d29..97e4ffb7ad 100644
--- a/legacy/evas/src/lib/include/evas_private.h
+++ b/legacy/evas/src/lib/include/evas_private.h
@@ -415,7 +415,7 @@ struct _Evas_Object
415 Evas_List *changes; 415 Evas_List *changes;
416 } clip; 416 } clip;
417 417
418 Evas_Object_Func *func; 418 const Evas_Object_Func *func;
419 419
420 void *object_data; 420 void *object_data;
421 421
@@ -687,7 +687,7 @@ char *evas_file_path_join(const char *path, const char *end);
687int evas_file_path_exists(const char *path); 687int evas_file_path_exists(const char *path);
688int evas_file_path_is_file(const char *path); 688int evas_file_path_is_file(const char *path);
689int evas_file_path_is_dir(const char *path); 689int evas_file_path_is_dir(const char *path);
690Evas_List *evas_file_path_list(char *path, char *match, int match_case); 690Evas_List *evas_file_path_list(char *path, const char *match, int match_case);
691DATA64 evas_file_modified_time(const char *file); 691DATA64 evas_file_modified_time(const char *file);
692char *evas_file_path_resolve(const char *file); 692char *evas_file_path_resolve(const char *file);
693int evas_mem_free(int mem_required); 693int evas_mem_free(int mem_required);
@@ -697,7 +697,7 @@ void evas_debug_input_null(void);
697void evas_debug_magic_null(void); 697void evas_debug_magic_null(void);
698void evas_debug_magic_wrong(DATA32 expected, DATA32 supplied); 698void evas_debug_magic_wrong(DATA32 expected, DATA32 supplied);
699void evas_debug_generic(const char *str); 699void evas_debug_generic(const char *str);
700char *evas_debug_magic_string_get(DATA32 magic); 700const char *evas_debug_magic_string_get(DATA32 magic);
701void evas_object_smart_use(Evas_Smart *s); 701void evas_object_smart_use(Evas_Smart *s);
702void evas_object_smart_unuse(Evas_Smart *s); 702void evas_object_smart_unuse(Evas_Smart *s);
703void evas_object_smart_del(Evas_Object *obj); 703void evas_object_smart_del(Evas_Object *obj);
diff --git a/legacy/evas/src/lib/main.c b/legacy/evas/src/lib/main.c
index 91b026e214..cedada8b5f 100644
--- a/legacy/evas/src/lib/main.c
+++ b/legacy/evas/src/lib/main.c
@@ -171,7 +171,7 @@ evas_debug_generic(const char *str)
171 if (_evas_debug_abort) abort(); 171 if (_evas_debug_abort) abort();
172} 172}
173 173
174char * 174const char *
175evas_debug_magic_string_get(DATA32 magic) 175evas_debug_magic_string_get(DATA32 magic)
176{ 176{
177 switch (magic) 177 switch (magic)