if (act) act->func.go = _e_actions_act_##name##_go; \
}
#define ACT_FN_GO(act) \
- static void _e_actions_act_##act##_go(E_Object *obj, char *params)
+ static void _e_actions_act_##act##_go(E_Object *obj, const char *params)
#define ACT_GO_MOUSE(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.go_mouse = _e_actions_act_##name##_go_mouse; \
}
#define ACT_FN_GO_MOUSE(act) \
- static void _e_actions_act_##act##_go_mouse(E_Object *obj, char *params, Ecore_X_Event_Mouse_Button_Down *ev)
+ static void _e_actions_act_##act##_go_mouse(E_Object *obj, const char *params, Ecore_X_Event_Mouse_Button_Down *ev)
#define ACT_GO_WHEEL(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.go_wheel = _e_actions_act_##name##_go_wheel; \
}
#define ACT_FN_GO_WHEEL(act) \
- static void _e_actions_act_##act##_go_wheel(E_Object *obj, char *params, Ecore_X_Event_Mouse_Wheel *ev)
+ static void _e_actions_act_##act##_go_wheel(E_Object *obj, const char *params, Ecore_X_Event_Mouse_Wheel *ev)
#define ACT_GO_SIGNAL(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.go_signal = _e_actions_act_##name##_go_signal; \
}
#define ACT_FN_GO_SIGNAL(act) \
- static void _e_actions_act_##act##_go_signal(E_Object *obj, char *params, char *sig, char *src)
+ static void _e_actions_act_##act##_go_signal(E_Object *obj, const char *params, const char *sig, const char *src)
#define ACT_GO_KEY(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.go_key = _e_actions_act_##name##_go_key; \
}
#define ACT_FN_GO_KEY(act) \
- static void _e_actions_act_##act##_go_key(E_Object *obj, char *params, Ecore_X_Event_Key_Down *ev)
+ static void _e_actions_act_##act##_go_key(E_Object *obj, const char *params, Ecore_X_Event_Key_Down *ev)
#define ACT_END(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.end = _e_actions_act_##name##_end; \
}
#define ACT_FN_END(act) \
- static void _e_actions_act_##act##_end(E_Object *obj, char *params)
+ static void _e_actions_act_##act##_end(E_Object *obj, const char *params)
#define ACT_END_MOUSE(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.end_mouse = _e_actions_act_##name##_end_mouse; \
}
#define ACT_FN_END_MOUSE(act) \
- static void _e_actions_act_##act##_end_mouse(E_Object *obj, char *params, Ecore_X_Event_Mouse_Button_Up *ev)
+ static void _e_actions_act_##act##_end_mouse(E_Object *obj, const char *params, Ecore_X_Event_Mouse_Button_Up *ev)
#define ACT_END_KEY(name) \
{ \
act = e_action_add(#name); \
if (act) act->func.end_key = _e_actions_act_##name##_end_key; \
}
#define ACT_FN_END_KEY(act) \
- static void _e_actions_act_##act##_end_key(E_Object *obj, char *params, Ecore_X_Event_Key_Up *ev)
+ static void _e_actions_act_##act##_end_key(E_Object *obj, const char *params, Ecore_X_Event_Key_Up *ev)
/* local subsystem functions */
static void _e_action_free(E_Action *act);
e_object_del(E_OBJECT(m));
}
static E_Menu *
-_e_actions_menu_find(char *name)
+_e_actions_menu_find(const char *name)
{
if (!strcmp(name, "main")) return e_int_menus_main_new();
else if (!strcmp(name, "favorites")) return e_int_menus_favorite_apps_new();
const char *name;
struct {
- void (*go) (E_Object *obj, char *params);
- void (*go_mouse) (E_Object *obj, char *params, Ecore_X_Event_Mouse_Button_Down *ev);
- void (*go_wheel) (E_Object *obj, char *params, Ecore_X_Event_Mouse_Wheel *ev);
- void (*go_key) (E_Object *obj, char *params, Ecore_X_Event_Key_Down *ev);
- void (*go_signal) (E_Object *obj, char *params, char *sig, char *src);
- void (*end) (E_Object *obj, char *params);
- void (*end_mouse) (E_Object *obj, char *params, Ecore_X_Event_Mouse_Button_Up *ev);
- void (*end_key) (E_Object *obj, char *params, Ecore_X_Event_Key_Up *ev);
+ void (*go) (E_Object *obj, const char *params);
+ void (*go_mouse) (E_Object *obj, const char *params, Ecore_X_Event_Mouse_Button_Down *ev);
+ void (*go_wheel) (E_Object *obj, const char *params, Ecore_X_Event_Mouse_Wheel *ev);
+ void (*go_key) (E_Object *obj, const char *params, Ecore_X_Event_Key_Down *ev);
+ void (*go_signal) (E_Object *obj, const char *params, const char *sig, const char *src);
+ void (*end) (E_Object *obj, const char *params);
+ void (*end_mouse) (E_Object *obj, const char *params, Ecore_X_Event_Mouse_Button_Up *ev);
+ void (*end_key) (E_Object *obj, const char *params, Ecore_X_Event_Key_Up *ev);
} func;
};
static int _e_app_cb_expire_timer (void *data);
static void _e_app_cache_copy (E_App_Cache *ac, E_App *a);
static int _e_app_cb_scan_cache_timer(void *data);
-static E_App *_e_app_cache_new (E_App_Cache *ac, char *path, int scan_subdirs);
-static int _e_app_exe_valid_get (char *exe);
+static E_App *_e_app_cache_new (E_App_Cache *ac, const char *path, int scan_subdirs);
+static int _e_app_exe_valid_get (const char *exe);
/* local subsystem globals */
static Evas_Hash *_e_apps = NULL;
static Ecore_Event_Handler *_e_apps_border_add_handler = NULL;
static Evas_List *_e_apps_repositories = NULL;
static E_App *_e_apps_all = NULL;
-static char *_e_apps_path_all = NULL;
-static char *_e_apps_path_trash = NULL;
+static const char *_e_apps_path_all = NULL;
+static const char *_e_apps_path_trash = NULL;
static Evas_List *_e_apps_start_pending = NULL;
#define EAP_MIN_WIDTH 8
return a;
}
- ac = e_app_cache_load((char *)path);
+ ac = e_app_cache_load(path);
if (ac)
{
- a = _e_app_cache_new(ac, (char *)path, scan_subdirs);
+ a = _e_app_cache_new(ac, path, scan_subdirs);
if (a)
{
_e_apps = evas_hash_add(_e_apps, a->path, a);
}
EAPI E_App *
-e_app_file_find(char *file)
+e_app_file_find(const char *file)
{
Evas_List *l;
}
EAPI E_App *
-e_app_name_find(char *name)
+e_app_name_find(const char *name)
{
Evas_List *l;
}
EAPI E_App *
-e_app_generic_find(char *generic)
+e_app_generic_find(const char *generic)
{
Evas_List *l;
}
EAPI E_App *
-e_app_exe_find(char *exe)
+e_app_exe_find(const char *exe)
{
Evas_List *l;
EAPI Evas_List *
-e_app_name_glob_list(char *name)
+e_app_name_glob_list(const char *name)
{
Evas_List *l, *list = NULL;
}
EAPI Evas_List *
-e_app_generic_glob_list(char *generic)
+e_app_generic_glob_list(const char *generic)
{
Evas_List *l, *list = NULL;
}
EAPI Evas_List *
-e_app_exe_glob_list(char *exe)
+e_app_exe_glob_list(const char *exe)
{
Evas_List *l, *list = NULL;
}
EAPI Evas_List *
-e_app_comment_glob_list(char *comment)
+e_app_comment_glob_list(const char *comment)
{
Evas_List *l, *list = NULL;
}
static E_App *
-_e_app_cache_new(E_App_Cache *ac, char *path, int scan_subdirs)
+_e_app_cache_new(E_App_Cache *ac, const char *path, int scan_subdirs)
{
Evas_List *l;
E_App *a;
}
static int
-_e_app_exe_valid_get(char *exe)
+_e_app_exe_valid_get(const char *exe)
{
if ((!exe) || (!exe[0])) return 0;
return 1;
E_App *parent; /* the parent e_app node */
E_App *orig; /* if this is a copy, point to the original */
- char *name; /* app name */
- char *generic; /* generic app name */
- char *comment; /* a longer description */
- char *exe; /* command to execute, NULL if directory */
+ const char *name; /* app name */
+ const char *generic; /* generic app name */
+ const char *comment; /* a longer description */
+ const char *exe; /* command to execute, NULL if directory */
- char *path; /* path to .eet containing icons etc. etc. */
+ const char *path; /* path to .eet containing icons etc. etc. */
- char *win_name; /* window name */
- char *win_class; /* window class */
- char *win_title; /* window title */
- char *win_role; /* window role */
+ const char *win_name; /* window name */
+ const char *win_class; /* window class */
+ const char *win_title; /* window title */
+ const char *win_role; /* window role */
- char *icon_class; /* icon_class */
+ const char *icon_class; /* icon_class */
Evas_List *subapps; /* if this a directory, a list of more E_App's */
unsigned char deleted : 1; /* this app's file is deleted from disk */
- char *image; /* used when we're saving a image into the eap */
+ const char *image; /* used when we're saving a image into the eap */
int width; /* used for saving eap's image width in edje */
int height; /* used for saving eap's image height in edje */
};
EAPI E_App *e_app_launch_id_pid_find (int launch_id, pid_t pid);
EAPI E_App *e_app_window_name_class_title_role_find (const char *name, const char *class, const char *title, const char *role);
-EAPI E_App *e_app_file_find (char *file);
-EAPI E_App *e_app_name_find (char *name);
-EAPI E_App *e_app_generic_find (char *generic);
-EAPI E_App *e_app_exe_find (char *exe);
-
-EAPI Evas_List *e_app_name_glob_list (char *name);
-EAPI Evas_List *e_app_generic_glob_list (char *generic);
-EAPI Evas_List *e_app_exe_glob_list (char *exe);
-EAPI Evas_List *e_app_comment_glob_list (char *comment);
+EAPI E_App *e_app_file_find (const char *file);
+EAPI E_App *e_app_name_find (const char *name);
+EAPI E_App *e_app_generic_find (const char *generic);
+EAPI E_App *e_app_exe_find (const char *exe);
+
+EAPI Evas_List *e_app_name_glob_list (const char *name);
+EAPI Evas_List *e_app_generic_glob_list (const char *generic);
+EAPI Evas_List *e_app_exe_glob_list (const char *exe);
+EAPI Evas_List *e_app_comment_glob_list (const char *comment);
EAPI void e_app_fields_fill (E_App *a, const char *path);
EAPI void e_app_fields_save (E_App *a);
}
EAPI E_App_Cache *
-e_app_cache_load(char *path)
+e_app_cache_load(const char *path)
{
Eet_File *ef;
char buf[PATH_MAX];
}
EAPI int
-e_app_cache_save(E_App_Cache *ac, char *path)
+e_app_cache_save(E_App_Cache *ac, const char *path)
{
Eet_File *ef;
char buf[4096];
struct _E_App_Cache
{
- char *name; /* app name */
- char *generic; /* generic app name */
- char *comment; /* a longer description */
- char *exe; /* command to execute, NULL if directory */
-
- char *file; /* the .eap filename */
+ const char *name; /* app name */
+ const char *generic; /* generic app name */
+ const char *comment; /* a longer description */
+ const char *exe; /* command to execute, NULL if directory */
+
+ const char *file; /* the .eap filename */
unsigned long long file_mod_time; /* the last modified time of the file */
- char *win_name; /* window name */
- char *win_class; /* window class */
- char *win_title; /* window title */
- char *win_role; /* window role */
+ const char *win_name; /* window name */
+ const char *win_class; /* window class */
+ const char *win_title; /* window title */
+ const char *win_role; /* window role */
- char *icon_class; /* icon_class */
+ const char *icon_class; /* icon_class */
Evas_List *subapps; /* if this a directory, a list of more E_App's */
EAPI int e_app_cache_init(void);
EAPI int e_app_cache_shutdown(void);
-EAPI E_App_Cache *e_app_cache_load(char *path);
+EAPI E_App_Cache *e_app_cache_load(const char *path);
EAPI E_App_Cache *e_app_cache_generate(E_App *a);
EAPI void e_app_cache_free(E_App_Cache *ac);
-EAPI int e_app_cache_save(E_App_Cache *ac, char *path);
+EAPI int e_app_cache_save(E_App_Cache *ac, const char *path);
#endif
#endif
Evas_List *l, *ll, *entries;
int ok;
const char *bgfile = "";
- char *trans = "";
+ const char *trans = "";
if (transition == E_BG_TRANSITION_START) trans = e_config->transition_start;
else if (transition == E_BG_TRANSITION_DESK) trans = e_config->transition_desk;
}
EAPI void
-e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, char *action, char *params)
+e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
E_Binding_Mouse *bind;
}
EAPI void
-e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, char *action, char *params)
+e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
Evas_List *l;
}
EAPI void
-e_bindings_key_add(E_Binding_Context ctxt, char *key, E_Binding_Modifier mod, int any_mod, char *action, char *params)
+e_bindings_key_add(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
E_Binding_Key *bind;
}
EAPI void
-e_bindings_key_del(E_Binding_Context ctxt, char *key, E_Binding_Modifier mod, int any_mod, char *action, char *params)
+e_bindings_key_del(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
Evas_List *l;
}
EAPI void
-e_bindings_signal_add(E_Binding_Context ctxt, char *sig, char *src, E_Binding_Modifier mod, int any_mod, char *action, char *params)
+e_bindings_signal_add(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
E_Binding_Signal *bind;
}
EAPI void
-e_bindings_signal_del(E_Binding_Context ctxt, char *sig, char *src, E_Binding_Modifier mod, int any_mod, char *action, char *params)
+e_bindings_signal_del(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
Evas_List *l;
}
EAPI void
-e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, char *action, char *params)
+e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
E_Binding_Wheel *bind;
}
EAPI void
-e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, char *action, char *params)
+e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
Evas_List *l;
int button;
E_Binding_Modifier mod;
unsigned char any_mod : 1;
- char *action;
- char *params;
+ const char *action;
+ const char *params;
};
struct _E_Binding_Key
{
E_Binding_Context ctxt;
- char *key;
+ const char *key;
E_Binding_Modifier mod;
unsigned char any_mod : 1;
- char *action;
- char *params;
+ const char *action;
+ const char *params;
};
struct _E_Binding_Signal
{
E_Binding_Context ctxt;
- char *sig;
- char *src;
+ const char *sig;
+ const char *src;
E_Binding_Modifier mod;
unsigned char any_mod : 1;
- char *action;
- char *params;
+ const char *action;
+ const char *params;
};
struct _E_Binding_Wheel
int z;
E_Binding_Modifier mod;
unsigned char any_mod : 1;
- char *action;
- char *params;
+ const char *action;
+ const char *params;
};
EAPI int e_bindings_init(void);
EAPI int e_bindings_shutdown(void);
-EAPI void e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, char *action, char *params);
-EAPI void e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, char *action, char *params);
+EAPI void e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
+EAPI void e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
EAPI void e_bindings_mouse_grab(E_Binding_Context ctxt, Ecore_X_Window win);
EAPI void e_bindings_mouse_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
EAPI E_Action *e_bindings_mouse_down_find(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Mouse_Button_Down *ev, E_Binding_Mouse **bind_ret);
EAPI E_Action *e_bindings_mouse_up_find(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Mouse_Button_Up *ev, E_Binding_Mouse **bind_ret);
EAPI E_Action *e_bindings_mouse_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Mouse_Button_Up *ev);
-EAPI void e_bindings_key_add(E_Binding_Context ctxt, char *key, E_Binding_Modifier mod, int any_mod, char *action, char *params);
-EAPI void e_bindings_key_del(E_Binding_Context ctxt, char *key, E_Binding_Modifier mod, int any_mod, char *action, char *params);
+EAPI void e_bindings_key_add(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
+EAPI void e_bindings_key_del(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
EAPI void e_bindings_key_grab(E_Binding_Context ctxt, Ecore_X_Window win);
EAPI void e_bindings_key_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
EAPI E_Action *e_bindings_key_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Key_Down *ev);
EAPI E_Action *e_bindings_key_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Key_Up *ev);
-EAPI void e_bindings_signal_add(E_Binding_Context ctxt, char *sig, char *src, E_Binding_Modifier mod, int any_mod, char *action, char *params);
-EAPI void e_bindings_signal_del(E_Binding_Context ctxt, char *sig, char *src, E_Binding_Modifier mod, int any_mod, char *action, char *params);
+EAPI void e_bindings_signal_add(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
+EAPI void e_bindings_signal_del(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
EAPI E_Action *e_bindings_signal_find(E_Binding_Context ctxt, E_Object *obj, char *sig, char *src, E_Binding_Signal **bind_ret);
EAPI E_Action *e_bindings_signal_handle(E_Binding_Context ctxt, E_Object *obj, char *sig, char *src);
-EAPI void e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, char *action, char *params);
-EAPI void e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, char *action, char *params);
+EAPI void e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
+EAPI void e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
EAPI void e_bindings_wheel_grab(E_Binding_Context ctxt, Ecore_X_Window win);
EAPI void e_bindings_wheel_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
EAPI E_Action *e_bindings_wheel_find(E_Binding_Context ctxt, E_Object *obj, Ecore_X_Event_Mouse_Wheel *ev, E_Binding_Wheel **bind_ret);
EAPI void
-e_border_signal_move_begin(E_Border *bd, char *sig, char *src)
+e_border_signal_move_begin(E_Border *bd, const char *sig, const char *src)
{
E_OBJECT_CHECK(bd);
E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
}
EAPI void
-e_border_signal_move_end(E_Border *bd, char *sig, char *src)
+e_border_signal_move_end(E_Border *bd, const char *sig, const char *src)
{
E_OBJECT_CHECK(bd);
E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
}
EAPI void
-e_border_signal_resize_begin(E_Border *bd, char *dir, char *sig, char *src)
+e_border_signal_resize_begin(E_Border *bd, const char *dir, const char *sig, const char *src)
{
Ecore_X_Gravity grav = ECORE_X_GRAVITY_NW;
int resize_mode = RESIZE_BR;
}
EAPI void
-e_border_signal_resize_end(E_Border *bd, char *dir, char *sig, char *src)
+e_border_signal_resize_end(E_Border *bd, const char *dir, const char *sig, const char *src)
{
E_OBJECT_CHECK(bd);
E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
struct {
unsigned char changed : 1;
unsigned char user_selected : 1;
- char *name;
+ const char *name;
} border;
unsigned char shaped : 1;
EAPI const char *e_border_name_get(E_Border *bd);
-EAPI void e_border_signal_move_begin(E_Border *bd, char *sig, char *src);
-EAPI void e_border_signal_move_end(E_Border *bd, char *sig, char *src);
+EAPI void e_border_signal_move_begin(E_Border *bd, const char *sig, const char *src);
+EAPI void e_border_signal_move_end(E_Border *bd, const char *sig, const char *src);
EAPI int e_border_resizing_get(E_Border *bd);
-EAPI void e_border_signal_resize_begin(E_Border *bd, char *dir, char *sig, char *src);
-EAPI void e_border_signal_resize_end(E_Border *bd, char *dir, char *sig, char *src);
+EAPI void e_border_signal_resize_begin(E_Border *bd, const char *dir, const char *sig, const char *src);
+EAPI void e_border_signal_resize_end(E_Border *bd, const char *dir, const char *sig, const char *src);
EAPI void e_border_resize_limit(E_Border *bd, int *w, int *h);
extern EAPI int E_EVENT_BORDER_RESIZE;
struct _E_Color_Class
{
- char *name;
+ const char *name;
int r, g, b, a;
int r2, g2, b2, a2;
int r3, g3, b3, a3;
{
int config_version;
int show_splash; //GUI
- char *desktop_default_background;
+ const char *desktop_default_background;
Evas_List *desktop_backgrounds;
- char *desktop_default_name;
+ const char *desktop_default_name;
Evas_List *desktop_names;
double menus_scroll_speed; // GUI
double menus_fast_mouse_move_threshhold; // GUI
int evas_engine_drag;
int evas_engine_win;
int evas_engine_zone;
- char *language;
+ const char *language;
Evas_List *modules;
Evas_List *font_fallbacks;
Evas_List *font_defaults;
double kill_timer_wait;
int ping_clients;
double ping_clients_wait;
- char *transition_start;
- char *transition_desk;
- char *transition_change;
+ const char *transition_start;
+ const char *transition_desk;
+ const char *transition_change;
Evas_List *remembers;
int move_info_follows; // GUI
int resize_info_follows; // GUI
int cursor_size; //GUI
int menu_autoscroll_margin; // GUI
int menu_autoscroll_cursor_margin; // GUI
- char *input_method;
+ const char *input_method;
struct {
int move;
int resize;
struct _E_Config_Module
{
- char *name;
+ const char *name;
unsigned char enabled;
};
struct _E_Config_Theme
{
- char *category;
- char *file;
+ const char *category;
+ const char *file;
};
struct _E_Config_Binding_Mouse
{
int context;
int modifiers;
- char *action;
- char *params;
+ const char *action;
+ const char *params;
unsigned char button;
unsigned char any_mod;
};
{
int context;
int modifiers;
- char *key;
- char *action;
- char *params;
+ const char *key;
+ const char *action;
+ const char *params;
unsigned char any_mod;
};
struct _E_Config_Binding_Signal
{
int context;
- char *signal;
- char *source;
+ const char *signal;
+ const char *source;
int modifiers;
unsigned char any_mod;
- char *action;
- char *params;
+ const char *action;
+ const char *params;
};
struct _E_Config_Binding_Wheel
int z;
int modifiers;
unsigned char any_mod;
- char *action;
- char *params;
+ const char *action;
+ const char *params;
};
struct _E_Config_Desktop_Background
int zone;
int desk_x;
int desk_y;
- char *file;
+ const char *file;
};
struct _E_Config_Desktop_Name
int zone;
int desk_x;
int desk_y;
- char *name;
+ const char *name;
};
struct _E_Config_Gadcon
{
- char *name, *id;
- Evas_List *clients;
+ const char *name;
+ const char *id;
+ Evas_List *clients;
};
struct _E_Config_Gadcon_Client
{
- char *name, *id;
+ const char *name;
+ const char *id;
struct {
int pos, size, res;
} geom;
struct _E_Config_Shelf
{
- char *name;
+ const char *name;
int container, zone;
int layer;
unsigned char popup;
} res;
int x, y, w, h;
int orient;
- char *style;
+ const char *style;
};
EAPI int e_config_init(void);
/* externally accessible functions */
EAPI E_Config_Dialog *
-e_config_dialog_new(E_Container *con, char *title, char *icon, int icon_size, E_Config_Dialog_View *view, void *data)
+e_config_dialog_new(E_Container *con, const char *title, const char *icon, int icon_size, E_Config_Dialog_View *view, void *data)
{
E_Config_Dialog *cfd;
E_Config_Dialog_View *view;
E_Config_Dialog_Data *cfdata;
E_Container *con;
- char *title;
- char *icon;
+ const char *title;
+ const char *icon;
int icon_size;
E_Dialog *dia;
void *data;
int hide_buttons;
};
-EAPI E_Config_Dialog *e_config_dialog_new(E_Container *con, char *title, char *icon, int icon_size, E_Config_Dialog_View *view, void *data);
+EAPI E_Config_Dialog *e_config_dialog_new(E_Container *con, const char *title, const char *icon, int icon_size, E_Config_Dialog_View *view, void *data);
#endif
#endif
E_Gadman *gadman;
unsigned int num;
- char *name;
+ const char *name;
Ecore_Evas *bg_ecore_evas;
Evas *bg_evas;
}
EAPI void
-e_desk_name_add(int container, int zone, int desk_x, int desk_y, char *name)
+e_desk_name_add(int container, int zone, int desk_x, int desk_y, const char *name)
{
E_Config_Desktop_Name *cfname;
E_Object e_obj_inherit;
E_Zone *zone;
- char *name;
+ const char *name;
int x, y;
char visible : 1;
EAPI int e_desk_shutdown(void);
EAPI E_Desk *e_desk_new(E_Zone *zone, int x, int y);
EAPI void e_desk_name_set(E_Desk *desk, const char *name);
-EAPI void e_desk_name_add(int container, int zone, int desk_x, int desk_y, char *name);
+EAPI void e_desk_name_add(int container, int zone, int desk_x, int desk_y, const char *name);
EAPI void e_desk_name_del(int container, int zone, int desk_x, int desk_y);
EAPI void e_desk_name_update(void);
EAPI void e_desk_show(E_Desk *desk);
#ifdef E_TYPEDEFS
#else
-#ifdef E_DESKLOCK_H
+#ifndef E_DESKLOCK_H
+#define E_DESKLOCK_H
EAPI int e_desklock_init(void);
EAPI int e_desklock_shutdown(void);
}
EAPI void
-e_dialog_button_add(E_Dialog *dia, char *label, char *icon, void (*func) (void *data, E_Dialog *dia), void *data)
+e_dialog_button_add(E_Dialog *dia, const char *label, const char *icon, void (*func) (void *data, E_Dialog *dia), void *data)
{
Evas_Object *o;
if (!func) func = _e_dialog_del_func_cb;
- o = e_widget_button_add(e_win_evas_get(dia->win), label, icon, func, data, dia);
+ o = e_widget_button_add(e_win_evas_get(dia->win), label, icon, (void (*) (void*, void*)) func, data, dia);
e_widget_list_object_append(dia->box_object, o, 1, 0, 0.5);
dia->buttons = evas_list_append(dia->buttons, o);
}
}
EAPI void
-e_dialog_title_set(E_Dialog *dia, char *title)
+e_dialog_title_set(E_Dialog *dia, const char *title)
{
e_win_title_set(dia->win, title);
}
EAPI void
-e_dialog_text_set(E_Dialog *dia, char *text)
+e_dialog_text_set(E_Dialog *dia, const char *text)
{
if (!dia->text_object)
{
}
EAPI void
-e_dialog_icon_set(E_Dialog *dia, char *icon, Evas_Coord size)
+e_dialog_icon_set(E_Dialog *dia, const char *icon, Evas_Coord size)
{
if (!icon) return;
};
EAPI E_Dialog *e_dialog_new (E_Container *con);
-EAPI void e_dialog_button_add (E_Dialog *dia, char *label, char *icon, void (*func) (void *data, E_Dialog *dia), void *data);
+EAPI void e_dialog_button_add (E_Dialog *dia, const char *label, const char *icon, void (*func) (void *data, E_Dialog *dia), void *data);
EAPI int e_dialog_button_focus_num (E_Dialog *dia, int button);
EAPI int e_dialog_button_disable_num_set (E_Dialog *dia, int button, int disabled);
EAPI int e_dialog_button_disable_num_get (E_Dialog *dia, int button);
-EAPI void e_dialog_title_set (E_Dialog *dia, char *title);
-EAPI void e_dialog_text_set (E_Dialog *dia, char *text);
-EAPI void e_dialog_icon_set (E_Dialog *dia, char *icon, Evas_Coord size);
+EAPI void e_dialog_title_set (E_Dialog *dia, const char *title);
+EAPI void e_dialog_text_set (E_Dialog *dia, const char *text);
+EAPI void e_dialog_icon_set (E_Dialog *dia, const char *icon, Evas_Coord size);
EAPI void e_dialog_content_set (E_Dialog *dia, Evas_Object *obj, Evas_Coord minw, Evas_Coord minh);
EAPI void e_dialog_resizable_set (E_Dialog *dia, int resizable);
EAPI void e_dialog_show (E_Dialog *dia);
E_Container *con;
Ecore_X_Window win;
int x, y;
- char *s;
+ const char *s;
con = e_container_current_get(man);
{
Evas_Event_Mouse_Down *ev;
Ecore_Evas *ee;
- char *s;
+ const char *s;
ev = event_info;
if (ev->button != 1) return;
Evas_Event_Mouse_Up *ev;
Ecore_Evas *ee;
Evas_Object *o;
- char *s;
+ const char *s;
ev = event_info;
if (ev->button != 1) return;
struct _E_Exe
{
- char *path;
+ const char *path;
};
struct _E_Exe_List
struct _E_Exehist_Item
{
- char *exe;
- char *launch_method;
+ const char *exe;
+ const char *launch_method;
double exetime;
};
{
E_Fm_Mime_Entry *root;
E_Fm_Mime_Entry *entry;
- E_Fm_Mime_Entry *l1,*l2,*l3;
+ E_Fm_Mime_Entry *l1,*l2;
E_Fm_Mime_Action *action;
if(init_count)
return 1;
}
-EAPI int
+EAPI void
e_fm_mime_action_default_call(E_Fm_Smart_Data *sd)
{
E_Fm_Mime_Entry *mime;
if(*c == 'f')
{
int j = 2;
- char *f = NULL;
astr = calloc(PATH_MAX,sizeof(char));
for(l = files; l; l = l->next)
EAPI E_Fm_Mime_Entry *e_fm_mime_get_from_list(Evas_List *files);
EAPI void e_fm_mime_set(E_Fm_File *file);
EAPI int e_fm_mime_action_call(E_Fm_Smart_Data *sd, E_Fm_Mime_Action *action);
-EAPI int e_fm_mime_action_default_call(E_Fm_Smart_Data *sd);
+EAPI void e_fm_mime_action_default_call(E_Fm_Smart_Data *sd);
EAPI char *e_fm_mime_translate(E_Fm_Smart_Data *sd, char *istr);
e_config->font_fallbacks = evas_list_remove_list(
e_config->font_fallbacks,
e_config->font_fallbacks);
- E_FREE(eff->name);
+ if (eff->name) evas_stringshare_del(eff->name);
E_FREE(eff);
}
}
struct _E_Font_Default
{
- char *text_class;
- char *font;
- int size;
+ const char *text_class;
+ const char *font;
+ int size;
};
struct _E_Font_Fallback
{
- char *name;
+ const char *name;
};
struct _E_Font_Available
{
- char *name;
+ const char *name;
};
EAPI int e_font_init(void);
}
EAPI E_Gadcon *
-e_gadcon_swallowed_new(char *name, char *id, Evas_Object *obj, char *swallow_name)
+e_gadcon_swallowed_new(const char *name, char *id, Evas_Object *obj, char *swallow_name)
{
E_Gadcon *gc;
EAPI int e_gadcon_shutdown(void);
EAPI void e_gadcon_provider_register(E_Gadcon_Client_Class *cc);
EAPI void e_gadcon_provider_unregister(E_Gadcon_Client_Class *cc);
-EAPI E_Gadcon *e_gadcon_swallowed_new(char *name, char *id, Evas_Object *obj, char *swallow_name);
+EAPI E_Gadcon *e_gadcon_swallowed_new(const char *name, char *id, Evas_Object *obj, char *swallow_name);
EAPI void e_gadcon_layout_policy_set(E_Gadcon *gc, E_Gadcon_Layout_Policy layout_policy);
EAPI void e_gadcon_populate(E_Gadcon *gc);
EAPI void e_gadcon_orient(E_Gadcon *gc, E_Gadcon_Orient orient);
E_Menu *m;
E_Menu_Item *mi;
int disallow, seperator;
- char *s;
+ const char *s;
E_OBJECT_CHECK_RETURN(gmc, NULL);
E_OBJECT_TYPE_CHECK_RETURN(gmc, E_GADMAN_CLIENT_TYPE, NULL);
unsigned char resizing_u : 1;
unsigned char resizing_d : 1;
E_Gadman_Edge edge;
- char *domain;
+ const char *domain;
E_Zone *zone;
int instance;
E_Gadman_Policy policy;
#include "e_stolen.h"
#include "e_gadcon.h"
#include "e_shelf.h"
+#include "e_tlist.h"
int num;
Evas_Object *o;
Evas_List *l, *screens;
- char *s;
+ const char *s;
num = 0;
roots = ecore_x_window_root_list(&num);
_fill_keybindings_data(E_Config_Dialog_Data *cfdata)
{
int i, j;
- int found;
E_Config_KeyBind *eckb;
E_Config_Binding_Key *bk, *t;
- const char *action_name = NULL;
for( i = 0; actions_predefined_names[i].action_name; i++ )
{
continue;
bk->context = t->context;
- bk->key = strdup(t->key);
+ bk->key = evas_stringshare_add(t->key);
bk->modifiers = t->modifiers;
bk->any_mod = t->any_mod;
- bk->action = t->action == NULL ? NULL : strdup(t->action);
- bk->params = t->params == NULL ? NULL : strdup(t->params);
+ bk->action = t->action == NULL ?
+ NULL : evas_stringshare_add(t->action);
+ bk->params = t->params == NULL ?
+ NULL : evas_stringshare_add(t->params);
eckb->bk_list = evas_list_append(eckb->bk_list, bk);
break;
continue;
bk->context = t->context;
- bk->key = strdup(t->key);
+ bk->key = evas_stringshare_add(t->key);
bk->modifiers = t->modifiers;
bk->any_mod = t->any_mod;
- bk->action = t->action == NULL ? NULL : strdup(t->action);
- bk->params = t->params == NULL ? NULL : strdup(t->params);
+ bk->action = t->action == NULL ?
+ NULL : evas_stringshare_add(t->action);
+ bk->params = t->params == NULL ?
+ NULL : evas_stringshare_add(t->params);
eckb->bk_list = evas_list_append(eckb->bk_list, bk);
break;
continue;
bk->context = t->context;
- bk->key = strdup(t->key);
+ bk->key = evas_stringshare_add(t->key);
bk->modifiers = t->modifiers;
bk->any_mod = t->any_mod;
- bk->action = t->action == NULL ? NULL : strdup(t->action);
- bk->params = t->params == NULL ? NULL : strdup(t->params);
+ bk->action = t->action == NULL ?
+ NULL : evas_stringshare_add(t->action);
+ bk->params = t->params == NULL ?
+ NULL : evas_stringshare_add(t->params);
eckb->bk_list = evas_list_append(eckb->bk_list, bk);
break;
bk = evas_list_nth(eckb->bk_list, j);
if (bk)
{
- E_FREE(bk->key);
- E_FREE(bk->action);
- E_FREE(bk->params);
+ if (bk->key) evas_stringshare_del(bk->key);
+ if (bk->action) evas_stringshare_del(bk->action);
+ if (bk->params) evas_stringshare_del(bk->params);
E_FREE(bk);
}
}
if (bk2)
{
bk2->context = bk->context;
- bk2->key = (char *)evas_stringshare_add(bk->key);
+ bk2->key = evas_stringshare_add(bk->key);
bk2->modifiers = bk->modifiers;
bk2->any_mod = bk->any_mod;
bk2->action = bk->action == NULL ? NULL :
E_Widget_Button_Data *wd_prev;
E_Widget_Button_Data *wd_add;
E_Widget_Button_Data *wd_del;
- E_Config_Binding_Key *bk;
if (cfdata == NULL) return;
static void
_update_ilist_cur_selection_icon(E_Config_Dialog_Data *cfdata)
{
- int sel_indx;
E_Smart_Item *si;
E_Smart_Data *sd;
E_Widget_IList_Data *wd;
static void
_ilist_kb_cb_change(void *data, Evas_Object *obj)
{
- char buf[256];
-
int acn, i;
char *label;
E_Config_Dialog_Data *cfdata;
bk->key = strdup("");
bk->modifiers = E_BINDING_MODIFIER_NONE;
bk->any_mod = 0;
- bk->action = actions_predefined_names[acn].action_cmd == NULL ? strdup("") :
- strdup(actions_predefined_names[acn].action_cmd);
- bk->params = actions_predefined_names[acn].action_params == NULL ? strdup("") :
- strdup(actions_predefined_names[acn].action_params);
+ bk->action = actions_predefined_names[acn].action_cmd == NULL ?
+ evas_stringshare_add("") :
+ evas_stringshare_add(actions_predefined_names[acn].action_cmd);
+ bk->params = actions_predefined_names[acn].action_params == NULL ?
+ evas_stringshare_add("") :
+ evas_stringshare_add(actions_predefined_names[acn].action_params);
cfdata->cur_eckb->bk_list = evas_list_append(cfdata->cur_eckb->bk_list, bk);
}
static void
_keybind_cb_prev_keybind(void *data, void *data2)
{
- char buf[50];
E_Config_Dialog_Data *cfdata;
- E_Widget_Button_Data *wd_next, *wd_prev;
int old_kb_sel;
int old_bk_list_size;
bk->context = E_BINDING_CONTEXT_ANY;
bk->key = strdup("");
bk->modifiers = E_BINDING_MODIFIER_NONE;
- bk->action = actions_predefined_names[cfdata->cur_eckb->acn].action_cmd == NULL ? strdup("") :
- strdup(actions_predefined_names[cfdata->cur_eckb->acn].action_cmd);
- bk->params = actions_predefined_names[cfdata->cur_eckb->acn].action_params == NULL ? strdup("") :
- strdup(actions_predefined_names[cfdata->cur_eckb->acn].action_params);
+ bk->action = actions_predefined_names[cfdata->cur_eckb->acn].action_cmd == NULL ?
+ evas_stringshare_add("") :
+ evas_stringshare_add(actions_predefined_names[cfdata->cur_eckb->acn].action_cmd);
+ bk->params = actions_predefined_names[cfdata->cur_eckb->acn].action_params == NULL ?
+ evas_stringshare_add("") :
+ evas_stringshare_add(actions_predefined_names[cfdata->cur_eckb->acn].action_params);
cfdata->cur_eckb->bk_list = evas_list_append(cfdata->cur_eckb->bk_list, bk);
cfdata->cur_eckb_kb_sel = evas_list_count(cfdata->cur_eckb->bk_list) - 1;
static void
_keybind_cb_del_keybinding(void *data, void *data2)
{
- int i;
E_Config_Dialog_Data *cfdata;
- E_Config_Binding_Key *bk, *bk_del;
- Evas_List *new_bk_list;
cfdata = data;
return -1;
bk->context = cfdata->binding_context;
- if (bk->key) E_FREE(bk->key);
- bk->key = strdup(cfdata->key_bind);
+ if (bk->key) evas_stringshare_del(bk->key);
+ bk->key = evas_stringshare_add(cfdata->key_bind);
bk->modifiers = 0;
if (cfdata->bind_mod.shift)
bk->modifiers |= E_BINDING_MODIFIER_WIN;
bk->any_mod = 0;
- if (bk->action) E_FREE(bk->action);
+ if (bk->action) evas_stringshare_del(bk->action);
bk->action = (cfdata->key_action == NULL || strlen(cfdata->key_action) == 0) ? NULL :
- strdup(cfdata->key_action);
- if (bk->params) E_FREE(bk->params);
+ evas_stringshare_add(cfdata->key_action);
+ if (bk->params) evas_stringshare_del(bk->params);
bk->params = (cfdata->key_params == NULL || strlen(cfdata->key_params) == 0) ? NULL :
- strdup(cfdata->key_params);
+ evas_stringshare_add(cfdata->key_params);
return 0;
}
evas_list_nth(cfdata->cur_eckb->bk_list, i));
}
- if (bk_del->key != NULL)
- E_FREE(bk_del->key);
- if (bk_del->action != NULL)
- E_FREE(bk_del->action);
- if (bk_del->params != NULL)
- E_FREE(bk_del->params);
+ if (bk_del->key) evas_stringshare_del(bk_del->key);
+ if (bk_del->action) evas_stringshare_del(bk_del->action);
+ if (bk_del->params) evas_stringshare_del(bk_del->params);
bk_del->key = bk_del->action = bk_del->params = NULL;
E_FREE(bk_del);
bk_del = evas_list_nth(cfdata->cur_eckb->bk_list, 0);
if (!bk_del) return -1;
bk_del->context = E_BINDING_CONTEXT_NONE;
- if (bk_del->key != NULL)
- E_FREE(bk_del->key);
+ if (bk_del->key) evas_stringshare_del(bk_del->key);
bk_del->key = NULL;
bk_del->modifiers = E_BINDING_MODIFIER_NONE;
bk_del->any_mod = 0;
{
Evas_List *l;
- while (l = cfdata->modules)
+ while ((l = cfdata->modules))
{
CFModule *m;
}
EAPI E_Menu *
-e_int_menus_apps_new(char *dir)
+e_int_menus_apps_new(const char *dir)
{
E_Menu *m;
E_App *a;
Evas_List *l, *borders = NULL;
E_Menu *root;
E_Zone *zone = NULL;
- char *s;
+ const char *s;
e_menu_pre_activate_callback_set(m, NULL, NULL);
root = e_menu_root_get(m);
EAPI E_Menu *e_int_menus_main_new(void);
EAPI E_Menu *e_int_menus_desktops_new(void);
EAPI E_Menu *e_int_menus_clients_new(void);
-EAPI E_Menu *e_int_menus_apps_new(char *dir);
+EAPI E_Menu *e_int_menus_apps_new(const char *dir);
EAPI E_Menu *e_int_menus_favorite_apps_new(void);
EAPI E_Menu *e_int_menus_config_new(void);
EAPI E_Menu *e_int_menus_gadgets_new(void);
}
EAPI void *
-e_ipc_codec_str_enc(char *str, int *size_ret)
+e_ipc_codec_str_enc(const char *str, int *size_ret)
{
E_Ipc_Str dat;
- dat.str = str;
+ dat.str = (char *) str;
return eet_data_descriptor_encode(_e_ipc_str_edd, &dat, size_ret);
}
}
EAPI void *
-e_ipc_codec_2str_enc(char *str1, char *str2, int *size_ret)
+e_ipc_codec_2str_enc(const char *str1, const char *str2, int *size_ret)
{
E_Ipc_2Str dat;
- dat.str1 = str1;
- dat.str2 = str2;
+ dat.str1 = (char *) str1;
+ dat.str2 = (char *) str2;
return eet_data_descriptor_encode(_e_ipc_2str_edd, &dat, size_ret);
}
}
EAPI void *
-e_ipc_codec_str_int_enc(char *str, int val, int *size_ret)
+e_ipc_codec_str_int_enc(const char *str, int val, int *size_ret)
{
E_Ipc_Str_Int dat;
- dat.str = str;
+ dat.str = (char *) str;
dat.val = val;
return eet_data_descriptor_encode(_e_ipc_str_int_edd, &dat, size_ret);
}
}
EAPI void *
-e_ipc_codec_2str_int_enc(char *str1, char *str2, int val, int *size_ret)
+e_ipc_codec_2str_int_enc(const char *str1, const char *str2, int val, int *size_ret)
{
E_Ipc_2Str_Int dat;
- dat.str1 = str1;
- dat.str2 = str2;
+ dat.str1 = (char *) str1;
+ dat.str2 = (char *) str2;
dat.val = val;
return eet_data_descriptor_encode(_e_ipc_2str_int_edd, &dat, size_ret);
}
}
EAPI void *
-e_ipc_codec_4int_2str_enc(int val1, int val2, int val3, int val4, char *str1, char *str2, int *size_ret)
+e_ipc_codec_4int_2str_enc(int val1, int val2, int val3, int val4, const char *str1, const char *str2, int *size_ret)
{
E_Ipc_4Int_2Str dat;
dat.val2 = val2;
dat.val3 = val3;
dat.val4 = val4;
- dat.str1 = str1;
- dat.str2 = str2;
+ dat.str1 = (char *) str1;
+ dat.str2 = (char *) str2;
return eet_data_descriptor_encode(_e_ipc_4int_2str_edd, &dat, size_ret);
}
}
EAPI void *
-e_ipc_codec_5int_2str_enc(int val1, int val2, int val3, int val4, int val5, char *str1, char *str2, int *size_ret)
+e_ipc_codec_5int_2str_enc(int val1, int val2, int val3, int val4, int val5, const char *str1, const char *str2, int *size_ret)
{
E_Ipc_5Int_2Str dat;
dat.val3 = val3;
dat.val4 = val4;
dat.val5 = val5;
- dat.str1 = str1;
- dat.str2 = str2;
+ dat.str1 = (char *) str1;
+ dat.str2 = (char *) str2;
return eet_data_descriptor_encode(_e_ipc_5int_2str_edd, &dat, size_ret);
}
}
EAPI void *
-e_ipc_codec_3int_4str_enc(int val1, int val2, int val3, char *str1, char *str2, char *str3, char *str4, int *size_ret)
+e_ipc_codec_3int_4str_enc(int val1, int val2, int val3, const char *str1, const char *str2, const char *str3, const char *str4, int *size_ret)
{
E_Ipc_3Int_4Str dat;
dat.val1 = val1;
dat.val2 = val2;
dat.val3 = val3;
- dat.str1 = str1;
- dat.str2 = str2;
- dat.str3 = str3;
- dat.str4 = str4;
+ dat.str1 = (char *) str1;
+ dat.str2 = (char *) str2;
+ dat.str3 = (char *) str3;
+ dat.str4 = (char *) str4;
return eet_data_descriptor_encode(_e_ipc_3int_4str_edd, &dat, size_ret);
}
}
EAPI void *
-e_ipc_codec_3int_3str_enc(int val1, int val2, int val3, char *str1, char *str2, char *str3, int *size_ret)
+e_ipc_codec_3int_3str_enc(int val1, int val2, int val3, const char *str1, const char *str2, const char *str3, int *size_ret)
{
E_Ipc_3Int_3Str dat;
dat.val1 = val1;
dat.val2 = val2;
dat.val3 = val3;
- dat.str1 = str1;
- dat.str2 = str2;
- dat.str3 = str3;
+ dat.str1 = (char *) str1;
+ dat.str2 = (char *) str2;
+ dat.str3 = (char *) str3;
return eet_data_descriptor_encode(_e_ipc_3int_3str_edd, &dat, size_ret);
}
}
EAPI void *
-e_ipc_codec_str_4int_enc(char *str1, int val1, int val2, int val3, int val4, int *size_ret)
+e_ipc_codec_str_4int_enc(const char *str1, int val1, int val2, int val3, int val4, int *size_ret)
{
E_Ipc_Str_4Int dat;
- dat.str = str1;
+ dat.str = (char *) str1;
dat.val1 = val1;
dat.val2 = val2;
dat.val3 = val3;
EAPI void *e_ipc_codec_2int_enc(int val1, int val2, int *size_ret);
EAPI int e_ipc_codec_str_dec(char *data, int bytes, char **dest);
-EAPI void *e_ipc_codec_str_enc(char *str, int *size_ret);
+EAPI void *e_ipc_codec_str_enc(const char *str, int *size_ret);
EAPI int e_ipc_codec_str_list_dec(char *data, int bytes, Evas_List **dest);
EAPI void *e_ipc_codec_str_list_enc(Evas_List *list, int *size_ret);
EAPI int e_ipc_codec_2str_dec(char *data, int bytes, E_Ipc_2Str **dest);
-EAPI void *e_ipc_codec_2str_enc(char *str1, char *str2, int *size_ret);
+EAPI void *e_ipc_codec_2str_enc(const char *str1, const char *str2, int *size_ret);
EAPI int e_ipc_codec_2str_list_dec(char *data, int bytes, Evas_List **dest);
EAPI void *e_ipc_codec_2str_list_enc(Evas_List *list, int *size_ret);
EAPI int e_ipc_codec_str_int_dec(char *data, int bytes, E_Ipc_Str_Int **dest);
-EAPI void *e_ipc_codec_str_int_enc(char *str, int val, int *size_ret);
+EAPI void *e_ipc_codec_str_int_enc(const char *str, int val, int *size_ret);
EAPI int e_ipc_codec_str_int_list_dec(char *data, int bytes, Evas_List **dest);
EAPI void *e_ipc_codec_str_int_list_enc(Evas_List *list, int *size_ret);
EAPI int e_ipc_codec_2str_int_dec(char *data, int bytes, E_Ipc_2Str_Int **dest);
-EAPI void *e_ipc_codec_2str_int_enc(char *str1, char *str2, int val, int *size_ret);
+EAPI void *e_ipc_codec_2str_int_enc(const char *str1, const char *str2, int val, int *size_ret);
EAPI int e_ipc_codec_2str_int_list_dec(char *data, int bytes, Evas_List **dest);
EAPI void *e_ipc_codec_2str_int_list_enc(Evas_List *list, int *size_ret);
EAPI int e_ipc_codec_4int_2str_dec(char *data, int bytes, E_Ipc_4Int_2Str **dest);
-EAPI void *e_ipc_codec_4int_2str_enc(int val1, int val2, int val3, int val4, char *str1, char *str2, int *size_ret);
+EAPI void *e_ipc_codec_4int_2str_enc(int val1, int val2, int val3, int val4, const char *str1, const char *str2, int *size_ret);
EAPI int e_ipc_codec_4int_2str_list_dec(char *data, int bytes, Evas_List **dest);
EAPI void *e_ipc_codec_4int_2str_list_enc(Evas_List *list, int *size_ret);
EAPI int e_ipc_codec_5int_2str_dec(char *data, int bytes, E_Ipc_5Int_2Str **dest);
-EAPI void *e_ipc_codec_5int_2str_enc(int val1, int val2, int val3, int val4, int val5, char *str1, char *str2, int *size_ret);
+EAPI void *e_ipc_codec_5int_2str_enc(int val1, int val2, int val3, int val4, int val5, const char *str1, const char *str2, int *size_ret);
EAPI int e_ipc_codec_5int_2str_list_dec(char *data, int bytes, Evas_List **dest);
EAPI void *e_ipc_codec_5int_2str_list_enc(Evas_List *list, int *size_ret);
EAPI int e_ipc_codec_3int_4str_dec(char *data, int bytes, E_Ipc_3Int_4Str **dest);
-EAPI void *e_ipc_codec_3int_4str_enc(int val1, int val2, int val3, char *str1, char *str2, char *str3, char *str4, int *size_ret);
+EAPI void *e_ipc_codec_3int_4str_enc(int val1, int val2, int val3, const char *str1, const char *str2, const char *str3, const char *str4, int *size_ret);
EAPI int e_ipc_codec_3int_4str_list_dec(char *data, int bytes, Evas_List **dest);
EAPI void *e_ipc_codec_3int_4str_list_enc(Evas_List *list, int *size_ret);
EAPI int e_ipc_codec_3int_3str_dec(char *data, int bytes, E_Ipc_3Int_3Str **dest);
-EAPI void *e_ipc_codec_3int_3str_enc(int val1, int val2, int val3, char *str1, char *str2, char *str3, int *size_ret);
+EAPI void *e_ipc_codec_3int_3str_enc(int val1, int val2, int val3, const char *str1, const char *str2, const char *str3, int *size_ret);
EAPI int e_ipc_codec_3int_3str_list_dec(char *data, int bytes, Evas_List **dest);
EAPI void *e_ipc_codec_3int_3str_list_enc(Evas_List *list, int *size_ret);
EAPI int e_ipc_codec_str_4int_dec(char *data, int bytes, E_Ipc_Str_4Int **dest);
-EAPI void *e_ipc_codec_str_4int_enc(char *str1, int val1, int val2, int val3, int val4, int *size_ret);
+EAPI void *e_ipc_codec_str_4int_enc(const char *str1, int val1, int val2, int val3, int val4, int *size_ret);
EAPI int e_ipc_codec_str_4int_list_dec(char *data, int bytes, Evas_List **dest);
EAPI void *e_ipc_codec_str_4int_list_enc(Evas_List *list, int *size_ret);
#endif
} \
break;
-#define LIST_DATA() \
+/*
+ Declare variables used when encoding that needs to first be
+ constructed into a list using the FOR macro. The list to create
+ will be called 'dat' and the list to iterate will be l;
+ */
+#define LIST_ENCODE_INIT() \
Evas_List *dat = NULL, *l; \
void *data; int bytes;
+/*
+ Declare variables used by the encode macro. Is separate to allow
+ operations to be done between declairation and encoding.
+ */
+#define ENCODE_INIT() \
+ void *data; int bytes;
+
#define ENCODE(__dat, __enc) \
data = __enc(__dat, &bytes);
+/*
+ Iterate an evas_list starting with the pointer to __start. l
+ is the pointer to the current position in the list.
+ */
#define FOR(__start) \
for (l = __start; l; l = l->next)
#define GENERIC(HDL) \
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
SEND_STRING_INT_LIST(e_module_list(), E_Module, mod, v, HDL);
- v->str = mod->name;
+ v->str = (char *) mod->name;
v->val = mod->enabled;
END_SEND_STRING_INT_LIST(v, E_IPC_OP_MODULE_LIST_REPLY);
#elif (TYPE == E_REMOTE_IN)
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
GENERIC(HDL);
- LIST_DATA();
+ LIST_ENCODE_INIT();
E_Font_Available *fa;
Evas_List *fa_list;
fa_list = e_font_available_list();
#elif (TYPE == E_WM_IN)
GENERIC(HDL);
- LIST_DATA();
+ LIST_ENCODE_INIT();
E_Font_Fallback *ff;
FOR(e_config->font_fallbacks) { ff = l->data;
dat = evas_list_append(dat, ff->name);
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
SEND_STRING2_INT_LIST(e_font_default_list(), E_Font_Default, efd, v, HDL);
- v->str1 = efd->text_class;
- v->str2 = efd->font;
+ v->str1 = (char *) efd->text_class;
+ v->str2 = (char *) efd->font;
v->val = efd->size;
END_SEND_STRING2_INT_LIST(v, E_IPC_OP_FONT_DEFAULT_LIST_REPLY);
#elif (TYPE == E_REMOTE_IN)
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
GENERIC(HDL);
- LIST_DATA();
+ ENCODE_INIT();
Evas_List *languages;
languages = e_intl_language_list();
ENCODE(languages, e_ipc_codec_str_list_enc);
REQ_STRING(params[0], HDL);
#elif (TYPE == E_WM_IN)
STRING(s, HDL);
- LIST_DATA()
+ LIST_ENCODE_INIT()
Evas_List *dir_list = NULL;
E_PATH_GET(path, s);
if (path)
SEND_INT4_STRING2_LIST(e_config->mouse_bindings, E_Config_Binding_Mouse, emb, v, HDL);
v->val1 = emb->context;
v->val2 = emb->modifiers;
- v->str1 = emb->action;
- v->str2 = emb->params;
+ v->str1 = (char *) emb->action;
+ v->str2 = (char *) emb->params;
v->val3 = emb->button;
v->val4 = emb->any_mod;
END_SEND_INT4_STRING2_LIST(v, E_IPC_OP_BINDING_MOUSE_LIST_REPLY);
v->val1 = ekb->context;
v->val2 = ekb->modifiers;
v->val3 = ekb->any_mod;
- v->str1 = ekb->key;
- v->str2 = ekb->action;
- v->str3 = ekb->params;
+ v->str1 = (char *) ekb->key;
+ v->str2 = (char *) ekb->action;
+ v->str3 = (char *) ekb->params;
END_SEND_INT3_STRING3_LIST(v, E_IPC_OP_BINDING_KEY_LIST_REPLY);
#elif (TYPE == E_REMOTE_IN)
#endif
v->val2 = cfbg->zone;
v->val3 = cfbg->desk_x;
v->val4 = cfbg->desk_y;
- v->str1 = cfbg->file;
+ v->str1 = (char *) cfbg->file;
v->str2 = "";
END_SEND_INT4_STRING2_LIST(v, E_IPC_OP_DESKTOP_BG_LIST_REPLY);
#elif (TYPE == E_REMOTE_IN)
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
SEND_STRING2_LIST(e_config->themes, E_Config_Theme, theme, v, HDL);
- v->str1 = theme->category;
- v->str2 = theme->file;
+ v->str1 = (char *) theme->category;
+ v->str2 = (char *) theme->file;
END_SEND_STRING2_LIST(v, E_IPC_OP_THEME_LIST_REPLY);
#elif (TYPE == E_REMOTE_IN)
#endif
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
GENERIC(HDL);
- LIST_DATA();
+ ENCODE_INIT();
Evas_List *profiles;
profiles = e_config_profile_list();
ENCODE(profiles, e_ipc_codec_str_list_enc);
v->val2 = cfname->zone;
v->val3 = cfname->desk_x;
v->val4 = cfname->desk_y;
- v->str1 = cfname->name;
+ v->str1 = (char *) cfname->name;
v->str2 = "";
END_SEND_INT4_STRING2_LIST(v, E_IPC_OP_DESKTOP_NAME_LIST_REPLY);
#elif (TYPE == E_REMOTE_IN)
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
GENERIC(HDL);
- LIST_DATA();
+ ENCODE_INIT();
Evas_List *iml;
iml = e_intl_input_method_list();
ENCODE(iml, e_ipc_codec_str_list_enc);
/* e_ipc decode request and do action or send reply */
SEND_INT3_STRING4_LIST(e_config->signal_bindings, E_Config_Binding_Signal, emb, v, HDL);
v->val1 = emb->context;
- v->str1 = emb->signal;
- v->str2 = emb->source;
+ v->str1 = (char *) emb->signal;
+ v->str2 = (char *) emb->source;
v->val2 = emb->modifiers;
v->val3 = emb->any_mod;
- v->str3 = emb->action;
- v->str4 = emb->params;
+ v->str3 = (char *) emb->action;
+ v->str4 = (char *) emb->params;
END_SEND_INT3_STRING4_LIST(v, E_IPC_OP_BINDING_SIGNAL_LIST_REPLY);
#endif
#undef HDL
v->val3 = emb->z;
v->val4 = emb->modifiers;
v->val5 = emb->any_mod;
- v->str1 = emb->action;
- v->str2 = emb->params;
+ v->str1 = (char *) emb->action;
+ v->str2 = (char *) emb->params;
END_SEND_INT5_STRING2_LIST(v, E_IPC_OP_BINDING_WHEEL_LIST_REPLY);
#endif
#undef HDL
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
GENERIC(HDL);
- LIST_DATA();
+ ENCODE_INIT();
ENCODE(e_theme_category_list(), e_ipc_codec_str_list_enc);
SEND_DATA(E_IPC_OP_THEME_CATEGORY_LIST_REPLY);
END_GENERIC();
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
GENERIC(HDL);
- LIST_DATA();
+ ENCODE_INIT();
ENCODE(e_theme_transition_list(), e_ipc_codec_str_list_enc);
SEND_DATA(E_IPC_OP_TRANSITION_LIST_REPLY);
END_GENERIC();
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
GENERIC(HDL);
- LIST_DATA();
+ ENCODE_INIT();
ENCODE(e_action_name_list(), e_ipc_codec_str_list_enc);
SEND_DATA(E_IPC_OP_ACTION_LIST_REPLY);
END_GENERIC();
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
GENERIC(HDL);
- LIST_DATA();
+ ENCODE_INIT();
Evas_List *engines;
engines = e_config_engine_list();
ENCODE(engines, e_ipc_codec_str_list_enc);
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
SEND_STRING_INT4_LIST(e_color_class_list(), E_Color_Class, cc, v, HDL);
- v->str = cc->name;
+ v->str = (char *) cc->name;
v->val1 = cc->r;
v->val2 = cc->g;
v->val3 = cc->b;
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
SEND_STRING_INT4_LIST(e_color_class_list(), E_Color_Class, cc, v, HDL);
- v->str = cc->name;
+ v->str = (char *) cc->name;
v->val1 = cc->r2;
v->val2 = cc->g2;
v->val3 = cc->b2;
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
SEND_STRING_INT4_LIST(e_color_class_list(), E_Color_Class, cc, v, HDL);
- v->str = cc->name;
+ v->str = (char *) cc->name;
v->val1 = cc->r3;
v->val2 = cc->g3;
v->val3 = cc->b3;
REQ_NULL(HDL);
#elif (TYPE == E_WM_IN)
GENERIC(HDL);
- LIST_DATA();
+ ENCODE_INIT();
ENCODE(edje_color_class_list(), e_ipc_codec_str_list_enc);
SEND_DATA(E_IPC_OP_COLOR_CLASS_LIST_REPLY);
END_GENERIC();
{
E_Object e_obj_inherit;
- char * category;
+ const char *category;
struct {
char visible : 1;
int frozen;
struct {
- char *title;
- char *icon_file;
+ const char *title;
+ const char *icon_file;
Evas_Object *icon;
} header;
{
E_Object e_obj_inherit;
E_Menu *menu;
- char *icon;
- char *icon_key;
- char *label;
+ const char *icon;
+ const char *icon_key;
+ const char *label;
E_Menu *submenu;
Evas_Object *separator_object;
static void _e_module_control_menu_about(void *data, E_Menu *m, E_Menu_Item *mi);
static void _e_module_control_menu_configuration(void *data, E_Menu *m, E_Menu_Item *mi);
static void _e_module_control_menu_enabled(void *data, E_Menu *m, E_Menu_Item *mi);
-static void _e_module_dialog_disable_show(char *title, char *body, E_Module *m);
+static void _e_module_dialog_disable_show(const char *title, const char *body, E_Module *m);
static void _e_module_cb_dialog_disable(void *data, E_Dialog *dia);
/* local subsystem globals */
}
EAPI E_Module *
-e_module_new(char *name)
+e_module_new(const char *name)
{
E_Module *m;
char buf[4096];
char body[4096], title[1024];
- char *modpath, *s;
+ const char *modpath;
+ char *s;
Evas_List *l;
int in_list = 0;
}
EAPI E_Module *
-e_module_find(char *name)
+e_module_find(const char *name)
{
Evas_List *l;
}
EAPI void
-e_module_dialog_show(char *title, char *body)
+e_module_dialog_show(const char *title, const char *body)
{
E_Dialog *dia;
}
static void
-_e_module_dialog_disable_show(char *title, char *body, E_Module *m)
+_e_module_dialog_disable_show(const char *title, const char *body, E_Module *m)
{
E_Dialog *dia;
char buf[4096];
E_Module_Api *api;
- char *name;
- char *dir;
+ const char *name;
+ const char *dir;
void *handle;
struct {
EAPI int e_module_init(void);
EAPI int e_module_shutdown(void);
-EAPI E_Module *e_module_new(char *name);
+EAPI E_Module *e_module_new(const char *name);
EAPI int e_module_save(E_Module *m);
EAPI const char *e_module_dir_get(E_Module *m);
EAPI int e_module_enable(E_Module *m);
EAPI int e_module_disable(E_Module *m);
EAPI int e_module_enabled_get(E_Module *m);
EAPI int e_module_save_all(void);
-EAPI E_Module *e_module_find(char *name);
+EAPI E_Module *e_module_find(const char *name);
EAPI Evas_List *e_module_list(void);
EAPI E_Menu *e_module_menu_new(void);
-EAPI void e_module_dialog_show(char *title, char *body);
+EAPI void e_module_dialog_show(const char *title, const char *body);
#endif
#endif
struct _E_Msg_Handler
{
- void (*func) (void *data, char *name, char *info, int val, E_Object *obj);
+ void (*func) (void *data, const char *name, const char *info, int val, E_Object *obj);
void *data;
unsigned char delete_me : 1;
};
struct _E_Msg_Event
{
- char *name;
- char *info;
+ const char *name;
+ const char *info;
int val;
E_Object *obj;
};
}
EAPI void
-e_msg_send(char *name, char *info, int val, E_Object *obj)
+e_msg_send(const char *name, const char *info, int val, E_Object *obj)
{
E_Msg_Event *ev;
}
EAPI E_Msg_Handler *
-e_msg_handler_add(void (*func) (void *data, char *name, char *info, int val, E_Object *obj), void *data)
+e_msg_handler_add(void (*func) (void *data, const char *name, const char *info, int val, E_Object *obj), void *data)
{
E_Msg_Handler *emsgh;
EAPI int e_msg_init(void);
EAPI int e_msg_shutdown(void);
-EAPI void e_msg_send(char *name, char *info, int val, E_Object *obj);
-EAPI E_Msg_Handler *e_msg_handler_add(void (*func) (void *data, char *name, char *info, int val, E_Object *obj), void *data);
+EAPI void e_msg_send(const char *name, const char *info, int val, E_Object *obj);
+EAPI E_Msg_Handler *e_msg_handler_add(void (*func) (void *data, const char *name, const char *info, int val, E_Object *obj), void *data);
EAPI void e_msg_handler_del(E_Msg_Handler *emsgh);
#endif
}
}
-EAPI char *
+EAPI const char *
e_path_find(E_Path *ep, const char *file)
{
Evas_List *l;
struct _E_Path_Dir
{
- char * dir;
+ const char * dir;
};
struct _E_Path
EAPI void e_path_user_path_append(E_Path *ep, const char *path);
EAPI void e_path_user_path_prepend(E_Path *ep, const char *path);
EAPI void e_path_user_path_remove(E_Path *ep, const char *path);
-EAPI char *e_path_find(E_Path *ep, const char *file); /* for conveience this doesnt return a malloc'd string. it's a static buffer, so a new call will replace this buffer, but thsi means there is no need to free the return */
+EAPI const char *e_path_find(E_Path *ep, const char *file);
EAPI void e_path_evas_append(E_Path *ep, Evas *evas);
EAPI Evas_List *e_path_dir_list_get(E_Path *ep);
EAPI void e_path_dir_list_free(Evas_List *dir_list);
struct _E_Pointer_Stack
{
void *obj;
- char *type;
+ const char *type;
unsigned char e_cursor : 1;
};
}
else
{
- char *type;
+ const char *type;
ecore_x_cursor_size_set(e_config->cursor_size * 3 / 4);
type = p->type;
Ecore_X_Window win;
int w, h;
- char *type;
+ const char *type;
void *obj;
Evas_List *stack;
E_Remember *rem;
int required_matches;
int matches;
- char *title = "";
+ const char *title = "";
rem = l->data;
matches = 0;
int match;
unsigned char apply_first_only;
int used_count;
- char *name, *class, *title, *role;
+ const char *name;
+ const char *class;
+ const char *title;
+ const char *role;
int type;
unsigned char transient;
int apply;
unsigned char lock_focus_out;
unsigned char lock_life;
- char *border;
+ const char *border;
unsigned char sticky;
}
EAPI E_Shelf *
-e_shelf_zone_new(E_Zone *zone, char *name, char *style, int popup, int layer)
+e_shelf_zone_new(E_Zone *zone, const char *name, const char *style, int popup, int layer)
{
E_Shelf *es;
char buf[1024];
Ecore_Evas *ee;
Evas *evas;
E_Gadcon *gadcon;
- char *name;
- char *style;
+ const char *name;
+ const char *style;
E_Config_Shelf *cfg;
};
EAPI int e_shelf_init(void);
EAPI int e_shelf_shutdown(void);
EAPI void e_shelf_config_init(void);
-EAPI E_Shelf *e_shelf_zone_new(E_Zone *zone, char *name, char *style, int popup, int layer);
+EAPI E_Shelf *e_shelf_zone_new(E_Zone *zone, const char *name, const char *style, int popup, int layer);
EAPI void e_shelf_populate(E_Shelf *es);
EAPI void e_shelf_show(E_Shelf *es);
EAPI void e_shelf_hide(E_Shelf *es);
Evas_Object *edje_obj;
double val, val_min, val_max, step_size;
int reversed, step_count, horizontal;
- char *format;
+ const char *format;
Evas_Coord minw, minh;
Ecore_Timer *set_timer;
};
struct _E_Theme_Result
{
- char *file;
- char *cache;
+ const char *file;
+ const char *cache;
};
static Evas_Bool _e_theme_mappings_free_cb(Evas_Hash *hash, const char *key, void *data, void *fdata);
}
EAPI int
-e_theme_edje_object_set(Evas_Object *o, char *category, char *group)
+e_theme_edje_object_set(Evas_Object *o, const char *category, const char *group)
{
E_Theme_Result *res;
char buf[256];
res = evas_hash_find(mappings, category);
if (res)
{
- char *str;
+ const char *str;
/* if found check cached path */
str = res->cache;
}
EAPI const char *
-e_theme_edje_file_get(char *category, char *group)
+e_theme_edje_file_get(const char *category, const char *group)
{
E_Theme_Result *res;
char buf[4096];
res = evas_hash_find(mappings, category);
if (res)
{
- char *str;
+ const char *str;
/* if found check cached path */
str = res->cache;
}
EAPI void
-e_theme_file_set(char *category, char *file)
+e_theme_file_set(const char *category, const char *file)
{
E_Theme_Result *res;
res = evas_hash_find(mappings, category);
if (res)
{
- char *str;
+ const char *str;
/* if found check cached path */
str = res->cache;
EAPI int e_theme_init(void);
EAPI int e_theme_shutdown(void);
-EAPI int e_theme_edje_object_set(Evas_Object *o, char *category, char *group);
-EAPI const char *e_theme_edje_file_get(char *category, char *group);
-EAPI void e_theme_file_set(char *category, char *file);
+EAPI int e_theme_edje_object_set(Evas_Object *o, const char *category, const char *group);
+EAPI const char *e_theme_edje_file_get(const char *category, const char *group);
+EAPI void e_theme_file_set(const char *category, const char *file);
EAPI int e_theme_config_set(const char *category, const char *file);
EAPI E_Config_Theme *e_theme_config_get(const char *category);
eet_file = _e_thumb_file_id(file);
if(!eet_file)
{
- eet_close(ef);
if(w) *w = -1;
if(h) *h = -1;
return;
}
EAPI int
-e_util_head_exec(int head, char *cmd)
+e_util_head_exec(int head, const char *cmd)
{
char *penv_display;
char *p1, *p2;
}
EAPI int
-e_util_strcmp(char *s1, char *s2)
+e_util_strcmp(const char *s1, const char *s2)
{
if ((s1) && (s2))
return strcmp(s1, s2);
}
EAPI int
-e_util_both_str_empty(char *s1, char *s2)
+e_util_both_str_empty(const char *s1, const char *s2)
{
int empty = 0;
}
EAPI int
-e_util_edje_icon_list_set(Evas_Object *obj, char *list)
+e_util_edje_icon_list_set(Evas_Object *obj, const char *list)
{
char *buf;
- char *p, *c;
+ const char *p;
+ const char *c;
if ((!list) || (!list[0])) return 0;
buf = alloca(strlen(list) + 1);
}
EAPI int
-e_util_menu_item_edje_icon_list_set(E_Menu_Item *mi, char *list)
+e_util_menu_item_edje_icon_list_set(E_Menu_Item *mi, const char *list)
{
char *buf;
- char *p, *c;
+ const char *p;
+ char *c;
if ((!list) || (!list[0])) return 0;
buf = alloca(strlen(list) + 1);
}
EAPI int
-e_util_edje_icon_set(Evas_Object *obj, char *name)
+e_util_edje_icon_set(Evas_Object *obj, const char *name)
{
char *file;
char buf[4096];
}
EAPI int
-e_util_menu_item_edje_icon_set(E_Menu_Item *mi, char *name)
+e_util_menu_item_edje_icon_set(E_Menu_Item *mi, const char *name)
{
char *file;
char buf[4096];
}
EAPI int
-e_util_edje_collection_exists(char *file, char *coll)
+e_util_edje_collection_exists(const char *file, const char *coll)
{
Evas_List *clist, *l;
}
EAPI void
-e_util_dialog_internal(char *title, char *txt)
+e_util_dialog_internal(const char *title, const char *txt)
{
E_Dialog *dia;
EAPI int e_util_glob_case_match(const char *str, const char *glob);
EAPI E_Container *e_util_container_number_get(int num);
EAPI E_Zone *e_util_container_zone_number_get(int con_num, int zone_num);
-EAPI int e_util_head_exec(int head, char *cmd);
-EAPI int e_util_strcmp(char *s1, char *s2);
-EAPI int e_util_both_str_empty(char *s1, char *s2);
+EAPI int e_util_head_exec(int head, const char *cmd);
+EAPI int e_util_strcmp(const char *s1, const char *s2);
+EAPI int e_util_both_str_empty(const char *s1, const char *s2);
EAPI int e_util_immortal_check(void);
-EAPI int e_util_edje_icon_list_set(Evas_Object *obj, char *list);
-EAPI int e_util_menu_item_edje_icon_list_set(E_Menu_Item *mi, char *list);
-EAPI int e_util_edje_icon_set(Evas_Object *obj, char *name);
-EAPI int e_util_menu_item_edje_icon_set(E_Menu_Item *mi, char *name);
+EAPI int e_util_edje_icon_list_set(Evas_Object *obj, const char *list);
+EAPI int e_util_menu_item_edje_icon_list_set(E_Menu_Item *mi, const char *list);
+EAPI int e_util_edje_icon_set(Evas_Object *obj, const char *name);
+EAPI int e_util_menu_item_edje_icon_set(E_Menu_Item *mi, const char *name);
EAPI E_Container *e_util_container_window_find(Ecore_X_Window win);
EAPI E_Border *e_util_desk_border_above(E_Border *bd);
EAPI E_Border *e_util_desk_border_below(E_Border *bd);
-EAPI int e_util_edje_collection_exists(char *file, char *coll);
-EAPI void e_util_dialog_internal(char *title, char *txt);
+EAPI int e_util_edje_collection_exists(const char *file, const char *coll);
+EAPI void e_util_dialog_internal(const char *title, const char *txt);
#endif
#endif
/* externally accessible functions */
EAPI Evas_Object *
-e_widget_button_add(Evas *evas, char *label, char *icon, void (*func) (void *data, void *data2), void *data, void *data2)
+e_widget_button_add(Evas *evas, const char *label, const char *icon, void (*func) (void *data, void *data2), void *data, void *data2)
{
Evas_Object *obj, *o;
E_Widget_Data *wd;
#ifndef E_WIDGET_BUTTON_H
#define E_WIDGET_BUTTON_H
-EAPI Evas_Object *e_widget_button_add(Evas *evas, char *label, char *icon, void (*func) (void *data, void *data2), void *data, void *data2);
+EAPI Evas_Object *e_widget_button_add(Evas *evas, const char *label, const char *icon, void (*func) (void *data, void *data2), void *data, void *data2);
#endif
#endif
EAPI void
e_widget_textblock_plain_set(Evas_Object *obj, const char *text)
{
- char *markup, *p, *d;
+ char *markup;
+ char *d;
+ const char *p;
int mlen;
if (!text)
}
EAPI void
-e_win_name_class_set(E_Win *win, char *name, char *class)
+e_win_name_class_set(E_Win *win, const char *name, const char *class)
{
E_OBJECT_CHECK(win);
E_OBJECT_TYPE_CHECK(win, E_WIN_TYPE);
}
EAPI void
-e_win_title_set(E_Win *win, char *title)
+e_win_title_set(E_Win *win, const char *title)
{
E_OBJECT_CHECK(win);
E_OBJECT_TYPE_CHECK(win, E_WIN_TYPE);
EAPI void e_win_size_max_set (E_Win *win, int w, int h);
EAPI void e_win_size_base_set (E_Win *win, int w, int h);
EAPI void e_win_step_set (E_Win *win, int x, int y);
-EAPI void e_win_name_class_set (E_Win *win, char *name, char *class);
-EAPI void e_win_title_set (E_Win *win, char *title);
+EAPI void e_win_name_class_set (E_Win *win, const char *name, const char *class);
+EAPI void e_win_title_set (E_Win *win, const char *title);
EAPI void e_win_centered_set (E_Win *win, int centered);
EAPI void e_win_dialog_set (E_Win *win, int dialog);
E_Object e_obj_inherit;
int x, y, w, h;
- char *name;
+ const char *name;
/* num matches the id of the xinerama screen
* this zone belongs to. */
unsigned int num;