forked from enlightenment/efl
parent
dcf1bd85b7
commit
936b791547
|
@ -47,7 +47,7 @@ static void evas_object_gradient_render_post(Evas_Object *obj);
|
|||
static int evas_object_gradient_is_opaque(Evas_Object *obj);
|
||||
static int evas_object_gradient_was_opaque(Evas_Object *obj);
|
||||
|
||||
static Evas_Object_Func object_func =
|
||||
static const Evas_Object_Func object_func =
|
||||
{
|
||||
/* methods (compulsory) */
|
||||
evas_object_gradient_free,
|
||||
|
|
|
@ -68,7 +68,7 @@ static void evas_object_image_render_post(Evas_Object *obj);
|
|||
static int evas_object_image_is_opaque(Evas_Object *obj);
|
||||
static int evas_object_image_was_opaque(Evas_Object *obj);
|
||||
|
||||
static Evas_Object_Func object_func =
|
||||
static const Evas_Object_Func object_func =
|
||||
{
|
||||
/* methods (compulsory) */
|
||||
evas_object_image_free,
|
||||
|
|
|
@ -38,7 +38,7 @@ static int evas_object_line_is_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord
|
|||
static int evas_object_line_was_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
|
||||
static void evas_object_line_coords_recalc(Evas_Object *obj);
|
||||
|
||||
static Evas_Object_Func object_func =
|
||||
static const Evas_Object_Func object_func =
|
||||
{
|
||||
/* methods (compulsory) */
|
||||
evas_object_line_free,
|
||||
|
|
|
@ -35,7 +35,7 @@ static int evas_object_polygon_was_opaque(Evas_Object *obj);
|
|||
static int evas_object_polygon_is_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
|
||||
static int evas_object_polygon_was_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
|
||||
|
||||
static Evas_Object_Func object_func =
|
||||
static const Evas_Object_Func object_func =
|
||||
{
|
||||
/* methods (compulsory) */
|
||||
evas_object_polygon_free,
|
||||
|
|
|
@ -32,7 +32,7 @@ static int evas_object_rectangle_is_inside(Evas_Object *obj, double x, double y)
|
|||
static int evas_object_rectangle_was_inside(Evas_Object *obj, double x, double y);
|
||||
#endif
|
||||
|
||||
static Evas_Object_Func object_func =
|
||||
static const Evas_Object_Func object_func =
|
||||
{
|
||||
/* methods (compulsory) */
|
||||
evas_object_rectangle_free,
|
||||
|
|
|
@ -27,7 +27,7 @@ static void evas_object_smart_free(Evas_Object *obj);
|
|||
static void evas_object_smart_render_pre(Evas_Object *obj);
|
||||
static void evas_object_smart_render_post(Evas_Object *obj);
|
||||
|
||||
static Evas_Object_Func object_func =
|
||||
static const Evas_Object_Func object_func =
|
||||
{
|
||||
/* methods (compulsory) */
|
||||
evas_object_smart_free,
|
||||
|
|
|
@ -45,7 +45,7 @@ static void evas_object_text_render_post(Evas_Object *obj);
|
|||
static int evas_object_text_is_opaque(Evas_Object *obj);
|
||||
static int evas_object_text_was_opaque(Evas_Object *obj);
|
||||
|
||||
static Evas_Object_Func object_func =
|
||||
static const Evas_Object_Func object_func =
|
||||
{
|
||||
/* methods (compulsory) */
|
||||
evas_object_text_free,
|
||||
|
|
|
@ -148,7 +148,7 @@ static int evas_object_textblock_was_opaque(Evas_Object *obj);
|
|||
|
||||
static void evas_object_textblock_coords_recalc(Evas_Object *obj);
|
||||
|
||||
static Evas_Object_Func object_func =
|
||||
static const Evas_Object_Func object_func =
|
||||
{
|
||||
/* methods (compulsory) */
|
||||
evas_object_textblock_free,
|
||||
|
|
|
@ -109,7 +109,7 @@ evas_hash_add(Evas_Hash *hash, const char *key, const void *data)
|
|||
return hash;
|
||||
};
|
||||
el->key = ((char *)el) + sizeof(struct _Evas_Hash_El);
|
||||
strcpy(el->key, key);
|
||||
strcpy((char *) el->key, key);
|
||||
el->data = (void *)data;
|
||||
hash_num = _evas_hash_gen(key);
|
||||
hash->buckets[hash_num] = evas_object_list_prepend(hash->buckets[hash_num], el);
|
||||
|
|
|
@ -316,7 +316,7 @@ evas_common_gradient_alpha_data_set(RGBA_Gradient *gr, DATA8 *data, int len)
|
|||
}
|
||||
|
||||
EAPI void
|
||||
evas_common_gradient_type_set(RGBA_Gradient *gr, char *name, char *params)
|
||||
evas_common_gradient_type_set(RGBA_Gradient *gr, const char *name, char *params)
|
||||
{
|
||||
RGBA_Gradient_Type *geometer;
|
||||
|
||||
|
@ -394,7 +394,7 @@ evas_common_gradient_map_angle_set(RGBA_Gradient *gr, float angle)
|
|||
}
|
||||
|
||||
EAPI RGBA_Gradient_Type *
|
||||
evas_common_gradient_geometer_get(char *name)
|
||||
evas_common_gradient_geometer_get(const char *name)
|
||||
{
|
||||
RGBA_Gradient_Type *geom = NULL;
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ Evas_List *evas_modules = NULL;
|
|||
static Evas_List *evas_module_paths = NULL;
|
||||
|
||||
static void
|
||||
_evas_module_path_append(Evas_Module_Type type, char *path, char *subdir)
|
||||
_evas_module_path_append(Evas_Module_Type type, char *path, const char *subdir)
|
||||
{
|
||||
Evas_Module_Path *mp;
|
||||
char *buf;
|
||||
|
|
|
@ -77,7 +77,7 @@ evas_file_path_is_dir(const char *path)
|
|||
}
|
||||
|
||||
Evas_List *
|
||||
evas_file_path_list(char *path, char *match, int match_case)
|
||||
evas_file_path_list(char *path, const char *match, int match_case)
|
||||
{
|
||||
Evas_List *files = NULL;
|
||||
DIR *dir;
|
||||
|
|
|
@ -232,7 +232,7 @@ struct _Evas_Hash
|
|||
struct _Evas_Hash_El
|
||||
{
|
||||
Evas_Object_List _list_data;
|
||||
char *key;
|
||||
const char *key;
|
||||
void *data;
|
||||
};
|
||||
|
||||
|
@ -435,7 +435,7 @@ struct _RGBA_Gradient
|
|||
|
||||
struct _RGBA_Gradient_Type
|
||||
{
|
||||
char *name;
|
||||
const char *name;
|
||||
void (*init)(void);
|
||||
void (*shutdown)(void);
|
||||
void (*geom_init)(RGBA_Gradient *gr);
|
||||
|
@ -513,7 +513,7 @@ struct _RGBA_Font_Glyph
|
|||
|
||||
struct _RGBA_Gfx_Compositor
|
||||
{
|
||||
char *name;
|
||||
const char *name;
|
||||
|
||||
void (*init)(void);
|
||||
void (*shutdown)(void);
|
||||
|
@ -895,7 +895,7 @@ EAPI void evas_common_gradient_color_stop_add (RGBA_Gradient *gr, in
|
|||
EAPI void evas_common_gradient_alpha_stop_add (RGBA_Gradient *gr, int a, int dist);
|
||||
EAPI void evas_common_gradient_color_data_set (RGBA_Gradient *gr, DATA32 *data, int len, int alpha_flags);
|
||||
EAPI void evas_common_gradient_alpha_data_set (RGBA_Gradient *gr, DATA8 *adata, int len);
|
||||
EAPI void evas_common_gradient_type_set (RGBA_Gradient *gr, char *name, char *params);
|
||||
EAPI void evas_common_gradient_type_set (RGBA_Gradient *gr, const char *name, char *params);
|
||||
EAPI void evas_common_gradient_fill_set (RGBA_Gradient *gr, int x, int y, int w, int h);
|
||||
EAPI void evas_common_gradient_fill_angle_set (RGBA_Gradient *gr, float angle);
|
||||
EAPI 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
|
|||
EAPI void evas_common_gradient_map (RGBA_Draw_Context *dc, RGBA_Gradient *gr, int len);
|
||||
EAPI void evas_common_gradient_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h, RGBA_Gradient *gr);
|
||||
|
||||
RGBA_Gradient_Type *evas_common_gradient_geometer_get (char *name);
|
||||
RGBA_Gradient_Type *evas_common_gradient_geometer_get (const char *name);
|
||||
RGBA_Gradient_Type *evas_common_gradient_linear_get (void);
|
||||
RGBA_Gradient_Type *evas_common_gradient_radial_get (void);
|
||||
RGBA_Gradient_Type *evas_common_gradient_angular_get (void);
|
||||
|
|
|
@ -415,7 +415,7 @@ struct _Evas_Object
|
|||
Evas_List *changes;
|
||||
} clip;
|
||||
|
||||
Evas_Object_Func *func;
|
||||
const Evas_Object_Func *func;
|
||||
|
||||
void *object_data;
|
||||
|
||||
|
@ -687,7 +687,7 @@ char *evas_file_path_join(const char *path, const char *end);
|
|||
int evas_file_path_exists(const char *path);
|
||||
int evas_file_path_is_file(const char *path);
|
||||
int evas_file_path_is_dir(const char *path);
|
||||
Evas_List *evas_file_path_list(char *path, char *match, int match_case);
|
||||
Evas_List *evas_file_path_list(char *path, const char *match, int match_case);
|
||||
DATA64 evas_file_modified_time(const char *file);
|
||||
char *evas_file_path_resolve(const char *file);
|
||||
int evas_mem_free(int mem_required);
|
||||
|
@ -697,7 +697,7 @@ void evas_debug_input_null(void);
|
|||
void evas_debug_magic_null(void);
|
||||
void evas_debug_magic_wrong(DATA32 expected, DATA32 supplied);
|
||||
void evas_debug_generic(const char *str);
|
||||
char *evas_debug_magic_string_get(DATA32 magic);
|
||||
const char *evas_debug_magic_string_get(DATA32 magic);
|
||||
void evas_object_smart_use(Evas_Smart *s);
|
||||
void evas_object_smart_unuse(Evas_Smart *s);
|
||||
void evas_object_smart_del(Evas_Object *obj);
|
||||
|
|
|
@ -171,7 +171,7 @@ evas_debug_generic(const char *str)
|
|||
if (_evas_debug_abort) abort();
|
||||
}
|
||||
|
||||
char *
|
||||
const char *
|
||||
evas_debug_magic_string_get(DATA32 magic)
|
||||
{
|
||||
switch (magic)
|
||||
|
|
Loading…
Reference in New Issue