enlightenment: Make E build again with EFL from git

sed -i 's/EAPI/E_API/g'

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-05-07 15:13:10 -04:00
parent 93971bb6fc
commit 0a94e8ba71
403 changed files with 4057 additions and 3950 deletions

View File

@ -131,14 +131,14 @@ void *alloca (size_t);
# include <uuid.h>
# endif
# ifdef EAPI
# undef EAPI
# ifdef E_API
# undef E_API
# endif
# ifdef WIN32
# ifdef BUILDING_DLL
# define EAPI __declspec(dllexport)
# define E_API __declspec(dllexport)
# else
# define EAPI __declspec(dllimport)
# define E_API __declspec(dllimport)
# endif
# else
# ifdef __GNUC__
@ -147,12 +147,12 @@ void *alloca (size_t);
# if 0
# pragma GCC visibility push(hidden)
# endif
# define EAPI __attribute__ ((visibility("default")))
# define E_API __attribute__ ((visibility("default")))
# else
# define EAPI
# define E_API
# endif
# else
# define EAPI
# define E_API
# endif
# endif
@ -296,30 +296,30 @@ typedef struct _E_Rect E_Rect;
# undef E_TYPEDEFS
# include "e_includes.h"
EAPI double e_main_ts(const char *str);
E_API double e_main_ts(const char *str);
struct _E_Rect
{
int x, y, w, h;
};
extern EAPI E_Path *path_data;
extern EAPI E_Path *path_images;
extern EAPI E_Path *path_fonts;
extern EAPI E_Path *path_themes;
extern EAPI E_Path *path_icons;
extern EAPI E_Path *path_modules;
extern EAPI E_Path *path_backgrounds;
extern EAPI E_Path *path_messages;
extern EAPI Eina_Bool good;
extern EAPI Eina_Bool evil;
extern EAPI Eina_Bool starting;
extern EAPI Eina_Bool stopping;
extern EAPI Eina_Bool restart;
extern EAPI Eina_Bool e_nopause;
extern E_API E_Path *path_data;
extern E_API E_Path *path_images;
extern E_API E_Path *path_fonts;
extern E_API E_Path *path_themes;
extern E_API E_Path *path_icons;
extern E_API E_Path *path_modules;
extern E_API E_Path *path_backgrounds;
extern E_API E_Path *path_messages;
extern E_API Eina_Bool good;
extern E_API Eina_Bool evil;
extern E_API Eina_Bool starting;
extern E_API Eina_Bool stopping;
extern E_API Eina_Bool restart;
extern E_API Eina_Bool e_nopause;
extern EAPI Eina_Bool e_precache_end;
extern EAPI Eina_Bool x_fatal;
extern E_API Eina_Bool e_precache_end;
extern E_API Eina_Bool x_fatal;
extern EINTERN const char *e_first_frame;
extern EINTERN double e_first_frame_start_time;

View File

@ -6,7 +6,7 @@
/* externally accessible functions */
EAPI E_About *
E_API E_About *
e_about_new(void)
{
E_Obj_Dialog *od;
@ -110,7 +110,7 @@ e_about_new(void)
return (E_About *)od;
}
EAPI void
E_API void
e_about_show(E_About *about)
{
e_obj_dialog_show((E_Obj_Dialog *)about);

View File

@ -6,8 +6,8 @@ typedef struct _E_Obj_Dialog E_About;
#ifndef E_ABOUT_H
#define E_ABOUT_H
EAPI E_About *e_about_new (void);
EAPI void e_about_show (E_About *about);
E_API E_About *e_about_new (void);
E_API void e_about_show (E_About *about);
#endif
#endif

View File

@ -123,7 +123,7 @@ static E_ACPI_Device_Multiplexed _devices_multiplexed[] =
};
/* public variables */
EAPI int E_EVENT_ACPI = 0;
E_API int E_EVENT_ACPI = 0;
/* public functions */
EINTERN int
@ -200,13 +200,13 @@ e_acpi_lid_is_closed(void)
return lid_is_closed;
}
EAPI void
E_API void
e_acpi_events_freeze(void)
{
_e_acpi_events_frozen++;
}
EAPI void
E_API void
e_acpi_events_thaw(void)
{
_e_acpi_events_frozen--;

View File

@ -73,10 +73,10 @@ EINTERN int e_acpi_shutdown(void);
EINTERN E_Acpi_Lid_Status e_acpi_lid_status_get(void);
EINTERN Eina_Bool e_acpi_lid_is_closed(void);
EAPI void e_acpi_events_freeze(void);
EAPI void e_acpi_events_thaw(void);
E_API void e_acpi_events_freeze(void);
E_API void e_acpi_events_thaw(void);
extern EAPI int E_EVENT_ACPI;
extern E_API int E_EVENT_ACPI;
# endif
#endif

View File

@ -3484,13 +3484,13 @@ e_actions_shutdown(void)
return 1;
}
EAPI Eina_List *
E_API Eina_List *
e_action_name_list(void)
{
return action_names;
}
EAPI E_Action *
E_API E_Action *
e_action_add(const char *name)
{
E_Action *act;
@ -3508,7 +3508,7 @@ e_action_add(const char *name)
return act;
}
EAPI void
E_API void
e_action_del(const char *name)
{
E_Action *act;
@ -3517,7 +3517,7 @@ e_action_del(const char *name)
if (act) _e_action_free(act);
}
EAPI E_Action *
E_API E_Action *
e_action_find(const char *name)
{
E_Action *act;
@ -3526,7 +3526,7 @@ e_action_find(const char *name)
return act;
}
EAPI const char *
E_API const char *
e_action_predef_label_get(const char *action, const char *params)
{
E_Action_Group *actg = NULL;
@ -3552,7 +3552,7 @@ e_action_predef_label_get(const char *action, const char *params)
return NULL;
}
EAPI void
E_API void
e_action_predef_name_set(const char *act_grp, const char *act_name, const char *act_cmd, const char *act_params, const char *param_example, int editable)
{
E_Action_Group *actg = NULL;
@ -3598,7 +3598,7 @@ e_action_predef_name_set(const char *act_grp, const char *act_name, const char *
actg->acts = eina_list_append(actg->acts, actd);
}
EAPI void
E_API void
e_action_predef_name_del(const char *act_grp, const char *act_name)
{
E_Action_Group *actg = NULL;
@ -3637,7 +3637,7 @@ e_action_predef_name_del(const char *act_grp, const char *act_name)
}
}
EAPI void
E_API void
e_action_predef_name_all_del(void)
{
E_Action_Group *actg = NULL;
@ -3660,7 +3660,7 @@ e_action_predef_name_all_del(void)
action_groups = NULL;
}
EAPI Eina_List *
E_API Eina_List *
e_action_groups_get(void)
{
return action_groups;

View File

@ -48,17 +48,17 @@ struct _E_Action_Group
EINTERN int e_actions_init(void);
EINTERN int e_actions_shutdown(void);
EAPI Eina_List *e_action_name_list(void);
EAPI E_Action *e_action_add(const char *name);
E_API Eina_List *e_action_name_list(void);
E_API E_Action *e_action_add(const char *name);
/* e_action_del allows, for example, modules to define their own actions dynamically. */
EAPI void e_action_del(const char *name);
EAPI E_Action *e_action_find(const char *name);
E_API void e_action_del(const char *name);
E_API E_Action *e_action_find(const char *name);
EAPI const char *e_action_predef_label_get(const char *action, const char *params);
EAPI void e_action_predef_name_set(const char *act_grp, const char *act_name, const char *act_cmd, const char *act_params, const char *param_example, int editable);
EAPI void e_action_predef_name_del(const char *act_grp, const char *act_name);
EAPI void e_action_predef_name_all_del(void);
EAPI Eina_List *e_action_groups_get(void);
E_API const char *e_action_predef_label_get(const char *action, const char *params);
E_API void e_action_predef_name_set(const char *act_grp, const char *act_name, const char *act_cmd, const char *act_params, const char *param_example, int editable);
E_API void e_action_predef_name_del(const char *act_grp, const char *act_name);
E_API void e_action_predef_name_all_del(void);
E_API Eina_List *e_action_groups_get(void);
#endif
#endif

View File

@ -2,7 +2,7 @@
#include <sys/wait.h>
/* public variables */
EAPI unsigned long _e_alert_composite_win = 0;
E_API unsigned long _e_alert_composite_win = 0;
EINTERN int
e_alert_init(void)
@ -16,7 +16,7 @@ e_alert_shutdown(void)
return 1;
}
EAPI void
E_API void
e_alert_composite_win(Ecore_X_Window root, Ecore_X_Window comp)
{
#ifndef HAVE_WAYLAND_ONLY
@ -34,7 +34,7 @@ e_alert_composite_win(Ecore_X_Window root, Ecore_X_Window comp)
#endif
}
EAPI void
E_API void
e_alert_show(void)
{
if (!e_nopause)

View File

@ -13,7 +13,7 @@ typedef enum _E_Alert_Op_Type
EINTERN int e_alert_init(void);
EINTERN int e_alert_shutdown(void);
EAPI void e_alert_show(void);
E_API void e_alert_show(void);
#endif
#endif

View File

@ -2,17 +2,17 @@
/* Atoms */
#ifndef HAVE_WAYLAND_ONLY
EAPI Ecore_X_Atom E_ATOM_MANAGED = 0;
EAPI Ecore_X_Atom E_ATOM_ZONE = 0;
EAPI Ecore_X_Atom E_ATOM_DESK = 0;
EAPI Ecore_X_Atom E_ATOM_MAPPED = 0;
EAPI Ecore_X_Atom E_ATOM_SHADE_DIRECTION = 0;
EAPI Ecore_X_Atom E_ATOM_HIDDEN = 0;
EAPI Ecore_X_Atom E_ATOM_BORDER_SIZE = 0;
EAPI Ecore_X_Atom E_ATOM_WINDOW_STATE = 0;
EAPI Ecore_X_Atom E_ATOM_WINDOW_STATE_CENTERED = 0;
EAPI Ecore_X_Atom E_ATOM_DESKTOP_FILE = 0;
EAPI Ecore_X_Atom E_ATOM_ZONE_GEOMETRY = 0;
E_API Ecore_X_Atom E_ATOM_MANAGED = 0;
E_API Ecore_X_Atom E_ATOM_ZONE = 0;
E_API Ecore_X_Atom E_ATOM_DESK = 0;
E_API Ecore_X_Atom E_ATOM_MAPPED = 0;
E_API Ecore_X_Atom E_ATOM_SHADE_DIRECTION = 0;
E_API Ecore_X_Atom E_ATOM_HIDDEN = 0;
E_API Ecore_X_Atom E_ATOM_BORDER_SIZE = 0;
E_API Ecore_X_Atom E_ATOM_WINDOW_STATE = 0;
E_API Ecore_X_Atom E_ATOM_WINDOW_STATE_CENTERED = 0;
E_API Ecore_X_Atom E_ATOM_DESKTOP_FILE = 0;
E_API Ecore_X_Atom E_ATOM_ZONE_GEOMETRY = 0;
#endif
/* externally accessible functions */

View File

@ -4,26 +4,26 @@
#define E_ATOMS_H
/* an "overall" atom to see that we recognise the window */
extern EAPI Ecore_X_Atom E_ATOM_MANAGED;
extern E_API Ecore_X_Atom E_ATOM_MANAGED;
/* basic window properties */
extern EAPI Ecore_X_Atom E_ATOM_ZONE;
extern EAPI Ecore_X_Atom E_ATOM_DESK;
extern EAPI Ecore_X_Atom E_ATOM_MAPPED;
extern EAPI Ecore_X_Atom E_ATOM_SHADE_DIRECTION;
extern EAPI Ecore_X_Atom E_ATOM_HIDDEN;
extern EAPI Ecore_X_Atom E_ATOM_BORDER_SIZE;
extern EAPI Ecore_X_Atom E_ATOM_DESKTOP_FILE;
extern E_API Ecore_X_Atom E_ATOM_ZONE;
extern E_API Ecore_X_Atom E_ATOM_DESK;
extern E_API Ecore_X_Atom E_ATOM_MAPPED;
extern E_API Ecore_X_Atom E_ATOM_SHADE_DIRECTION;
extern E_API Ecore_X_Atom E_ATOM_HIDDEN;
extern E_API Ecore_X_Atom E_ATOM_BORDER_SIZE;
extern E_API Ecore_X_Atom E_ATOM_DESKTOP_FILE;
/* extra e window states */
/* if we add more states, we need to fix
* * e_hints_window_e_state_get()
* * e_hints_window_e_state_set()
* * _e_win_state_update() + e_win
*/
extern EAPI Ecore_X_Atom E_ATOM_WINDOW_STATE;
extern EAPI Ecore_X_Atom E_ATOM_WINDOW_STATE_CENTERED;
extern E_API Ecore_X_Atom E_ATOM_WINDOW_STATE;
extern E_API Ecore_X_Atom E_ATOM_WINDOW_STATE_CENTERED;
extern EAPI Ecore_X_Atom E_ATOM_ZONE_GEOMETRY;
extern E_API Ecore_X_Atom E_ATOM_ZONE_GEOMETRY;
EINTERN int e_atoms_init(void);
EINTERN int e_atoms_shutdown(void);

View File

@ -130,7 +130,7 @@ _auth_pam_init(E_Auth *da)
}
#endif // HAVE_PAM && !__FreeBSD__
EAPI int
E_API int
#if defined(__FreeBSD__)
e_auth_begin(char *passwd)
{
@ -225,7 +225,7 @@ e_auth_begin(char *passwd EINA_UNUSED)
}
#endif
EAPI char *
E_API char *
e_auth_hostname_get(void)
{
return strdup("localhost");

View File

@ -1,8 +1,8 @@
#ifndef E_AUTH_H
#define E_AUTH_H
EAPI int e_auth_begin(char *passwd);
EAPI char *e_auth_hostname_get(void);
E_API int e_auth_begin(char *passwd);
E_API char *e_auth_hostname_get(void);
static inline int
e_auth_hash_djb2(const char *key, int len)

View File

@ -50,7 +50,7 @@ static int bl_mib[CTL_MAXNAME];
static int bl_mib_len = -1;
#endif
EAPI int E_EVENT_BACKLIGHT_CHANGE = -1;
E_API int E_EVENT_BACKLIGHT_CHANGE = -1;
EINTERN int
e_backlight_init(void)
@ -101,14 +101,14 @@ e_backlight_shutdown(void)
return 1;
}
EAPI Eina_Bool
E_API Eina_Bool
e_backlight_exists(void)
{
if (sysmode == MODE_NONE) return EINA_FALSE;
return EINA_TRUE;
}
EAPI void
E_API void
e_backlight_update(void)
{
if (bl_avail == EINA_FALSE) return;
@ -116,7 +116,7 @@ e_backlight_update(void)
_e_backlight_update();
}
EAPI void
E_API void
e_backlight_level_set(E_Zone *zone, double val, double tim)
{
double bl_now;
@ -154,14 +154,14 @@ e_backlight_level_set(E_Zone *zone, double val, double tim)
bl_anim_toval = val;
}
EAPI double
E_API double
e_backlight_level_get(E_Zone *zone EINA_UNUSED)
{
// zone == NULL == everything
return e_bl_val;
}
EAPI void
E_API void
e_backlight_mode_set(E_Zone *zone, E_Backlight_Mode mode)
{
E_Backlight_Mode pmode;
@ -189,14 +189,14 @@ e_backlight_mode_set(E_Zone *zone, E_Backlight_Mode mode)
e_backlight_level_set(zone, 1.0, -1.0);
}
EAPI E_Backlight_Mode
E_API E_Backlight_Mode
e_backlight_mode_get(E_Zone *zone EINA_UNUSED)
{
// zone == NULL == everything
return e_config->backlight.mode;
}
EAPI const Eina_List *
E_API const Eina_List *
e_backlight_devices_get(void)
{
return bl_devs;

View File

@ -18,7 +18,7 @@ typedef enum _E_Backlight_Mode
#ifndef E_BACKLIGHT_H
#define E_BACKLIGHT_H
extern EAPI int E_EVENT_BACKLIGHT_CHANGE;
extern E_API int E_EVENT_BACKLIGHT_CHANGE;
//struct _E_Screen
//{
@ -28,13 +28,13 @@ extern EAPI int E_EVENT_BACKLIGHT_CHANGE;
EINTERN int e_backlight_init(void);
EINTERN int e_backlight_shutdown(void);
EAPI Eina_Bool e_backlight_exists(void);
EAPI void e_backlight_update(void);
EAPI void e_backlight_level_set(E_Zone *zone, double val, double tim);
EAPI double e_backlight_level_get(E_Zone *zone);
EAPI void e_backlight_mode_set(E_Zone *zone, E_Backlight_Mode mode);
EAPI E_Backlight_Mode e_backlight_mode_get(E_Zone *zone);
EAPI const Eina_List *e_backlight_devices_get(void);
E_API Eina_Bool e_backlight_exists(void);
E_API void e_backlight_update(void);
E_API void e_backlight_level_set(E_Zone *zone, double val, double tim);
E_API double e_backlight_level_get(E_Zone *zone);
E_API void e_backlight_mode_set(E_Zone *zone, E_Backlight_Mode mode);
E_API E_Backlight_Mode e_backlight_mode_get(E_Zone *zone);
E_API const Eina_List *e_backlight_devices_get(void);
#endif
#endif

View File

@ -8,7 +8,7 @@ static int e_bg_handler_test(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUS
static void _e_bg_handler_image_imported(const char *image_path, void *data);
/* local subsystem globals */
EAPI int E_EVENT_BG_UPDATE = 0;
E_API int E_EVENT_BG_UPDATE = 0;
static E_Fm2_Mime_Handler *bg_hdl = NULL;
/* externally accessible functions */
@ -75,7 +75,7 @@ e_bg_shutdown(void)
* Use -1 as a wild card for each parameter.
* The most specific match will be returned
*/
EAPI const E_Config_Desktop_Background *
E_API const E_Config_Desktop_Background *
e_bg_config_get(int zone_num, int desk_x, int desk_y)
{
Eina_List *l, *entries;
@ -140,7 +140,7 @@ e_bg_config_get(int zone_num, int desk_x, int desk_y)
return bg;
}
EAPI Eina_Stringshare *
E_API Eina_Stringshare *
e_bg_file_get(int zone_num, int desk_x, int desk_y)
{
const E_Config_Desktop_Background *cfbg;
@ -188,7 +188,7 @@ e_bg_file_get(int zone_num, int desk_x, int desk_y)
return bgfile;
}
EAPI void
E_API void
e_bg_zone_update(E_Zone *zone, E_Bg_Transition transition)
{
Evas_Object *o;
@ -289,7 +289,7 @@ end:
eina_stringshare_del(bgfile);
}
EAPI void
E_API void
e_bg_default_set(const char *file)
{
E_Event_Bg_Update *ev;
@ -325,7 +325,7 @@ e_bg_default_set(const char *file)
ecore_event_add(E_EVENT_BG_UPDATE, ev, _e_bg_event_bg_update_free, NULL);
}
EAPI void
E_API void
e_bg_add(int zone, int desk_x, int desk_y, const char *file)
{
const Eina_List *l;
@ -364,7 +364,7 @@ e_bg_add(int zone, int desk_x, int desk_y, const char *file)
ecore_event_add(E_EVENT_BG_UPDATE, ev, _e_bg_event_bg_update_free, NULL);
}
EAPI void
E_API void
e_bg_del(int zone, int desk_x, int desk_y)
{
Eina_List *l;
@ -391,7 +391,7 @@ e_bg_del(int zone, int desk_x, int desk_y)
ecore_event_add(E_EVENT_BG_UPDATE, ev, _e_bg_event_bg_update_free, NULL);
}
EAPI void
E_API void
e_bg_update(void)
{
const Eina_List *l;

View File

@ -15,7 +15,7 @@ typedef struct _E_Bg_Image_Import_Handle E_Bg_Image_Import_Handle;
#ifndef E_BG_H
#define E_BG_H
extern EAPI int E_EVENT_BG_UPDATE;
extern E_API int E_EVENT_BG_UPDATE;
struct _E_Event_Bg_Update
{
@ -27,16 +27,16 @@ struct _E_Event_Bg_Update
EINTERN int e_bg_init(void);
EINTERN int e_bg_shutdown(void);
EAPI const E_Config_Desktop_Background *e_bg_config_get(int zone_num, int desk_x, int desk_y);
EAPI Eina_Stringshare *e_bg_file_get(int zone_num, int desk_x, int desk_y);
EAPI void e_bg_zone_update(E_Zone *zone, E_Bg_Transition transition);
EAPI void e_bg_add(int zone, int desk_x, int desk_y, const char *file);
EAPI void e_bg_del(int zone, int desk_x, int desk_y);
EAPI void e_bg_default_set(const char *file);
EAPI void e_bg_update(void);
E_API const E_Config_Desktop_Background *e_bg_config_get(int zone_num, int desk_x, int desk_y);
E_API Eina_Stringshare *e_bg_file_get(int zone_num, int desk_x, int desk_y);
E_API void e_bg_zone_update(E_Zone *zone, E_Bg_Transition transition);
E_API void e_bg_add(int zone, int desk_x, int desk_y, const char *file);
E_API void e_bg_del(int zone, int desk_x, int desk_y);
E_API void e_bg_default_set(const char *file);
E_API void e_bg_update(void);
EAPI E_Bg_Image_Import_Handle *e_bg_image_import_new(const char *image_file, void (*cb)(void *data, const char *edje_file), const void *data);
EAPI void e_bg_image_import_cancel(E_Bg_Image_Import_Handle *handle);
E_API E_Bg_Image_Import_Handle *e_bg_image_import_new(const char *image_file, void (*cb)(void *data, const char *edje_file), const void *data);
E_API void e_bg_image_import_cancel(E_Bg_Image_Import_Handle *handle);
#endif
#endif

View File

@ -100,7 +100,7 @@ e_bindings_shutdown(void)
return 1;
}
EAPI int
E_API int
e_bindings_modifiers_to_ecore_convert(E_Binding_Modifier modifiers)
{
int mod = 0;
@ -116,7 +116,7 @@ e_bindings_modifiers_to_ecore_convert(E_Binding_Modifier modifiers)
return mod;
}
EAPI void
E_API void
e_bindings_ecore_event_mouse_wheel_convert(const Ecore_Event_Mouse_Wheel *ev, E_Binding_Event_Wheel *event)
{
memset(event, 0, sizeof(E_Binding_Event_Wheel));
@ -128,7 +128,7 @@ e_bindings_ecore_event_mouse_wheel_convert(const Ecore_Event_Mouse_Wheel *ev, E_
event->modifiers = _e_bindings_modifiers(ev->modifiers);
}
EAPI void
E_API void
e_bindings_ecore_event_mouse_button_convert(const Ecore_Event_Mouse_Button *ev, E_Binding_Event_Mouse_Button *event)
{
memset(event, 0, sizeof(E_Binding_Event_Mouse_Button));
@ -142,7 +142,7 @@ e_bindings_ecore_event_mouse_button_convert(const Ecore_Event_Mouse_Button *ev,
event->triple_click = !!ev->triple_click;
}
EAPI void
E_API void
e_bindings_evas_event_mouse_wheel_convert(const Evas_Event_Mouse_Wheel *ev, E_Binding_Event_Wheel *event)
{
memset(event, 0, sizeof(E_Binding_Event_Wheel));
@ -177,7 +177,7 @@ e_bindings_evas_event_mouse_wheel_convert(const Evas_Event_Mouse_Wheel *ev, E_Bi
*/
}
EAPI int
E_API int
e_bindings_evas_modifiers_convert(Evas_Modifier *modifiers)
{
int mod = 0;
@ -191,7 +191,7 @@ e_bindings_evas_modifiers_convert(Evas_Modifier *modifiers)
return mod;
}
EAPI void
E_API void
e_bindings_evas_event_mouse_button_convert(const Evas_Event_Mouse_Down *ev, E_Binding_Event_Mouse_Button *event)
{
memset(event, 0, sizeof(E_Binding_Event_Mouse_Button));
@ -226,7 +226,7 @@ e_bindings_evas_event_mouse_button_convert(const Evas_Event_Mouse_Down *ev, E_Bi
*/
}
EAPI void
E_API void
e_bindings_signal_reset(void)
{
E_Config_Binding_Signal *ebs;
@ -255,7 +255,7 @@ e_bindings_signal_reset(void)
}
}
EAPI void
E_API void
e_bindings_acpi_reset(void)
{
E_Config_Binding_Acpi *eba;
@ -268,7 +268,7 @@ e_bindings_acpi_reset(void)
eba->action, eba->params);
}
EAPI void
E_API void
e_bindings_wheel_reset(void)
{
E_Config_Binding_Wheel *ebw;
@ -281,7 +281,7 @@ e_bindings_wheel_reset(void)
ebw->any_mod, ebw->action, ebw->params);
}
EAPI void
E_API void
e_bindings_edge_reset(void)
{
E_Config_Binding_Edge *ebe;
@ -294,7 +294,7 @@ e_bindings_edge_reset(void)
ebe->any_mod, ebe->action, ebe->params, ebe->delay);
}
EAPI void
E_API void
e_bindings_mouse_reset(void)
{
E_Config_Binding_Mouse *ebm;
@ -307,7 +307,7 @@ e_bindings_mouse_reset(void)
ebm->any_mod, ebm->action, ebm->params);
}
EAPI void
E_API void
e_bindings_key_reset(void)
{
E_Config_Binding_Key *ebk;
@ -322,7 +322,7 @@ e_bindings_key_reset(void)
e_comp_canvas_keys_grab();
}
EAPI void
E_API void
e_bindings_reset(void)
{
e_bindings_signal_reset();
@ -332,7 +332,7 @@ e_bindings_reset(void)
e_bindings_key_reset();
}
EAPI void
E_API void
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 *binding;
@ -347,7 +347,7 @@ e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod,
mouse_bindings = eina_list_append(mouse_bindings, binding);
}
EAPI void
E_API void
e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params)
{
E_Binding_Mouse *binding;
@ -371,7 +371,7 @@ e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod,
}
}
EAPI void
E_API void
e_bindings_mouse_grab(E_Binding_Context ctxt, Ecore_X_Window win)
{
E_Binding_Mouse *binding;
@ -396,7 +396,7 @@ e_bindings_mouse_grab(E_Binding_Context ctxt, Ecore_X_Window win)
#endif
}
EAPI void
E_API void
e_bindings_mouse_ungrab(E_Binding_Context ctxt, Ecore_X_Window win)
{
E_Binding_Mouse *binding;
@ -417,7 +417,7 @@ e_bindings_mouse_ungrab(E_Binding_Context ctxt, Ecore_X_Window win)
#endif
}
EAPI E_Action *
E_API E_Action *
e_bindings_mouse_button_find(E_Binding_Context ctxt, E_Binding_Event_Mouse_Button *ev, E_Binding_Mouse **bind_ret)
{
E_Binding_Mouse *binding;
@ -441,7 +441,7 @@ e_bindings_mouse_button_find(E_Binding_Context ctxt, E_Binding_Event_Mouse_Butto
return NULL;
}
EAPI E_Action *
E_API E_Action *
e_bindings_mouse_down_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Mouse_Button *ev)
{
E_Action *act;
@ -459,7 +459,7 @@ e_bindings_mouse_down_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Bind
return act;
}
EAPI E_Action *
E_API E_Action *
e_bindings_mouse_down_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Down *ev)
{
E_Binding_Event_Mouse_Button event;
@ -469,7 +469,7 @@ e_bindings_mouse_down_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, E
return e_bindings_mouse_down_event_handle(ctxt, obj, &event);
}
EAPI E_Action *
E_API E_Action *
e_bindings_mouse_down_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Button *ev)
{
E_Binding_Event_Mouse_Button event;
@ -479,7 +479,7 @@ e_bindings_mouse_down_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj,
return e_bindings_mouse_down_event_handle(ctxt, obj, &event);
}
EAPI E_Action *
E_API E_Action *
e_bindings_mouse_up_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Mouse_Button *ev)
{
E_Action *act;
@ -497,7 +497,7 @@ e_bindings_mouse_up_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Bindin
return act;
}
EAPI E_Action *
E_API E_Action *
e_bindings_mouse_up_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Up *ev)
{
E_Binding_Event_Mouse_Button event;
@ -507,7 +507,7 @@ e_bindings_mouse_up_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Eva
return e_bindings_mouse_up_event_handle(ctxt, obj, &event);
}
EAPI E_Action *
E_API E_Action *
e_bindings_mouse_up_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Button *ev)
{
E_Binding_Event_Mouse_Button event;
@ -517,7 +517,7 @@ e_bindings_mouse_up_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ec
return e_bindings_mouse_up_event_handle(ctxt, obj, &event);
}
EAPI void
E_API 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)
{
E_Binding_Key *binding;
@ -532,7 +532,7 @@ e_bindings_key_add(E_Binding_Context ctxt, const char *key, E_Binding_Modifier m
key_bindings = eina_list_append(key_bindings, binding);
}
EAPI E_Binding_Key *
E_API E_Binding_Key *
e_bindings_key_get(const char *action)
{
E_Binding_Key *binding;
@ -546,7 +546,7 @@ e_bindings_key_get(const char *action)
return NULL;
}
EAPI E_Binding_Key *
E_API E_Binding_Key *
e_bindings_key_find(const char *key, E_Binding_Modifier mod, int any_mod)
{
E_Binding_Key *binding;
@ -564,7 +564,7 @@ e_bindings_key_find(const char *key, E_Binding_Modifier mod, int any_mod)
return NULL;
}
EAPI void
E_API 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)
{
E_Binding_Key *binding;
@ -588,7 +588,7 @@ e_bindings_key_del(E_Binding_Context ctxt, const char *key, E_Binding_Modifier m
}
}
EAPI void
E_API void
e_bindings_key_grab(E_Binding_Context ctxt, Ecore_X_Window win)
{
E_Binding_Key *binding;
@ -612,7 +612,7 @@ e_bindings_key_grab(E_Binding_Context ctxt, Ecore_X_Window win)
#endif
}
EAPI void
E_API void
e_bindings_key_ungrab(E_Binding_Context ctxt, Ecore_X_Window win)
{
E_Binding_Key *binding;
@ -636,7 +636,7 @@ e_bindings_key_ungrab(E_Binding_Context ctxt, Ecore_X_Window win)
#endif
}
EAPI E_Action *
E_API E_Action *
e_bindings_key_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Key *ev)
{
E_Binding_Modifier mod = 0;
@ -669,7 +669,7 @@ e_bindings_key_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Ev
return NULL;
}
EAPI E_Action *
E_API E_Action *
e_bindings_key_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Key *ev)
{
E_Binding_Modifier mod = 0;
@ -702,7 +702,7 @@ e_bindings_key_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Even
return NULL;
}
EAPI E_Action *
E_API E_Action *
e_bindings_key_down_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev)
{
E_Binding_Modifier mod = 0;
@ -727,7 +727,7 @@ e_bindings_key_down_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev)
return NULL;
}
EAPI E_Action *
E_API E_Action *
e_bindings_key_up_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev)
{
E_Binding_Modifier mod = 0;
@ -752,7 +752,7 @@ e_bindings_key_up_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev)
return NULL;
}
EAPI Eina_Bool
E_API Eina_Bool
e_bindings_key_allowed(const char *key)
{
if (!key) return EINA_FALSE;
@ -779,7 +779,7 @@ e_bindings_key_allowed(const char *key)
}
EAPI void
E_API void
e_bindings_edge_add(E_Binding_Context ctxt, E_Zone_Edge edge, Eina_Bool drag_only, E_Binding_Modifier mod, int any_mod, const char *action, const char *params, float delay)
{
E_Binding_Edge *binding;
@ -798,7 +798,7 @@ e_bindings_edge_add(E_Binding_Context ctxt, E_Zone_Edge edge, Eina_Bool drag_onl
e_zone_edge_new(edge);
}
EAPI Eina_Bool
E_API Eina_Bool
e_bindings_edge_flippable_get(E_Zone_Edge edge)
{
E_Binding_Edge *binding;
@ -816,7 +816,7 @@ e_bindings_edge_flippable_get(E_Zone_Edge edge)
return EINA_FALSE;
}
EAPI Eina_Bool
E_API Eina_Bool
e_bindings_edge_non_flippable_get(E_Zone_Edge edge)
{
E_Binding_Edge *binding;
@ -835,7 +835,7 @@ e_bindings_edge_non_flippable_get(E_Zone_Edge edge)
return EINA_FALSE;
}
EAPI E_Binding_Edge *
E_API E_Binding_Edge *
e_bindings_edge_get(const char *action, E_Zone_Edge edge, int click)
{
E_Binding_Edge *binding;
@ -853,7 +853,7 @@ e_bindings_edge_get(const char *action, E_Zone_Edge edge, int click)
return NULL;
}
EAPI void
E_API void
e_bindings_edge_del(E_Binding_Context ctxt, E_Zone_Edge edge, Eina_Bool drag_only, E_Binding_Modifier mod, int any_mod, const char *action, const char *params, float delay)
{
E_Binding_Edge *binding;
@ -885,7 +885,7 @@ e_bindings_edge_del(E_Binding_Context ctxt, E_Zone_Edge edge, Eina_Bool drag_onl
e_zone_edge_free(edge);
}
EAPI E_Action *
E_API E_Action *
e_bindings_edge_in_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev)
{
E_Binding_Modifier mod = 0;
@ -935,7 +935,7 @@ e_bindings_edge_in_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Z
return act;
}
EAPI E_Action *
E_API E_Action *
e_bindings_edge_out_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev)
{
E_Binding_Modifier mod = 0;
@ -977,7 +977,7 @@ e_bindings_edge_out_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_
return act;
}
EAPI E_Action *
E_API E_Action *
e_bindings_edge_down_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev)
{
E_Binding_Modifier mod = 0;
@ -1014,7 +1014,7 @@ e_bindings_edge_down_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event
return act;
}
EAPI E_Action *
E_API E_Action *
e_bindings_edge_up_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev)
{
E_Binding_Modifier mod = 0;
@ -1042,7 +1042,7 @@ e_bindings_edge_up_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Z
return act;
}
EAPI void
E_API 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)
{
E_Binding_Signal *binding;
@ -1058,7 +1058,7 @@ e_bindings_signal_add(E_Binding_Context ctxt, const char *sig, const char *src,
signal_bindings = eina_list_append(signal_bindings, binding);
}
EAPI void
E_API 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)
{
E_Binding_Signal *binding;
@ -1085,7 +1085,7 @@ e_bindings_signal_del(E_Binding_Context ctxt, const char *sig, const char *src,
}
}
EAPI E_Action *
E_API E_Action *
e_bindings_signal_find(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Signal **bind_ret)
{
E_Binding_Modifier mod = 0;
@ -1115,7 +1115,7 @@ e_bindings_signal_find(E_Binding_Context ctxt, const char *sig, const char *src,
return NULL;
}
EAPI E_Action *
E_API E_Action *
e_bindings_signal_handle(E_Binding_Context ctxt, E_Object *obj, const char *sig, const char *src)
{
E_Action *act;
@ -1136,7 +1136,7 @@ e_bindings_signal_handle(E_Binding_Context ctxt, E_Object *obj, const char *sig,
return act;
}
EAPI void
E_API 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)
{
E_Binding_Wheel *binding;
@ -1152,7 +1152,7 @@ e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Mod
wheel_bindings = eina_list_append(wheel_bindings, binding);
}
EAPI void
E_API 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)
{
E_Binding_Wheel *binding;
@ -1177,7 +1177,7 @@ e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Mod
}
}
EAPI void
E_API void
e_bindings_wheel_grab(E_Binding_Context ctxt, Ecore_X_Window win)
{
E_Binding_Wheel *binding;
@ -1216,7 +1216,7 @@ e_bindings_wheel_grab(E_Binding_Context ctxt, Ecore_X_Window win)
#endif
}
EAPI void
E_API void
e_bindings_wheel_ungrab(E_Binding_Context ctxt, Ecore_X_Window win)
{
E_Binding_Wheel *binding;
@ -1254,7 +1254,7 @@ e_bindings_wheel_ungrab(E_Binding_Context ctxt, Ecore_X_Window win)
#endif
}
EAPI E_Action *
E_API E_Action *
e_bindings_wheel_find(E_Binding_Context ctxt, E_Binding_Event_Wheel *ev, E_Binding_Wheel **bind_ret)
{
E_Binding_Wheel *binding;
@ -1279,7 +1279,7 @@ e_bindings_wheel_find(E_Binding_Context ctxt, E_Binding_Event_Wheel *ev, E_Bindi
return NULL;
}
EAPI E_Action *
E_API E_Action *
e_bindings_wheel_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Wheel *ev)
{
E_Action *act;
@ -1297,7 +1297,7 @@ e_bindings_wheel_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_E
return act;
}
EAPI E_Action *
E_API E_Action *
e_bindings_wheel_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Wheel *ev)
{
E_Binding_Event_Wheel event;
@ -1307,7 +1307,7 @@ e_bindings_wheel_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_E
return e_bindings_wheel_event_handle(ctxt, obj, &event);
}
EAPI E_Action *
E_API E_Action *
e_bindings_wheel_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Wheel *ev)
{
E_Binding_Event_Wheel event;
@ -1317,7 +1317,7 @@ e_bindings_wheel_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore
return e_bindings_wheel_event_handle(ctxt, obj, &event);
}
EAPI void
E_API void
e_bindings_acpi_add(E_Binding_Context ctxt, int type, int status, const char *action, const char *params)
{
E_Binding_Acpi *binding;
@ -1331,7 +1331,7 @@ e_bindings_acpi_add(E_Binding_Context ctxt, int type, int status, const char *ac
acpi_bindings = eina_list_append(acpi_bindings, binding);
}
EAPI void
E_API void
e_bindings_acpi_del(E_Binding_Context ctxt, int type, int status, const char *action, const char *params)
{
E_Binding_Acpi *binding;
@ -1353,7 +1353,7 @@ e_bindings_acpi_del(E_Binding_Context ctxt, int type, int status, const char *ac
}
}
EAPI E_Action *
E_API E_Action *
e_bindings_acpi_find(E_Binding_Context ctxt, E_Event_Acpi *ev, E_Binding_Acpi **bind_ret)
{
E_Binding_Acpi *binding;
@ -1382,7 +1382,7 @@ e_bindings_acpi_find(E_Binding_Context ctxt, E_Event_Acpi *ev, E_Binding_Acpi **
return NULL;
}
EAPI E_Action *
E_API E_Action *
e_bindings_acpi_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Acpi *ev)
{
E_Action *act;

View File

@ -133,73 +133,73 @@ struct _E_Binding_Acpi
EINTERN int e_bindings_init(void);
EINTERN int e_bindings_shutdown(void);
EAPI void e_bindings_mouse_reset(void);
EAPI void e_bindings_key_reset(void);
EAPI void e_bindings_wheel_reset(void);
EAPI void e_bindings_edge_reset(void);
EAPI void e_bindings_signal_reset(void);
EAPI void e_bindings_reset(void);
E_API void e_bindings_mouse_reset(void);
E_API void e_bindings_key_reset(void);
E_API void e_bindings_wheel_reset(void);
E_API void e_bindings_edge_reset(void);
E_API void e_bindings_signal_reset(void);
E_API void e_bindings_reset(void);
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_button_find(E_Binding_Context ctxt, E_Binding_Event_Mouse_Button *ev, E_Binding_Mouse **bind_ret);
EAPI E_Action *e_bindings_mouse_down_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Mouse_Button *ev);
EAPI E_Action *e_bindings_mouse_down_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Down *ev);
EAPI E_Action *e_bindings_mouse_down_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Button *ev);
EAPI E_Action *e_bindings_mouse_up_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Mouse_Button *ev);
EAPI E_Action *e_bindings_mouse_up_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Up *ev);
EAPI E_Action *e_bindings_mouse_up_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Button *ev);
E_API void e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
E_API void e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
E_API void e_bindings_mouse_grab(E_Binding_Context ctxt, Ecore_X_Window win);
E_API void e_bindings_mouse_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
E_API E_Action *e_bindings_mouse_button_find(E_Binding_Context ctxt, E_Binding_Event_Mouse_Button *ev, E_Binding_Mouse **bind_ret);
E_API E_Action *e_bindings_mouse_down_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Mouse_Button *ev);
E_API E_Action *e_bindings_mouse_down_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Down *ev);
E_API E_Action *e_bindings_mouse_down_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Button *ev);
E_API E_Action *e_bindings_mouse_up_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Mouse_Button *ev);
E_API E_Action *e_bindings_mouse_up_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Up *ev);
E_API E_Action *e_bindings_mouse_up_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Button *ev);
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 E_Binding_Key *e_bindings_key_get(const char *action);
EAPI E_Binding_Key *e_bindings_key_find(const char *key, E_Binding_Modifier mod, int any_mod);
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_Event_Key *ev);
EAPI E_Action *e_bindings_key_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Key *ev);
EAPI E_Action *e_bindings_key_down_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev);
EAPI E_Action *e_bindings_key_up_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev);
E_API 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);
E_API 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);
E_API E_Binding_Key *e_bindings_key_get(const char *action);
E_API E_Binding_Key *e_bindings_key_find(const char *key, E_Binding_Modifier mod, int any_mod);
E_API void e_bindings_key_grab(E_Binding_Context ctxt, Ecore_X_Window win);
E_API void e_bindings_key_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
E_API E_Action *e_bindings_key_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Key *ev);
E_API E_Action *e_bindings_key_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Key *ev);
E_API E_Action *e_bindings_key_down_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev);
E_API E_Action *e_bindings_key_up_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev);
EAPI Eina_Bool e_bindings_key_allowed(const char *key);
E_API Eina_Bool e_bindings_key_allowed(const char *key);
EAPI void e_bindings_edge_add(E_Binding_Context ctxt, E_Zone_Edge edge, Eina_Bool drag_only, E_Binding_Modifier mod, int any_mod, const char *action, const char *params, float delay);
EAPI Eina_Bool e_bindings_edge_flippable_get(E_Zone_Edge edge);
EAPI Eina_Bool e_bindings_edge_non_flippable_get(E_Zone_Edge edge);
EAPI E_Binding_Edge *e_bindings_edge_get(const char *action, E_Zone_Edge edge, int click);
EAPI void e_bindings_edge_del(E_Binding_Context ctxt, E_Zone_Edge edge, Eina_Bool drag_only, E_Binding_Modifier mod, int any_mod, const char *action, const char *params, float delay);
EAPI E_Action *e_bindings_edge_in_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev);
EAPI E_Action *e_bindings_edge_out_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev);
EAPI E_Action *e_bindings_edge_down_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev);
EAPI E_Action *e_bindings_edge_up_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev);
E_API void e_bindings_edge_add(E_Binding_Context ctxt, E_Zone_Edge edge, Eina_Bool drag_only, E_Binding_Modifier mod, int any_mod, const char *action, const char *params, float delay);
E_API Eina_Bool e_bindings_edge_flippable_get(E_Zone_Edge edge);
E_API Eina_Bool e_bindings_edge_non_flippable_get(E_Zone_Edge edge);
E_API E_Binding_Edge *e_bindings_edge_get(const char *action, E_Zone_Edge edge, int click);
E_API void e_bindings_edge_del(E_Binding_Context ctxt, E_Zone_Edge edge, Eina_Bool drag_only, E_Binding_Modifier mod, int any_mod, const char *action, const char *params, float delay);
E_API E_Action *e_bindings_edge_in_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev);
E_API E_Action *e_bindings_edge_out_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev);
E_API E_Action *e_bindings_edge_down_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev);
E_API E_Action *e_bindings_edge_up_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev);
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, const char *sig, const char *src, E_Binding_Signal **bind_ret);
EAPI E_Action *e_bindings_signal_handle(E_Binding_Context ctxt, E_Object *obj, const char *sig, const char *src);
E_API 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);
E_API 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);
E_API E_Action *e_bindings_signal_find(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Signal **bind_ret);
E_API E_Action *e_bindings_signal_handle(E_Binding_Context ctxt, E_Object *obj, const char *sig, const char *src);
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_Binding_Event_Wheel *ev, E_Binding_Wheel **bind_ret);
EAPI E_Action *e_bindings_wheel_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Wheel *ev);
EAPI E_Action *e_bindings_wheel_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Wheel *ev);
EAPI E_Action *e_bindings_wheel_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Wheel *ev);
E_API 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);
E_API 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);
E_API void e_bindings_wheel_grab(E_Binding_Context ctxt, Ecore_X_Window win);
E_API void e_bindings_wheel_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
E_API E_Action *e_bindings_wheel_find(E_Binding_Context ctxt, E_Binding_Event_Wheel *ev, E_Binding_Wheel **bind_ret);
E_API E_Action *e_bindings_wheel_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Wheel *ev);
E_API E_Action *e_bindings_wheel_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Wheel *ev);
E_API E_Action *e_bindings_wheel_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Wheel *ev);
EAPI void e_bindings_acpi_add(E_Binding_Context ctxt, int type, int status, const char *action, const char *params);
EAPI void e_bindings_acpi_del(E_Binding_Context ctxt, int type, int status, const char *action, const char *params);
EAPI E_Action *e_bindings_acpi_find(E_Binding_Context ctxt, E_Event_Acpi *ev, E_Binding_Acpi **bind_ret);
EAPI E_Action *e_bindings_acpi_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Acpi *ev);
E_API void e_bindings_acpi_add(E_Binding_Context ctxt, int type, int status, const char *action, const char *params);
E_API void e_bindings_acpi_del(E_Binding_Context ctxt, int type, int status, const char *action, const char *params);
E_API E_Action *e_bindings_acpi_find(E_Binding_Context ctxt, E_Event_Acpi *ev, E_Binding_Acpi **bind_ret);
E_API E_Action *e_bindings_acpi_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Acpi *ev);
EAPI int e_bindings_evas_modifiers_convert(Evas_Modifier *modifiers);
EAPI int e_bindings_modifiers_to_ecore_convert(E_Binding_Modifier modifiers);
EAPI void e_bindings_evas_event_mouse_button_convert(const Evas_Event_Mouse_Down *ev, E_Binding_Event_Mouse_Button *event);
EAPI void e_bindings_evas_event_mouse_wheel_convert(const Evas_Event_Mouse_Wheel *ev, E_Binding_Event_Wheel *event);
EAPI void e_bindings_ecore_event_mouse_button_convert(const Ecore_Event_Mouse_Button *ev, E_Binding_Event_Mouse_Button *event);
EAPI void e_bindings_ecore_event_mouse_wheel_convert(const Ecore_Event_Mouse_Wheel *ev, E_Binding_Event_Wheel *event);
E_API int e_bindings_evas_modifiers_convert(Evas_Modifier *modifiers);
E_API int e_bindings_modifiers_to_ecore_convert(E_Binding_Modifier modifiers);
E_API void e_bindings_evas_event_mouse_button_convert(const Evas_Event_Mouse_Down *ev, E_Binding_Event_Mouse_Button *event);
E_API void e_bindings_evas_event_mouse_wheel_convert(const Evas_Event_Mouse_Wheel *ev, E_Binding_Event_Wheel *event);
E_API void e_bindings_ecore_event_mouse_button_convert(const Ecore_Event_Mouse_Button *ev, E_Binding_Event_Mouse_Button *event);
E_API void e_bindings_ecore_event_mouse_wheel_convert(const Ecore_Event_Mouse_Wheel *ev, E_Binding_Event_Wheel *event);
#endif
#endif

View File

@ -3,22 +3,22 @@
static int _e_client_hooks_delete = 0;
static int _e_client_hooks_walking = 0;
EAPI int E_EVENT_CLIENT_ADD = -1;
EAPI int E_EVENT_CLIENT_REMOVE = -1;
EAPI int E_EVENT_CLIENT_ZONE_SET = -1;
EAPI int E_EVENT_CLIENT_DESK_SET = -1;
EAPI int E_EVENT_CLIENT_RESIZE = -1;
EAPI int E_EVENT_CLIENT_MOVE = -1;
EAPI int E_EVENT_CLIENT_SHOW = -1;
EAPI int E_EVENT_CLIENT_HIDE = -1;
EAPI int E_EVENT_CLIENT_ICONIFY = -1;
EAPI int E_EVENT_CLIENT_UNICONIFY = -1;
EAPI int E_EVENT_CLIENT_STACK = -1;
EAPI int E_EVENT_CLIENT_FOCUS_IN = -1;
EAPI int E_EVENT_CLIENT_FOCUS_OUT = -1;
EAPI int E_EVENT_CLIENT_PROPERTY = -1;
EAPI int E_EVENT_CLIENT_FULLSCREEN = -1;
EAPI int E_EVENT_CLIENT_UNFULLSCREEN = -1;
E_API int E_EVENT_CLIENT_ADD = -1;
E_API int E_EVENT_CLIENT_REMOVE = -1;
E_API int E_EVENT_CLIENT_ZONE_SET = -1;
E_API int E_EVENT_CLIENT_DESK_SET = -1;
E_API int E_EVENT_CLIENT_RESIZE = -1;
E_API int E_EVENT_CLIENT_MOVE = -1;
E_API int E_EVENT_CLIENT_SHOW = -1;
E_API int E_EVENT_CLIENT_HIDE = -1;
E_API int E_EVENT_CLIENT_ICONIFY = -1;
E_API int E_EVENT_CLIENT_UNICONIFY = -1;
E_API int E_EVENT_CLIENT_STACK = -1;
E_API int E_EVENT_CLIENT_FOCUS_IN = -1;
E_API int E_EVENT_CLIENT_FOCUS_OUT = -1;
E_API int E_EVENT_CLIENT_PROPERTY = -1;
E_API int E_EVENT_CLIENT_FULLSCREEN = -1;
E_API int E_EVENT_CLIENT_UNFULLSCREEN = -1;
static Eina_Hash *clients_hash = NULL; // pixmap->client
@ -2425,7 +2425,7 @@ e_client_shutdown(void)
warp_client = NULL;
}
EAPI E_Client *
E_API E_Client *
e_client_new(E_Pixmap *cp, int first_map, int internal)
{
E_Client *ec;
@ -2554,7 +2554,7 @@ e_client_new(E_Pixmap *cp, int first_map, int internal)
return ec;
}
EAPI Eina_Bool
E_API Eina_Bool
e_client_desk_window_profile_available_check(E_Client *ec, const char *profile)
{
int i;
@ -2575,7 +2575,7 @@ e_client_desk_window_profile_available_check(E_Client *ec, const char *profile)
return EINA_FALSE;
}
EAPI void
E_API void
e_client_desk_window_profile_wait_desk_set(E_Client *ec, E_Desk *desk)
{
E_OBJECT_CHECK(ec);
@ -2609,7 +2609,7 @@ e_client_desk_window_profile_wait_desk_set(E_Client *ec, E_Desk *desk)
e_object_ref(E_OBJECT(ec->e.state.profile.wait_desk));
}
EAPI void
E_API void
e_client_desk_set(E_Client *ec, E_Desk *desk)
{
E_Event_Client_Desk_Set *ev;
@ -2691,26 +2691,26 @@ e_client_desk_set(E_Client *ec, E_Desk *desk)
evas_object_smart_callback_call(ec->frame, "desk_change", ec);
}
EAPI Eina_Bool
E_API Eina_Bool
e_client_comp_grabbed_get(void)
{
return comp_grabbed;
}
EAPI E_Client *
E_API E_Client *
e_client_action_get(void)
{
return action_client;
}
EAPI E_Client *
E_API E_Client *
e_client_warping_get(void)
{
return warp_client;
}
EAPI Eina_List *
E_API Eina_List *
e_clients_immortal_list(void)
{
const Eina_List *l;
@ -2727,7 +2727,7 @@ e_clients_immortal_list(void)
//////////////////////////////////////////////////////////
EAPI void
E_API void
e_client_mouse_in(E_Client *ec, int x, int y)
{
if (comp_grabbed) return;
@ -2741,7 +2741,7 @@ e_client_mouse_in(E_Client *ec, int x, int y)
e_focus_event_mouse_in(ec);
}
EAPI void
E_API void
e_client_mouse_out(E_Client *ec, int x, int y)
{
if (comp_grabbed) return;
@ -2757,7 +2757,7 @@ e_client_mouse_out(E_Client *ec, int x, int y)
e_focus_event_mouse_out(ec);
}
EAPI void
E_API void
e_client_mouse_wheel(E_Client *ec, Evas_Point *output, E_Binding_Event_Wheel *ev)
{
EINA_SAFETY_ON_NULL_RETURN(ec);
@ -2768,7 +2768,7 @@ e_client_mouse_wheel(E_Client *ec, Evas_Point *output, E_Binding_Event_Wheel *ev
e_bindings_wheel_event_handle(E_BINDING_CONTEXT_WINDOW, E_OBJECT(ec), ev);
}
EAPI void
E_API void
e_client_mouse_down(E_Client *ec, int button, Evas_Point *output, E_Binding_Event_Mouse_Button *ev)
{
Eina_Bool did_act = EINA_FALSE;
@ -2830,7 +2830,7 @@ e_client_mouse_down(E_Client *ec, int button, Evas_Point *output, E_Binding_Even
ec->mouse.current.my = output->y;
}
EAPI void
E_API void
e_client_mouse_up(E_Client *ec, int button, Evas_Point *output, E_Binding_Event_Mouse_Button* ev)
{
EINA_SAFETY_ON_NULL_RETURN(ec);
@ -2871,7 +2871,7 @@ e_client_mouse_up(E_Client *ec, int button, Evas_Point *output, E_Binding_Event_
ec->drag.start = 0;
}
EAPI void
E_API void
e_client_mouse_move(E_Client *ec, Evas_Point *output)
{
EINA_SAFETY_ON_NULL_RETURN(ec);
@ -2974,7 +2974,7 @@ e_client_mouse_move(E_Client *ec, Evas_Point *output)
}
///////////////////////////////////////////////////////
EAPI void
E_API void
e_client_res_change_geometry_save(E_Client *ec)
{
E_OBJECT_CHECK(ec);
@ -2992,7 +2992,7 @@ e_client_res_change_geometry_save(E_Client *ec)
ec->pre_res_change.saved.h = ec->saved.h;
}
EAPI void
E_API void
e_client_res_change_geometry_restore(E_Client *ec)
{
struct
@ -3064,7 +3064,7 @@ e_client_res_change_geometry_restore(E_Client *ec)
memcpy(&ec->pre_res_change, &pre_res_change, sizeof(pre_res_change));
}
EAPI void
E_API void
e_client_zone_set(E_Client *ec, E_Zone *zone)
{
E_Event_Client_Zone_Set *ev;
@ -3127,7 +3127,7 @@ e_client_zone_set(E_Client *ec, E_Zone *zone)
ec->pre_res_change.valid = 0;
}
EAPI void
E_API void
e_client_geometry_get(E_Client *ec, int *x, int *y, int *w, int *h)
{
E_OBJECT_CHECK(ec);
@ -3144,7 +3144,7 @@ e_client_geometry_get(E_Client *ec, int *x, int *y, int *w, int *h)
}
}
EAPI E_Client *
E_API E_Client *
e_client_above_get(const E_Client *ec)
{
unsigned int x;
@ -3171,7 +3171,7 @@ e_client_above_get(const E_Client *ec)
return NULL;
}
EAPI E_Client *
E_API E_Client *
e_client_below_get(const E_Client *ec)
{
unsigned int x;
@ -3205,7 +3205,7 @@ e_client_below_get(const E_Client *ec)
return NULL;
}
EAPI E_Client *
E_API E_Client *
e_client_bottom_get(void)
{
unsigned int x;
@ -3222,7 +3222,7 @@ e_client_bottom_get(void)
return NULL;
}
EAPI E_Client *
E_API E_Client *
e_client_top_get(void)
{
unsigned int x;
@ -3239,7 +3239,7 @@ e_client_top_get(void)
return NULL;
}
EAPI unsigned int
E_API unsigned int
e_clients_count(void)
{
return eina_list_count(e_comp->clients);
@ -3250,7 +3250,7 @@ e_clients_count(void)
* Set a callback which will be called just prior to updating the
* move coordinates for a border
*/
EAPI void
E_API void
e_client_move_intercept_cb_set(E_Client *ec, E_Client_Move_Intercept_Cb cb)
{
ec->move_intercept_cb = cb;
@ -3258,7 +3258,7 @@ e_client_move_intercept_cb_set(E_Client *ec, E_Client_Move_Intercept_Cb cb)
///////////////////////////////////////
EAPI E_Client_Hook *
E_API E_Client_Hook *
e_client_hook_add(E_Client_Hook_Point hookpoint, E_Client_Hook_Cb func, const void *data)
{
E_Client_Hook *ch;
@ -3273,7 +3273,7 @@ e_client_hook_add(E_Client_Hook_Point hookpoint, E_Client_Hook_Cb func, const vo
return ch;
}
EAPI void
E_API void
e_client_hook_del(E_Client_Hook *ch)
{
ch->delete_me = 1;
@ -3288,39 +3288,39 @@ e_client_hook_del(E_Client_Hook *ch)
///////////////////////////////////////
EAPI void
E_API void
e_client_focus_latest_set(E_Client *ec)
{
focus_stack = eina_list_remove(focus_stack, ec);
focus_stack = eina_list_prepend(focus_stack, ec);
}
EAPI void
E_API void
e_client_raise_latest_set(E_Client *ec)
{
raise_stack = eina_list_remove(raise_stack, ec);
raise_stack = eina_list_prepend(raise_stack, ec);
}
EAPI Eina_Bool
E_API Eina_Bool
e_client_focus_track_enabled(void)
{
return !focus_track_frozen;
}
EAPI void
E_API void
e_client_focus_track_freeze(void)
{
focus_track_frozen++;
}
EAPI void
E_API void
e_client_focus_track_thaw(void)
{
focus_track_frozen--;
}
EAPI void
E_API void
e_client_refocus(void)
{
E_Client *ec;
@ -3361,7 +3361,7 @@ e_client_refocus(void)
* the last focused window should get focus).
*
*/
EAPI void
E_API void
e_client_focus_set_with_pointer(E_Client *ec)
{
E_OBJECT_CHECK(ec);
@ -3487,7 +3487,7 @@ e_client_focused_set(E_Client *ec)
_e_client_event_simple(ec, E_EVENT_CLIENT_FOCUS_IN);
}
EAPI void
E_API void
e_client_activate(E_Client *ec, Eina_Bool just_do_it)
{
E_OBJECT_CHECK(ec);
@ -3526,31 +3526,31 @@ e_client_activate(E_Client *ec, Eina_Bool just_do_it)
}
}
EAPI E_Client *
E_API E_Client *
e_client_focused_get(void)
{
return focused;
}
EAPI Eina_List *
E_API Eina_List *
e_client_focus_stack_get(void)
{
return focus_stack;
}
YOLO EAPI void
YOLO E_API void
e_client_focus_stack_set(Eina_List *l)
{
focus_stack = l;
}
EAPI Eina_List *
E_API Eina_List *
e_client_raise_stack_get(void)
{
return raise_stack;
}
EAPI Eina_List *
E_API Eina_List *
e_client_lost_windows_get(E_Zone *zone)
{
Eina_List *list = NULL;
@ -3579,7 +3579,7 @@ e_client_lost_windows_get(E_Zone *zone)
///////////////////////////////////////
EAPI void
E_API void
e_client_shade(E_Client *ec, E_Direction dir)
{
E_OBJECT_CHECK(ec);
@ -3607,7 +3607,7 @@ e_client_shade(E_Client *ec, E_Direction dir)
e_remember_update(ec);
}
EAPI void
E_API void
e_client_unshade(E_Client *ec, E_Direction dir)
{
E_OBJECT_CHECK(ec);
@ -3635,7 +3635,7 @@ e_client_unshade(E_Client *ec, E_Direction dir)
///////////////////////////////////////
EAPI void
E_API void
e_client_maximize(E_Client *ec, E_Maximize max)
{
E_OBJECT_CHECK(ec);
@ -3697,7 +3697,7 @@ e_client_maximize(E_Client *ec, E_Maximize max)
evas_object_smart_callback_call(ec->frame, "maximize_done", NULL);
}
EAPI void
E_API void
e_client_unmaximize(E_Client *ec, E_Maximize max)
{
E_OBJECT_CHECK(ec);
@ -3807,7 +3807,7 @@ e_client_unmaximize(E_Client *ec, E_Maximize max)
evas_object_smart_callback_call(ec->frame, "unmaximize_done", NULL);
}
EAPI void
E_API void
e_client_fullscreen(E_Client *ec, E_Fullscreen policy)
{
int x, y, w, h;
@ -3887,7 +3887,7 @@ e_client_fullscreen(E_Client *ec, E_Fullscreen policy)
e_remember_update(ec);
}
EAPI void
E_API void
e_client_unfullscreen(E_Client *ec)
{
E_OBJECT_CHECK(ec);
@ -3928,7 +3928,7 @@ e_client_unfullscreen(E_Client *ec)
///////////////////////////////////////
EAPI void
E_API void
e_client_iconify(E_Client *ec)
{
E_OBJECT_CHECK(ec);
@ -3962,7 +3962,7 @@ e_client_iconify(E_Client *ec)
e_remember_update(ec);
}
EAPI void
E_API void
e_client_uniconify(E_Client *ec)
{
E_Desk *desk;
@ -3994,7 +3994,7 @@ e_client_uniconify(E_Client *ec)
///////////////////////////////////////
EAPI void
E_API void
e_client_urgent_set(E_Client *ec, Eina_Bool urgent)
{
E_OBJECT_CHECK(ec);
@ -4024,7 +4024,7 @@ e_client_urgent_set(E_Client *ec, Eina_Bool urgent)
///////////////////////////////////////
EAPI void
E_API void
e_client_stick(E_Client *ec)
{
E_Desk *desk;
@ -4058,7 +4058,7 @@ e_client_stick(E_Client *ec)
e_remember_update(ec);
}
EAPI void
E_API void
e_client_unstick(E_Client *ec)
{
E_Desk *desk;
@ -4093,7 +4093,7 @@ e_client_unstick(E_Client *ec)
e_remember_update(ec);
}
EAPI void
E_API void
e_client_pinned_set(E_Client *ec, Eina_Bool set)
{
E_Layer layer;
@ -4114,7 +4114,7 @@ e_client_pinned_set(E_Client *ec, Eina_Bool set)
///////////////////////////////////////
EAPI Eina_Bool
E_API Eina_Bool
e_client_border_set(E_Client *ec, const char *name)
{
Eina_Stringshare *pborder;
@ -4144,7 +4144,7 @@ e_client_border_set(E_Client *ec, const char *name)
///////////////////////////////////////
EAPI void
E_API void
e_client_comp_hidden_set(E_Client *ec, Eina_Bool hidden)
{
E_OBJECT_CHECK(ec);
@ -4159,7 +4159,7 @@ e_client_comp_hidden_set(E_Client *ec, Eina_Bool hidden)
///////////////////////////////////////
EAPI void
E_API void
e_client_act_move_keyboard(E_Client *ec)
{
EINA_SAFETY_ON_NULL_RETURN(ec);
@ -4180,7 +4180,7 @@ e_client_act_move_keyboard(E_Client *ec)
action_handler_mouse = ecore_event_handler_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, _e_client_move_mouse_down, NULL);
}
EAPI void
E_API void
e_client_act_resize_keyboard(E_Client *ec)
{
EINA_SAFETY_ON_NULL_RETURN(ec);
@ -4201,7 +4201,7 @@ e_client_act_resize_keyboard(E_Client *ec)
action_handler_mouse = ecore_event_handler_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, _e_client_resize_mouse_down, NULL);
}
EAPI void
E_API void
e_client_act_move_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev)
{
E_OBJECT_CHECK(ec);
@ -4223,7 +4223,7 @@ e_client_act_move_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev)
}
}
EAPI void
E_API void
e_client_act_move_end(E_Client *ec, E_Binding_Event_Mouse_Button *ev EINA_UNUSED)
{
E_OBJECT_CHECK(ec);
@ -4236,7 +4236,7 @@ e_client_act_move_end(E_Client *ec, E_Binding_Event_Mouse_Button *ev EINA_UNUSED
_e_client_action_finish();
}
EAPI void
E_API void
e_client_act_resize_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev)
{
E_OBJECT_CHECK(ec);
@ -4301,7 +4301,7 @@ e_client_act_resize_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev)
e_pointer_mode_push(ec, ec->resize_mode);
}
EAPI void
E_API void
e_client_act_resize_end(E_Client *ec, E_Binding_Event_Mouse_Button *ev EINA_UNUSED)
{
E_OBJECT_CHECK(ec);
@ -4317,7 +4317,7 @@ e_client_act_resize_end(E_Client *ec, E_Binding_Event_Mouse_Button *ev EINA_UNUS
_e_client_action_finish();
}
EAPI void
E_API void
e_client_act_menu_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev, int key)
{
E_OBJECT_CHECK(ec);
@ -4335,7 +4335,7 @@ e_client_act_menu_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev, int key)
}
}
EAPI void
E_API void
e_client_act_close_begin(E_Client *ec)
{
E_OBJECT_CHECK(ec);
@ -4353,7 +4353,7 @@ e_client_act_close_begin(E_Client *ec)
}
}
EAPI void
E_API void
e_client_act_kill_begin(E_Client *ec)
{
E_OBJECT_CHECK(ec);
@ -4374,7 +4374,7 @@ e_client_act_kill_begin(E_Client *ec)
////////////////////////////////////////////////
EAPI Evas_Object *
E_API Evas_Object *
e_client_icon_add(E_Client *ec, Evas *evas)
{
Evas_Object *o;
@ -4465,7 +4465,7 @@ e_client_icon_add(E_Client *ec, Evas *evas)
////////////////////////////////////////////
EAPI void
E_API void
e_client_ping(E_Client *ec)
{
E_OBJECT_CHECK(ec);
@ -4482,7 +4482,7 @@ e_client_ping(E_Client *ec)
////////////////////////////////////////////
EAPI void
E_API void
e_client_move_cancel(void)
{
if (!ecmove) return;
@ -4504,7 +4504,7 @@ e_client_move_cancel(void)
_e_client_move_end(ecmove);
}
EAPI void
E_API void
e_client_resize_cancel(void)
{
if (!ecresize) return;
@ -4526,7 +4526,7 @@ e_client_resize_cancel(void)
_e_client_resize_end(ecresize);
}
EAPI Eina_Bool
E_API Eina_Bool
e_client_resize_begin(E_Client *ec)
{
if ((ec->shaded) || (ec->shading) ||
@ -4555,7 +4555,7 @@ error:
////////////////////////////////////////////
EAPI void
E_API void
e_client_frame_recalc(E_Client *ec)
{
EINA_SAFETY_ON_NULL_RETURN(ec);
@ -4565,7 +4565,7 @@ e_client_frame_recalc(E_Client *ec)
////////////////////////////////////////////
EAPI void
E_API void
e_client_signal_move_begin(E_Client *ec, const char *sig, const char *src EINA_UNUSED)
{
E_OBJECT_CHECK(ec);
@ -4579,7 +4579,7 @@ e_client_signal_move_begin(E_Client *ec, const char *sig, const char *src EINA_U
_e_client_moveinfo_gather(ec, sig);
}
EAPI void
E_API void
e_client_signal_move_end(E_Client *ec, const char *sig EINA_UNUSED, const char *src EINA_UNUSED)
{
E_OBJECT_CHECK(ec);
@ -4591,7 +4591,7 @@ e_client_signal_move_end(E_Client *ec, const char *sig EINA_UNUSED, const char *
e_zone_flip_coords_handle(ec->zone, -1, -1);
}
EAPI void
E_API void
e_client_signal_resize_begin(E_Client *ec, const char *dir, const char *sig, const char *src EINA_UNUSED)
{
int resize_mode = E_POINTER_RESIZE_BR;
@ -4639,7 +4639,7 @@ e_client_signal_resize_begin(E_Client *ec, const char *dir, const char *sig, con
e_pointer_mode_push(ec, ec->resize_mode);
}
EAPI void
E_API void
e_client_signal_resize_end(E_Client *ec, const char *dir EINA_UNUSED, const char *sig EINA_UNUSED, const char *src EINA_UNUSED)
{
E_OBJECT_CHECK(ec);
@ -4653,7 +4653,7 @@ e_client_signal_resize_end(E_Client *ec, const char *dir EINA_UNUSED, const char
////////////////////////////////////////////
EAPI void
E_API void
e_client_resize_limit(E_Client *ec, int *w, int *h)
{
double a;
@ -4750,7 +4750,7 @@ e_client_resize_limit(E_Client *ec, int *w, int *h)
EAPI E_Client *
E_API E_Client *
e_client_under_pointer_get(E_Desk *desk, E_Client *exclude)
{
int x, y;
@ -4782,7 +4782,7 @@ e_client_under_pointer_get(E_Desk *desk, E_Client *exclude)
////////////////////////////////////////////
EAPI int
E_API int
e_client_pointer_warp_to_center_now(E_Client *ec)
{
if (e_config->disable_all_pointer_warps) return 0;
@ -4800,7 +4800,7 @@ e_client_pointer_warp_to_center_now(E_Client *ec)
return 1;
}
EAPI int
E_API int
e_client_pointer_warp_to_center(E_Client *ec)
{
int x, y;
@ -4849,7 +4849,7 @@ e_client_pointer_warp_to_center(E_Client *ec)
////////////////////////////////////////////
EAPI void
E_API void
e_client_redirected_set(E_Client *ec, Eina_Bool set)
{
EINA_SAFETY_ON_NULL_RETURN(ec);
@ -4871,7 +4871,7 @@ e_client_redirected_set(E_Client *ec, Eina_Bool set)
////////////////////////////////////////////
EAPI Eina_Bool
E_API Eina_Bool
e_client_is_stacking(const E_Client *ec)
{
return e_comp->layers[e_comp_canvas_layer_map(ec->layer)].obj == ec->frame;
@ -4879,7 +4879,7 @@ e_client_is_stacking(const E_Client *ec)
////////////////////////////////////////////
EAPI void
E_API void
e_client_layout_cb_set(E_Client_Layout_Cb cb)
{
if (_e_client_layout_cb && cb)

View File

@ -720,107 +720,107 @@ struct E_Client
for (EC = e_client_top_get(); EC; EC = e_client_below_get(EC))
EAPI extern int E_EVENT_CLIENT_ADD;
EAPI extern int E_EVENT_CLIENT_REMOVE;
EAPI extern int E_EVENT_CLIENT_ZONE_SET;
EAPI extern int E_EVENT_CLIENT_DESK_SET;
EAPI extern int E_EVENT_CLIENT_RESIZE;
EAPI extern int E_EVENT_CLIENT_MOVE;
EAPI extern int E_EVENT_CLIENT_SHOW;
EAPI extern int E_EVENT_CLIENT_HIDE;
EAPI extern int E_EVENT_CLIENT_ICONIFY;
EAPI extern int E_EVENT_CLIENT_UNICONIFY;
EAPI extern int E_EVENT_CLIENT_STACK;
EAPI extern int E_EVENT_CLIENT_FOCUS_IN;
EAPI extern int E_EVENT_CLIENT_FOCUS_OUT;
EAPI extern int E_EVENT_CLIENT_PROPERTY;
EAPI extern int E_EVENT_CLIENT_FULLSCREEN;
EAPI extern int E_EVENT_CLIENT_UNFULLSCREEN;
E_API extern int E_EVENT_CLIENT_ADD;
E_API extern int E_EVENT_CLIENT_REMOVE;
E_API extern int E_EVENT_CLIENT_ZONE_SET;
E_API extern int E_EVENT_CLIENT_DESK_SET;
E_API extern int E_EVENT_CLIENT_RESIZE;
E_API extern int E_EVENT_CLIENT_MOVE;
E_API extern int E_EVENT_CLIENT_SHOW;
E_API extern int E_EVENT_CLIENT_HIDE;
E_API extern int E_EVENT_CLIENT_ICONIFY;
E_API extern int E_EVENT_CLIENT_UNICONIFY;
E_API extern int E_EVENT_CLIENT_STACK;
E_API extern int E_EVENT_CLIENT_FOCUS_IN;
E_API extern int E_EVENT_CLIENT_FOCUS_OUT;
E_API extern int E_EVENT_CLIENT_PROPERTY;
E_API extern int E_EVENT_CLIENT_FULLSCREEN;
E_API extern int E_EVENT_CLIENT_UNFULLSCREEN;
EINTERN void e_client_idler_before(void);
EINTERN Eina_Bool e_client_init(void);
EINTERN void e_client_shutdown(void);
EAPI E_Client *e_client_new(E_Pixmap *cp, int first_map, int internal);
EAPI void e_client_desk_set(E_Client *ec, E_Desk *desk);
EAPI Eina_Bool e_client_comp_grabbed_get(void);
EAPI E_Client *e_client_action_get(void);
EAPI E_Client *e_client_warping_get(void);
EAPI Eina_List *e_clients_immortal_list(void);
EAPI void e_client_mouse_in(E_Client *ec, int x, int y);
EAPI void e_client_mouse_out(E_Client *ec, int x, int y);
EAPI void e_client_mouse_wheel(E_Client *ec, Evas_Point *output, E_Binding_Event_Wheel *ev);
EAPI void e_client_mouse_down(E_Client *ec, int button, Evas_Point *output, E_Binding_Event_Mouse_Button *ev);
EAPI void e_client_mouse_up(E_Client *ec, int button, Evas_Point *output, E_Binding_Event_Mouse_Button* ev);
EAPI void e_client_mouse_move(E_Client *ec, Evas_Point *output);
EAPI void e_client_res_change_geometry_save(E_Client *bd);
EAPI void e_client_res_change_geometry_restore(E_Client *ec);
EAPI void e_client_zone_set(E_Client *ec, E_Zone *zone);
EAPI void e_client_geometry_get(E_Client *ec, int *x, int *y, int *w, int *h);
EAPI E_Client *e_client_above_get(const E_Client *ec);
EAPI E_Client *e_client_below_get(const E_Client *ec);
EAPI E_Client *e_client_bottom_get(void);
EAPI E_Client *e_client_top_get(void);
EAPI unsigned int e_clients_count(void);
EAPI void e_client_move_intercept_cb_set(E_Client *ec, E_Client_Move_Intercept_Cb cb);
EAPI E_Client_Hook *e_client_hook_add(E_Client_Hook_Point hookpoint, E_Client_Hook_Cb func, const void *data);
EAPI void e_client_hook_del(E_Client_Hook *ch);
EAPI void e_client_focus_latest_set(E_Client *ec);
EAPI void e_client_raise_latest_set(E_Client *ec);
EAPI Eina_Bool e_client_focus_track_enabled(void);
EAPI void e_client_focus_track_freeze(void);
EAPI void e_client_focus_track_thaw(void);
EAPI void e_client_refocus(void);
EAPI void e_client_focus_set_with_pointer(E_Client *ec);
EAPI void e_client_activate(E_Client *ec, Eina_Bool just_do_it);
EAPI E_Client *e_client_focused_get(void);
EAPI Eina_List *e_client_focus_stack_get(void);
EAPI Eina_List *e_client_raise_stack_get(void);
EAPI Eina_List *e_client_lost_windows_get(E_Zone *zone);
EAPI void e_client_shade(E_Client *ec, E_Direction dir);
EAPI void e_client_unshade(E_Client *ec, E_Direction dir);
EAPI void e_client_maximize(E_Client *ec, E_Maximize max);
EAPI void e_client_unmaximize(E_Client *ec, E_Maximize max);
EAPI void e_client_fullscreen(E_Client *ec, E_Fullscreen policy);
EAPI void e_client_unfullscreen(E_Client *ec);
EAPI void e_client_iconify(E_Client *ec);
EAPI void e_client_uniconify(E_Client *ec);
EAPI void e_client_urgent_set(E_Client *ec, Eina_Bool urgent);
EAPI void e_client_stick(E_Client *ec);
EAPI void e_client_unstick(E_Client *ec);
EAPI void e_client_pinned_set(E_Client *ec, Eina_Bool set);
EAPI void e_client_comp_hidden_set(E_Client *ec, Eina_Bool hidden);
EAPI Eina_Bool e_client_border_set(E_Client *ec, const char *name);
EAPI void e_client_act_move_keyboard(E_Client *ec);
EAPI void e_client_act_resize_keyboard(E_Client *ec);
EAPI void e_client_act_move_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev);
EAPI void e_client_act_move_end(E_Client *ec, E_Binding_Event_Mouse_Button *ev EINA_UNUSED);
EAPI void e_client_act_resize_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev);
EAPI void e_client_act_resize_end(E_Client *ec, E_Binding_Event_Mouse_Button *ev EINA_UNUSED);
EAPI void e_client_act_menu_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev, int key);
EAPI void e_client_act_close_begin(E_Client *ec);
EAPI void e_client_act_kill_begin(E_Client *ec);
EAPI Evas_Object *e_client_icon_add(E_Client *ec, Evas *evas);
EAPI void e_client_ping(E_Client *cw);
EAPI void e_client_move_cancel(void);
EAPI void e_client_resize_cancel(void);
EAPI Eina_Bool e_client_resize_begin(E_Client *ec);
EAPI void e_client_frame_recalc(E_Client *ec);
EAPI void e_client_signal_move_begin(E_Client *ec, const char *sig, const char *src EINA_UNUSED);
EAPI void e_client_signal_move_end(E_Client *ec, const char *sig EINA_UNUSED, const char *src EINA_UNUSED);
EAPI void e_client_signal_resize_begin(E_Client *ec, const char *dir, const char *sig, const char *src EINA_UNUSED);
EAPI void e_client_signal_resize_end(E_Client *ec, const char *dir EINA_UNUSED, const char *sig EINA_UNUSED, const char *src EINA_UNUSED);
EAPI void e_client_resize_limit(E_Client *ec, int *w, int *h);
EAPI E_Client *e_client_under_pointer_get(E_Desk *desk, E_Client *exclude);
EAPI int e_client_pointer_warp_to_center_now(E_Client *ec);
EAPI int e_client_pointer_warp_to_center(E_Client *ec);
EAPI void e_client_redirected_set(E_Client *ec, Eina_Bool set);
EAPI Eina_Bool e_client_is_stacking(const E_Client *ec);
EAPI Eina_Bool e_client_desk_window_profile_available_check(E_Client *ec, const char *profile);
EAPI void e_client_desk_window_profile_wait_desk_set(E_Client *ec, E_Desk *desk);
EAPI void e_client_layout_cb_set(E_Client_Layout_Cb cb);
E_API E_Client *e_client_new(E_Pixmap *cp, int first_map, int internal);
E_API void e_client_desk_set(E_Client *ec, E_Desk *desk);
E_API Eina_Bool e_client_comp_grabbed_get(void);
E_API E_Client *e_client_action_get(void);
E_API E_Client *e_client_warping_get(void);
E_API Eina_List *e_clients_immortal_list(void);
E_API void e_client_mouse_in(E_Client *ec, int x, int y);
E_API void e_client_mouse_out(E_Client *ec, int x, int y);
E_API void e_client_mouse_wheel(E_Client *ec, Evas_Point *output, E_Binding_Event_Wheel *ev);
E_API void e_client_mouse_down(E_Client *ec, int button, Evas_Point *output, E_Binding_Event_Mouse_Button *ev);
E_API void e_client_mouse_up(E_Client *ec, int button, Evas_Point *output, E_Binding_Event_Mouse_Button* ev);
E_API void e_client_mouse_move(E_Client *ec, Evas_Point *output);
E_API void e_client_res_change_geometry_save(E_Client *bd);
E_API void e_client_res_change_geometry_restore(E_Client *ec);
E_API void e_client_zone_set(E_Client *ec, E_Zone *zone);
E_API void e_client_geometry_get(E_Client *ec, int *x, int *y, int *w, int *h);
E_API E_Client *e_client_above_get(const E_Client *ec);
E_API E_Client *e_client_below_get(const E_Client *ec);
E_API E_Client *e_client_bottom_get(void);
E_API E_Client *e_client_top_get(void);
E_API unsigned int e_clients_count(void);
E_API void e_client_move_intercept_cb_set(E_Client *ec, E_Client_Move_Intercept_Cb cb);
E_API E_Client_Hook *e_client_hook_add(E_Client_Hook_Point hookpoint, E_Client_Hook_Cb func, const void *data);
E_API void e_client_hook_del(E_Client_Hook *ch);
E_API void e_client_focus_latest_set(E_Client *ec);
E_API void e_client_raise_latest_set(E_Client *ec);
E_API Eina_Bool e_client_focus_track_enabled(void);
E_API void e_client_focus_track_freeze(void);
E_API void e_client_focus_track_thaw(void);
E_API void e_client_refocus(void);
E_API void e_client_focus_set_with_pointer(E_Client *ec);
E_API void e_client_activate(E_Client *ec, Eina_Bool just_do_it);
E_API E_Client *e_client_focused_get(void);
E_API Eina_List *e_client_focus_stack_get(void);
E_API Eina_List *e_client_raise_stack_get(void);
E_API Eina_List *e_client_lost_windows_get(E_Zone *zone);
E_API void e_client_shade(E_Client *ec, E_Direction dir);
E_API void e_client_unshade(E_Client *ec, E_Direction dir);
E_API void e_client_maximize(E_Client *ec, E_Maximize max);
E_API void e_client_unmaximize(E_Client *ec, E_Maximize max);
E_API void e_client_fullscreen(E_Client *ec, E_Fullscreen policy);
E_API void e_client_unfullscreen(E_Client *ec);
E_API void e_client_iconify(E_Client *ec);
E_API void e_client_uniconify(E_Client *ec);
E_API void e_client_urgent_set(E_Client *ec, Eina_Bool urgent);
E_API void e_client_stick(E_Client *ec);
E_API void e_client_unstick(E_Client *ec);
E_API void e_client_pinned_set(E_Client *ec, Eina_Bool set);
E_API void e_client_comp_hidden_set(E_Client *ec, Eina_Bool hidden);
E_API Eina_Bool e_client_border_set(E_Client *ec, const char *name);
E_API void e_client_act_move_keyboard(E_Client *ec);
E_API void e_client_act_resize_keyboard(E_Client *ec);
E_API void e_client_act_move_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev);
E_API void e_client_act_move_end(E_Client *ec, E_Binding_Event_Mouse_Button *ev EINA_UNUSED);
E_API void e_client_act_resize_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev);
E_API void e_client_act_resize_end(E_Client *ec, E_Binding_Event_Mouse_Button *ev EINA_UNUSED);
E_API void e_client_act_menu_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev, int key);
E_API void e_client_act_close_begin(E_Client *ec);
E_API void e_client_act_kill_begin(E_Client *ec);
E_API Evas_Object *e_client_icon_add(E_Client *ec, Evas *evas);
E_API void e_client_ping(E_Client *cw);
E_API void e_client_move_cancel(void);
E_API void e_client_resize_cancel(void);
E_API Eina_Bool e_client_resize_begin(E_Client *ec);
E_API void e_client_frame_recalc(E_Client *ec);
E_API void e_client_signal_move_begin(E_Client *ec, const char *sig, const char *src EINA_UNUSED);
E_API void e_client_signal_move_end(E_Client *ec, const char *sig EINA_UNUSED, const char *src EINA_UNUSED);
E_API void e_client_signal_resize_begin(E_Client *ec, const char *dir, const char *sig, const char *src EINA_UNUSED);
E_API void e_client_signal_resize_end(E_Client *ec, const char *dir EINA_UNUSED, const char *sig EINA_UNUSED, const char *src EINA_UNUSED);
E_API void e_client_resize_limit(E_Client *ec, int *w, int *h);
E_API E_Client *e_client_under_pointer_get(E_Desk *desk, E_Client *exclude);
E_API int e_client_pointer_warp_to_center_now(E_Client *ec);
E_API int e_client_pointer_warp_to_center(E_Client *ec);
E_API void e_client_redirected_set(E_Client *ec, Eina_Bool set);
E_API Eina_Bool e_client_is_stacking(const E_Client *ec);
E_API Eina_Bool e_client_desk_window_profile_available_check(E_Client *ec, const char *profile);
E_API void e_client_desk_window_profile_wait_desk_set(E_Client *ec, E_Desk *desk);
E_API void e_client_layout_cb_set(E_Client_Layout_Cb cb);
YOLO EAPI void e_client_focus_stack_set(Eina_List *l);
YOLO E_API void e_client_focus_stack_set(Eina_List *l);
#include "e_client.x"
#endif

View File

@ -25,8 +25,8 @@ struct _E_Color
int a;
};
EAPI void e_color_update_rgb (E_Color *ec);
EAPI void e_color_update_hsv (E_Color *ec);
EAPI void e_color_copy (const E_Color *from, E_Color *to);
E_API void e_color_update_rgb (E_Color *ec);
E_API void e_color_update_hsv (E_Color *ec);
E_API void e_color_copy (const E_Color *from, E_Color *to);
#endif
#endif

View File

@ -102,7 +102,7 @@ e_color_dialog_cancel_callback_set(E_Color_Dialog *dia, void (*func)(E_Color_Dia
dia->cancel_data = data;
}
EAPI void
E_API void
e_color_dialog_change_callback_set(E_Color_Dialog *dia, void (*func)(E_Color_Dialog *dia, E_Color *color, void *data), void *data)
{
dia->change_func = func;

View File

@ -24,14 +24,14 @@ struct _E_Color_Dialog
void *change_data;
};
EAPI E_Color_Dialog *e_color_dialog_new (const E_Color *initial_color, Eina_Bool alpha_enabled);
EAPI void e_color_dialog_show (E_Color_Dialog *dia);
EAPI void e_color_dialog_title_set (E_Color_Dialog *dia, const char *title);
E_API E_Color_Dialog *e_color_dialog_new (const E_Color *initial_color, Eina_Bool alpha_enabled);
E_API void e_color_dialog_show (E_Color_Dialog *dia);
E_API void e_color_dialog_title_set (E_Color_Dialog *dia, const char *title);
/* select and change pass the current color back, cancel passes the initial color */
EAPI void e_color_dialog_select_callback_set(E_Color_Dialog *dia, void (*func)(E_Color_Dialog *dia, E_Color *color, void *data), void *data);
EAPI void e_color_dialog_cancel_callback_set(E_Color_Dialog *dia, void (*func)(E_Color_Dialog *dia, E_Color *color, void *data), void *data);
EAPI void e_color_dialog_change_callback_set(E_Color_Dialog *dia, void (*func)(E_Color_Dialog *dia, E_Color *color, void *data), void *data);
E_API void e_color_dialog_select_callback_set(E_Color_Dialog *dia, void (*func)(E_Color_Dialog *dia, E_Color *color, void *data), void *data);
E_API void e_color_dialog_cancel_callback_set(E_Color_Dialog *dia, void (*func)(E_Color_Dialog *dia, E_Color *color, void *data), void *data);
E_API void e_color_dialog_change_callback_set(E_Color_Dialog *dia, void (*func)(E_Color_Dialog *dia, E_Color *color, void *data), void *data);
#endif
#endif

View File

@ -21,7 +21,7 @@
static Eina_List *handlers = NULL;
static Eina_List *hooks = NULL;
EAPI E_Comp *e_comp = NULL;
E_API E_Comp *e_comp = NULL;
static Eina_Hash *ignores = NULL;
static Eina_List *actions = NULL;
@ -36,9 +36,9 @@ static double ecore_frametime = 0;
static int _e_comp_log_dom = -1;
EAPI int E_EVENT_COMPOSITOR_RESIZE = -1;
EAPI int E_EVENT_COMPOSITOR_DISABLE = -1;
EAPI int E_EVENT_COMPOSITOR_ENABLE = -1;
E_API int E_EVENT_COMPOSITOR_RESIZE = -1;
E_API int E_EVENT_COMPOSITOR_DISABLE = -1;
E_API int E_EVENT_COMPOSITOR_ENABLE = -1;
//////////////////////////////////////////////////////////////////////////
#undef DBG
@ -1266,7 +1266,7 @@ e_comp_style_selector_create(Evas *evas, const char **source)
return oi;
}
EAPI E_Comp *
E_API E_Comp *
e_comp_new(void)
{
if (e_comp)
@ -1280,7 +1280,7 @@ e_comp_new(void)
return e_comp;
}
EAPI int
E_API int
e_comp_internal_save(void)
{
return e_config_domain_save("e_comp", conf_edd, conf);
@ -1318,7 +1318,7 @@ e_comp_shutdown(void)
return 1;
}
EAPI void
E_API void
e_comp_render_queue(void)
{
if (conf->lock_fps)
@ -1337,7 +1337,7 @@ e_comp_render_queue(void)
}
}
EAPI void
E_API void
e_comp_shape_queue(void)
{
if (e_comp->comp_type != E_PIXMAP_TYPE_X) return;
@ -1345,7 +1345,7 @@ e_comp_shape_queue(void)
e_comp->shape_job = ecore_job_add(_e_comp_shapes_update_job, NULL);
}
EAPI void
E_API void
e_comp_shape_queue_block(Eina_Bool block)
{
e_comp->shape_queue_blocked = !!block;
@ -1355,13 +1355,13 @@ e_comp_shape_queue_block(Eina_Bool block)
e_comp_shape_queue();
}
EAPI E_Comp_Config *
E_API E_Comp_Config *
e_comp_config_get(void)
{
return conf;
}
EAPI void
E_API void
e_comp_shadows_reset(void)
{
E_Client *ec;
@ -1372,7 +1372,7 @@ e_comp_shadows_reset(void)
e_comp_object_frame_theme_set(ec->frame, E_COMP_OBJECT_FRAME_RESHADOW);
}
EAPI Ecore_Window
E_API Ecore_Window
e_comp_top_window_at_xy_get(Evas_Coord x, Evas_Coord y)
{
E_Client *ec;
@ -1386,7 +1386,7 @@ e_comp_top_window_at_xy_get(Evas_Coord x, Evas_Coord y)
return e_comp->ee_win;
}
EAPI void
E_API void
e_comp_util_wins_print(void)
{
Evas_Object *o;
@ -1411,7 +1411,7 @@ e_comp_util_wins_print(void)
fputc('\n', stderr);
}
EAPI void
E_API void
e_comp_ignore_win_add(E_Pixmap_Type type, Ecore_Window win)
{
E_Client *ec;
@ -1423,7 +1423,7 @@ e_comp_ignore_win_add(E_Pixmap_Type type, Ecore_Window win)
if (ec->visible) evas_object_hide(ec->frame);
}
EAPI void
E_API void
e_comp_ignore_win_del(E_Pixmap_Type type, Ecore_Window win)
{
E_Client *ec;
@ -1435,13 +1435,13 @@ e_comp_ignore_win_del(E_Pixmap_Type type, Ecore_Window win)
if (ec->visible) evas_object_show(ec->frame);
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_ignore_win_find(Ecore_Window win)
{
return !!eina_hash_find(ignores, &win);
}
EAPI void
E_API void
e_comp_override_del()
{
e_comp->nocomp_override--;
@ -1452,7 +1452,7 @@ e_comp_override_del()
}
}
EAPI void
E_API void
e_comp_override_add()
{
e_comp->nocomp_override++;
@ -1461,7 +1461,7 @@ e_comp_override_add()
#if 0
FIXME
EAPI void
E_API void
e_comp_block_window_add(void)
{
e_comp->block_count++;
@ -1476,7 +1476,7 @@ e_comp_block_window_add(void)
ecore_x_window_show(e_comp->block_win);
}
EAPI void
E_API void
e_comp_block_window_del(void)
{
if (!e_comp->block_count) return;
@ -1487,14 +1487,14 @@ e_comp_block_window_del(void)
}
#endif
EAPI E_Comp *
E_API E_Comp *
e_comp_find_by_window(Ecore_Window win)
{
if ((e_comp->win == win) || (e_comp->ee_win == win) || (e_comp->root == win)) return e_comp;
return NULL;
}
EAPI void
E_API void
e_comp_override_timed_pop(void)
{
if (e_comp->nocomp_override <= 0) return;
@ -1504,7 +1504,7 @@ e_comp_override_timed_pop(void)
e_comp->nocomp_override_timer = ecore_timer_add(1.0, _e_comp_override_expire, NULL);
}
EAPI unsigned int
E_API unsigned int
e_comp_e_object_layer_get(const E_Object *obj)
{
E_Gadcon *gc = NULL;
@ -1538,7 +1538,7 @@ e_comp_e_object_layer_get(const E_Object *obj)
return 0;
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_grab_input(Eina_Bool mouse, Eina_Bool kbd)
{
Eina_Bool ret = EINA_FALSE;
@ -1561,7 +1561,7 @@ e_comp_grab_input(Eina_Bool mouse, Eina_Bool kbd)
return ret;
}
EAPI void
E_API void
e_comp_ungrab_input(Eina_Bool mouse, Eina_Bool kbd)
{
Ecore_Window mwin = 0, kwin = 0;
@ -1586,45 +1586,45 @@ e_comp_ungrab_input(Eina_Bool mouse, Eina_Bool kbd)
e_client_refocus();
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_util_kbd_grabbed(void)
{
return e_menu_grab_window_get() || e_client_action_get() || e_grabinput_key_win_get();
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_util_mouse_grabbed(void)
{
return e_menu_grab_window_get() || e_client_action_get() || e_grabinput_mouse_win_get();
}
EAPI void
E_API void
e_comp_gl_set(Eina_Bool set)
{
gl_avail = !!set;
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_gl_get(void)
{
return gl_avail;
}
EAPI void
E_API void
e_comp_button_bindings_ungrab_all(void)
{
if (e_comp->bindings_ungrab_cb)
e_comp->bindings_ungrab_cb();
}
EAPI void
E_API void
e_comp_button_bindings_grab_all(void)
{
if (e_comp->bindings_grab_cb)
e_comp->bindings_grab_cb();
}
EAPI void
E_API void
e_comp_client_redirect_toggle(E_Client *ec)
{
EINA_SAFETY_ON_NULL_RETURN(ec);
@ -1636,7 +1636,7 @@ e_comp_client_redirect_toggle(E_Client *ec)
e_comp_shape_queue();
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_util_object_is_above_nocomp(Evas_Object *obj)
{
Evas_Object *o;

View File

@ -52,8 +52,8 @@ typedef enum _E_Layer
# include "e_comp_cfdata.h"
extern EAPI int E_EVENT_COMPOSITOR_DISABLE;
extern EAPI int E_EVENT_COMPOSITOR_ENABLE;
extern E_API int E_EVENT_COMPOSITOR_DISABLE;
extern E_API int E_EVENT_COMPOSITOR_ENABLE;
typedef void (*E_Comp_Grab_Cb)(void);
@ -172,47 +172,47 @@ typedef enum
E_COMP_ENGINE_GL = 2
} E_Comp_Engine;
extern EAPI E_Comp *e_comp;
extern E_API E_Comp *e_comp;
EINTERN Eina_Bool e_comp_init(void);
EAPI E_Comp *e_comp_new(void);
EAPI int e_comp_internal_save(void);
E_API E_Comp *e_comp_new(void);
E_API int e_comp_internal_save(void);
EINTERN int e_comp_shutdown(void);
EAPI void e_comp_render_queue(void);
EAPI void e_comp_shape_queue(void);
EAPI void e_comp_shape_queue_block(Eina_Bool block);
EAPI E_Comp_Config *e_comp_config_get(void);
EAPI const Eina_List *e_comp_list(void);
EAPI void e_comp_shadows_reset(void);
EAPI Ecore_Window e_comp_top_window_at_xy_get(Evas_Coord x, Evas_Coord y);
EAPI void e_comp_util_wins_print(void);
EAPI void e_comp_ignore_win_add(E_Pixmap_Type type, Ecore_Window win);
EAPI void e_comp_ignore_win_del(E_Pixmap_Type type, Ecore_Window win);
EAPI Eina_Bool e_comp_ignore_win_find(Ecore_Window win);
EAPI void e_comp_override_del(void);
EAPI void e_comp_override_add(void);
EAPI void e_comp_block_window_add(void);
EAPI void e_comp_block_window_del(void);
EAPI E_Comp *e_comp_find_by_window(Ecore_Window win);
EAPI void e_comp_override_timed_pop(void);
EAPI unsigned int e_comp_e_object_layer_get(const E_Object *obj);
EAPI Eina_Bool e_comp_grab_input(Eina_Bool mouse, Eina_Bool kbd);
EAPI void e_comp_ungrab_input(Eina_Bool mouse, Eina_Bool kbd);
EAPI void e_comp_gl_set(Eina_Bool set);
EAPI Eina_Bool e_comp_gl_get(void);
E_API void e_comp_render_queue(void);
E_API void e_comp_shape_queue(void);
E_API void e_comp_shape_queue_block(Eina_Bool block);
E_API E_Comp_Config *e_comp_config_get(void);
E_API const Eina_List *e_comp_list(void);
E_API void e_comp_shadows_reset(void);
E_API Ecore_Window e_comp_top_window_at_xy_get(Evas_Coord x, Evas_Coord y);
E_API void e_comp_util_wins_print(void);
E_API void e_comp_ignore_win_add(E_Pixmap_Type type, Ecore_Window win);
E_API void e_comp_ignore_win_del(E_Pixmap_Type type, Ecore_Window win);
E_API Eina_Bool e_comp_ignore_win_find(Ecore_Window win);
E_API void e_comp_override_del(void);
E_API void e_comp_override_add(void);
E_API void e_comp_block_window_add(void);
E_API void e_comp_block_window_del(void);
E_API E_Comp *e_comp_find_by_window(Ecore_Window win);
E_API void e_comp_override_timed_pop(void);
E_API unsigned int e_comp_e_object_layer_get(const E_Object *obj);
E_API Eina_Bool e_comp_grab_input(Eina_Bool mouse, Eina_Bool kbd);
E_API void e_comp_ungrab_input(Eina_Bool mouse, Eina_Bool kbd);
E_API void e_comp_gl_set(Eina_Bool set);
E_API Eina_Bool e_comp_gl_get(void);
EAPI void e_comp_button_bindings_grab_all(void);
EAPI void e_comp_button_bindings_ungrab_all(void);
EAPI void e_comp_client_redirect_toggle(E_Client *ec);
EAPI Eina_Bool e_comp_util_object_is_above_nocomp(Evas_Object *obj);
E_API void e_comp_button_bindings_grab_all(void);
E_API void e_comp_button_bindings_ungrab_all(void);
E_API void e_comp_client_redirect_toggle(E_Client *ec);
E_API Eina_Bool e_comp_util_object_is_above_nocomp(Evas_Object *obj);
EINTERN Evas_Object *e_comp_style_selector_create(Evas *evas, const char **source);
EAPI E_Config_Dialog *e_int_config_comp(Evas_Object *parent, const char *params);
EAPI E_Config_Dialog *e_int_config_comp_match(Evas_Object *parent, const char *params);
E_API E_Config_Dialog *e_int_config_comp(Evas_Object *parent, const char *params);
E_API E_Config_Dialog *e_int_config_comp_match(Evas_Object *parent, const char *params);
EAPI Eina_Bool e_comp_util_kbd_grabbed(void);
EAPI Eina_Bool e_comp_util_mouse_grabbed(void);
E_API Eina_Bool e_comp_util_kbd_grabbed(void);
E_API Eina_Bool e_comp_util_mouse_grabbed(void);
static inline Eina_Bool
e_comp_util_client_is_fullscreen(const E_Client *ec)

View File

@ -178,7 +178,7 @@ _e_comp_canvas_cb_zone_sort(const void *data1, const void *data2)
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_canvas_init(int w, int h)
{
Evas_Object *o;
@ -252,7 +252,7 @@ e_comp_canvas_clear(void)
//////////////////////////////////////////////
EAPI void
E_API void
e_comp_canvas_resize(int w, int h)
{
e_comp->w = w;
@ -260,19 +260,19 @@ e_comp_canvas_resize(int w, int h)
ecore_evas_resize(e_comp->ee, w, h);
}
EAPI void
E_API void
e_comp_all_freeze(void)
{
evas_event_freeze(e_comp->evas);
}
EAPI void
E_API void
e_comp_all_thaw(void)
{
evas_event_thaw(e_comp->evas);
}
EAPI E_Zone *
E_API E_Zone *
e_comp_zone_xy_get(Evas_Coord x, Evas_Coord y)
{
const Eina_List *l;
@ -283,7 +283,7 @@ e_comp_zone_xy_get(Evas_Coord x, Evas_Coord y)
return NULL;
}
EAPI E_Zone *
E_API E_Zone *
e_comp_zone_number_get(int num)
{
Eina_List *l = NULL;
@ -296,7 +296,7 @@ e_comp_zone_number_get(int num)
return NULL;
}
EAPI E_Zone *
E_API E_Zone *
e_comp_zone_id_get(int id)
{
Eina_List *l = NULL;
@ -309,7 +309,7 @@ e_comp_zone_id_get(int id)
return NULL;
}
EAPI E_Desk *
E_API E_Desk *
e_comp_desk_window_profile_get(const char *profile)
{
Eina_List *l = NULL;
@ -338,7 +338,7 @@ e_comp_desk_window_profile_get(const char *profile)
return NULL;
}
EAPI void
E_API void
e_comp_canvas_zone_update(E_Zone *zone)
{
Evas_Object *o;
@ -389,7 +389,7 @@ e_comp_canvas_zone_update(E_Zone *zone)
evas_object_show(o);
}
EAPI void
E_API void
e_comp_canvas_update(void)
{
Eina_List *l, *screens, *zones = NULL, *ll;
@ -528,7 +528,7 @@ e_comp_canvas_update(void)
}
}
EAPI void
E_API void
e_comp_canvas_fake_layers_init(void)
{
unsigned int layer;
@ -544,7 +544,7 @@ e_comp_canvas_fake_layers_init(void)
}
}
EAPI void
E_API void
e_comp_canvas_fps_toggle(void)
{
E_Comp_Config *conf = e_comp_config_get();
@ -554,7 +554,7 @@ e_comp_canvas_fps_toggle(void)
e_comp_render_queue();
}
EAPI E_Layer
E_API E_Layer
e_comp_canvas_layer_map_to(unsigned int layer)
{
switch (layer)
@ -583,7 +583,7 @@ e_comp_canvas_layer_map_to(unsigned int layer)
return -INT_MAX;
}
EAPI unsigned int
E_API unsigned int
e_comp_canvas_layer_map(E_Layer layer)
{
switch (layer)
@ -612,7 +612,7 @@ e_comp_canvas_layer_map(E_Layer layer)
return 9999;
}
EAPI unsigned int
E_API unsigned int
e_comp_canvas_client_layer_map(E_Layer layer)
{
switch (layer)
@ -633,7 +633,7 @@ e_comp_canvas_client_layer_map(E_Layer layer)
return 9999;
}
EAPI E_Layer
E_API E_Layer
e_comp_canvas_client_layer_map_nearest(int layer)
{
#define LAYER_MAP(X) \
@ -652,14 +652,14 @@ e_comp_canvas_client_layer_map_nearest(int layer)
return E_LAYER_CLIENT_PRIO;
}
EAPI void
E_API void
e_comp_canvas_keys_grab(void)
{
if (e_comp->root)
e_bindings_key_grab(E_BINDING_CONTEXT_ANY, e_comp->root);
}
EAPI void
E_API void
e_comp_canvas_keys_ungrab(void)
{
if (e_comp->root)

View File

@ -6,27 +6,27 @@
#ifndef E_COMP_CANVAS_H
#define E_COMP_CANVAS_H
extern EAPI int E_EVENT_COMPOSITOR_RESIZE;
extern E_API int E_EVENT_COMPOSITOR_RESIZE;
EAPI Eina_Bool e_comp_canvas_init(int w, int h);
E_API Eina_Bool e_comp_canvas_init(int w, int h);
EINTERN void e_comp_canvas_clear(void);
EAPI void e_comp_canvas_resize(int w, int h);
EAPI void e_comp_all_freeze(void);
EAPI void e_comp_all_thaw(void);
EAPI E_Zone * e_comp_zone_xy_get(Evas_Coord x, Evas_Coord y);
EAPI E_Zone * e_comp_zone_number_get(int num);
EAPI E_Zone * e_comp_zone_id_get(int id);
EAPI E_Desk * e_comp_desk_window_profile_get(const char *profile);
EAPI void e_comp_canvas_zone_update(E_Zone *zone);
EAPI void e_comp_canvas_update(void);
EAPI void e_comp_canvas_fake_layers_init(void);
EAPI void e_comp_canvas_fps_toggle(void);
EAPI E_Layer e_comp_canvas_layer_map_to(unsigned int layer);
EAPI unsigned int e_comp_canvas_layer_map(E_Layer layer);
EAPI unsigned int e_comp_canvas_client_layer_map(E_Layer layer);
EAPI E_Layer e_comp_canvas_client_layer_map_nearest(int layer);
EAPI void e_comp_canvas_keys_grab(void);
EAPI void e_comp_canvas_keys_ungrab(void);
E_API void e_comp_canvas_resize(int w, int h);
E_API void e_comp_all_freeze(void);
E_API void e_comp_all_thaw(void);
E_API E_Zone * e_comp_zone_xy_get(Evas_Coord x, Evas_Coord y);
E_API E_Zone * e_comp_zone_number_get(int num);
E_API E_Zone * e_comp_zone_id_get(int id);
E_API E_Desk * e_comp_desk_window_profile_get(const char *profile);
E_API void e_comp_canvas_zone_update(E_Zone *zone);
E_API void e_comp_canvas_update(void);
E_API void e_comp_canvas_fake_layers_init(void);
E_API void e_comp_canvas_fps_toggle(void);
E_API E_Layer e_comp_canvas_layer_map_to(unsigned int layer);
E_API unsigned int e_comp_canvas_layer_map(E_Layer layer);
E_API unsigned int e_comp_canvas_client_layer_map(E_Layer layer);
E_API E_Layer e_comp_canvas_client_layer_map_nearest(int layer);
E_API void e_comp_canvas_keys_grab(void);
E_API void e_comp_canvas_keys_ungrab(void);
/* the following functions are used for adjusting root window coordinates
* to/from canvas coordinates.

View File

@ -1,7 +1,7 @@
#include "e.h"
#include "e_comp_cfdata.h"
EAPI void
E_API void
e_comp_cfdata_edd_init(E_Config_DD **conf_edd, E_Config_DD **match_edd)
{
*match_edd = E_CONFIG_DD_NEW("Comp_Match", E_Comp_Match);
@ -70,7 +70,7 @@ e_comp_cfdata_edd_init(E_Config_DD **conf_edd, E_Config_DD **match_edd)
E_CONFIG_LIST(D, T, match.objects, *match_edd);
}
EAPI E_Comp_Config *
E_API E_Comp_Config *
e_comp_cfdata_config_new(void)
{
E_Comp_Config *cfg;
@ -195,7 +195,7 @@ e_comp_cfdata_config_new(void)
return cfg;
}
EAPI void
E_API void
e_comp_cfdata_match_free(E_Comp_Match *m)
{
if (!m) return;
@ -207,7 +207,7 @@ e_comp_cfdata_match_free(E_Comp_Match *m)
free(m);
}
EAPI void
E_API void
e_comp_cfdata_config_free(E_Comp_Config *cfg)
{
if (!cfg) return;

View File

@ -76,10 +76,10 @@ struct _E_Comp_Match
char no_shadow; // set whether shadow is disabled
};
EAPI void e_comp_cfdata_edd_init(E_Config_DD **conf_edd, E_Config_DD **match_edd);
EAPI E_Comp_Config *e_comp_cfdata_config_new(void);
EAPI void e_comp_cfdata_config_free(E_Comp_Config *cfg);
EAPI void e_comp_cfdata_match_free(E_Comp_Match *m);
E_API void e_comp_cfdata_edd_init(E_Config_DD **conf_edd, E_Config_DD **match_edd);
E_API E_Comp_Config *e_comp_cfdata_config_new(void);
E_API void e_comp_cfdata_config_free(E_Comp_Config *cfg);
E_API void e_comp_cfdata_match_free(E_Comp_Match *m);
#endif
#endif

View File

@ -137,7 +137,7 @@ static Evas_Smart *_e_comp_smart = NULL;
EINTERN void e_client_focused_set(E_Client *ec);
/* emitted every time a new noteworthy comp object is added */
EAPI int E_EVENT_COMP_OBJECT_ADD = -1;
E_API int E_EVENT_COMP_OBJECT_ADD = -1;
static void
_e_comp_object_event_free(void *d EINA_UNUSED, void *event)
@ -2163,7 +2163,7 @@ _e_comp_smart_init(void)
}
}
EAPI void
E_API void
e_comp_object_zoomap_set(Evas_Object *obj, Eina_Bool enabled)
{
API_ENTRY;
@ -2308,7 +2308,7 @@ _e_comp_object_util_moveresize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj
e_comp_shape_queue();
}
EAPI Evas_Object *
E_API Evas_Object *
e_comp_object_util_add(Evas_Object *obj, E_Comp_Object_Type type)
{
Evas_Object *o, *z = NULL;
@ -2442,7 +2442,7 @@ e_comp_object_util_add(Evas_Object *obj, E_Comp_Object_Type type)
}
/* utility functions for deleting objects when their "owner" is deleted */
EAPI void
E_API void
e_comp_object_util_del_list_append(Evas_Object *obj, Evas_Object *to_del)
{
Eina_List *l;
@ -2455,7 +2455,7 @@ e_comp_object_util_del_list_append(Evas_Object *obj, Evas_Object *to_del)
evas_object_event_callback_add(obj, EVAS_CALLBACK_DEL, _e_comp_object_util_del, NULL);
}
EAPI void
E_API void
e_comp_object_util_del_list_remove(Evas_Object *obj, Evas_Object *to_del)
{
Eina_List *l;
@ -2469,7 +2469,7 @@ e_comp_object_util_del_list_remove(Evas_Object *obj, Evas_Object *to_del)
/////////////////////////////////////////////////////////
EAPI Evas_Object *
E_API Evas_Object *
e_comp_object_client_add(E_Client *ec)
{
Evas_Object *o;
@ -2492,7 +2492,7 @@ e_comp_object_client_add(E_Client *ec)
}
/* utility functions for getting client inset */
EAPI void
E_API void
e_comp_object_frame_xy_adjust(Evas_Object *obj, int x, int y, int *ax, int *ay)
{
API_ENTRY;
@ -2506,7 +2506,7 @@ e_comp_object_frame_xy_adjust(Evas_Object *obj, int x, int y, int *ax, int *ay)
if (ay) *ay = y - cw->client_inset.t;
}
EAPI void
E_API void
e_comp_object_frame_xy_unadjust(Evas_Object *obj, int x, int y, int *ax, int *ay)
{
API_ENTRY;
@ -2520,7 +2520,7 @@ e_comp_object_frame_xy_unadjust(Evas_Object *obj, int x, int y, int *ax, int *ay
if (ay) *ay = y + cw->client_inset.t;
}
EAPI void
E_API void
e_comp_object_frame_wh_adjust(Evas_Object *obj, int w, int h, int *aw, int *ah)
{
API_ENTRY;
@ -2534,7 +2534,7 @@ e_comp_object_frame_wh_adjust(Evas_Object *obj, int w, int h, int *aw, int *ah)
if (ah) *ah = h + cw->client_inset.t + cw->client_inset.b;
}
EAPI void
E_API void
e_comp_object_frame_wh_unadjust(Evas_Object *obj, int w, int h, int *aw, int *ah)
{
API_ENTRY;
@ -2548,7 +2548,7 @@ e_comp_object_frame_wh_unadjust(Evas_Object *obj, int w, int h, int *aw, int *ah
if (ah) *ah = h - cw->client_inset.t - cw->client_inset.b;
}
EAPI E_Client *
E_API E_Client *
e_comp_object_client_get(Evas_Object *obj)
{
Evas_Object *o;
@ -2561,7 +2561,7 @@ e_comp_object_client_get(Evas_Object *obj)
return cw ? cw->ec : NULL;
}
EAPI void
E_API void
e_comp_object_frame_extends_get(Evas_Object *obj, int *x, int *y, int *w, int *h)
{
API_ENTRY;
@ -2576,7 +2576,7 @@ e_comp_object_frame_extends_get(Evas_Object *obj, int *x, int *y, int *w, int *h
}
}
EAPI E_Zone *
E_API E_Zone *
e_comp_object_util_zone_get(Evas_Object *obj)
{
E_Zone *zone;
@ -2596,7 +2596,7 @@ e_comp_object_util_zone_get(Evas_Object *obj)
return zone;
}
EAPI void
E_API void
e_comp_object_util_center(Evas_Object *obj)
{
int x, y, w, h, ow, oh;
@ -2616,7 +2616,7 @@ e_comp_object_util_center(Evas_Object *obj)
evas_object_move(obj, x, y);
}
EAPI void
E_API void
e_comp_object_util_center_on(Evas_Object *obj, Evas_Object *on)
{
int x, y, w, h, ow, oh;
@ -2631,7 +2631,7 @@ e_comp_object_util_center_on(Evas_Object *obj, Evas_Object *on)
evas_object_move(obj, x + (w / 2) - (ow / 2), y + (h / 2) - (oh / 2));
}
EAPI void
E_API void
e_comp_object_util_fullscreen(Evas_Object *obj)
{
SOFT_ENTRY();
@ -2645,7 +2645,7 @@ e_comp_object_util_fullscreen(Evas_Object *obj)
}
}
EAPI void
E_API void
e_comp_object_util_center_pos_get(Evas_Object *obj, int *x, int *y)
{
E_Zone *zone;
@ -2663,7 +2663,7 @@ e_comp_object_util_center_pos_get(Evas_Object *obj, int *x, int *y)
if (y) *y = zy + (zh - oh) / 2;
}
EAPI void
E_API void
e_comp_object_input_area_set(Evas_Object *obj, int x, int y, int w, int h)
{
API_ENTRY;
@ -2697,7 +2697,7 @@ e_comp_object_input_area_set(Evas_Object *obj, int x, int y, int w, int h)
}
}
EAPI void
E_API void
e_comp_object_frame_geometry_get(Evas_Object *obj, int *l, int *r, int *t, int *b)
{
API_ENTRY;
@ -2707,7 +2707,7 @@ e_comp_object_frame_geometry_get(Evas_Object *obj, int *l, int *r, int *t, int *
if (b) *b = cw->client_inset.b;
}
EAPI void
E_API void
e_comp_object_frame_icon_geometry_get(Evas_Object *obj, int *x, int *y, int *w, int *h)
{
API_ENTRY;
@ -2720,7 +2720,7 @@ e_comp_object_frame_icon_geometry_get(Evas_Object *obj, int *x, int *y, int *w,
evas_object_geometry_get(cw->frame_icon, x, y, w, h);
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_object_frame_title_set(Evas_Object *obj, const char *name)
{
API_ENTRY EINA_FALSE;
@ -2731,14 +2731,14 @@ e_comp_object_frame_title_set(Evas_Object *obj, const char *name)
return EINA_TRUE;
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_object_frame_exists(Evas_Object *obj)
{
API_ENTRY EINA_FALSE;
return !!cw->frame_object;
}
EAPI void
E_API void
e_comp_object_frame_icon_update(Evas_Object *obj)
{
API_ENTRY;
@ -2752,7 +2752,7 @@ e_comp_object_frame_icon_update(Evas_Object *obj)
E_FREE_FUNC(cw->frame_icon, evas_object_del);
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_object_frame_theme_set(Evas_Object *obj, const char *name)
{
Evas_Object *o, *pbg;
@ -2896,7 +2896,7 @@ reshadow:
return EINA_TRUE;
}
EAPI void
E_API void
e_comp_object_signal_emit(Evas_Object *obj, const char *sig, const char *src)
{
E_Comp_Object_Mover *prov;
@ -2918,7 +2918,7 @@ e_comp_object_signal_emit(Evas_Object *obj, const char *sig, const char *src)
}
}
EAPI void
E_API void
e_comp_object_signal_callback_add(Evas_Object *obj, const char *sig, const char *src, Edje_Signal_Cb cb, const void *data)
{
/* FIXME: at some point I guess this should use eo to inherit
@ -2929,21 +2929,21 @@ e_comp_object_signal_callback_add(Evas_Object *obj, const char *sig, const char
edje_object_signal_callback_add(cw->shobj, sig, src, cb, (void*)data);
}
EAPI void
E_API void
e_comp_object_signal_callback_del(Evas_Object *obj, const char *sig, const char *src, Edje_Signal_Cb cb)
{
API_ENTRY;
edje_object_signal_callback_del(cw->shobj, sig, src, cb);
}
EAPI void
E_API void
e_comp_object_signal_callback_del_full(Evas_Object *obj, const char *sig, const char *src, Edje_Signal_Cb cb, const void *data)
{
API_ENTRY;
edje_object_signal_callback_del_full(cw->shobj, sig, src, cb, (void*)data);
}
EAPI void
E_API void
e_comp_object_damage(Evas_Object *obj, int x, int y, int w, int h)
{
int tw, th;
@ -3003,14 +3003,14 @@ e_comp_object_damage(Evas_Object *obj, int x, int y, int w, int h)
e_comp_object_render_update_add(obj);
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_object_damage_exists(Evas_Object *obj)
{
API_ENTRY EINA_FALSE;
return cw->updates_exist;
}
EAPI void
E_API void
e_comp_object_render_update_add(Evas_Object *obj)
{
API_ENTRY;
@ -3029,7 +3029,7 @@ e_comp_object_render_update_add(Evas_Object *obj)
e_comp_render_queue();
}
EAPI void
E_API void
e_comp_object_render_update_del(Evas_Object *obj)
{
API_ENTRY;
@ -3048,7 +3048,7 @@ e_comp_object_render_update_del(Evas_Object *obj)
}
}
EAPI void
E_API void
e_comp_object_shape_apply(Evas_Object *obj)
{
Eina_List *l;
@ -3152,7 +3152,7 @@ e_comp_object_shape_apply(Evas_Object *obj)
}
/* helper function to simplify toggling of redirection for display servers which support it */
EAPI void
E_API void
e_comp_object_redirected_set(Evas_Object *obj, Eina_Bool set)
{
API_ENTRY;
@ -3190,7 +3190,7 @@ e_comp_object_redirected_set(Evas_Object *obj, Eina_Bool set)
}
}
EAPI void
E_API void
e_comp_object_native_surface_set(Evas_Object *obj, Eina_Bool set)
{
Evas_Native_Surface ns;
@ -3217,7 +3217,7 @@ e_comp_object_native_surface_set(Evas_Object *obj, Eina_Bool set)
}
/* mark an object as dirty and setup damages */
EAPI void
E_API void
e_comp_object_dirty(Evas_Object *obj)
{
Eina_Iterator *it;
@ -3303,7 +3303,7 @@ e_comp_object_dirty(Evas_Object *obj)
e_comp_object_render(obj);
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_object_render(Evas_Object *obj)
{
Eina_Iterator *it;
@ -3405,7 +3405,7 @@ e_comp_object_render(Evas_Object *obj)
}
/* create a duplicate of an evas object */
EAPI Evas_Object *
E_API Evas_Object *
e_comp_object_util_mirror_add(Evas_Object *obj)
{
Evas_Object *o;
@ -3476,7 +3476,7 @@ e_comp_object_util_mirror_add(Evas_Object *obj)
//////////////////////////////////////////////////////
/* setup an api effect for a client */
EAPI void
E_API void
e_comp_object_effect_set(Evas_Object *obj, const char *effect)
{
char buf[4096];
@ -3505,7 +3505,7 @@ e_comp_object_effect_set(Evas_Object *obj, const char *effect)
}
/* set params for embryo scripts in effect */
EAPI void
E_API void
e_comp_object_effect_params_set(Evas_Object *obj, int id, int *params, unsigned int count)
{
Edje_Message_Int_Set *msg;
@ -3547,7 +3547,7 @@ _e_comp_object_effect_end_cb(void *data, Evas_Object *obj, const char *emission,
}
/* clip effect to client's zone */
EAPI void
E_API void
e_comp_object_effect_clip(Evas_Object *obj)
{
API_ENTRY;
@ -3559,7 +3559,7 @@ e_comp_object_effect_clip(Evas_Object *obj)
}
/* unclip effect from client's zone */
EAPI void
E_API void
e_comp_object_effect_unclip(Evas_Object *obj)
{
API_ENTRY;
@ -3569,7 +3569,7 @@ e_comp_object_effect_unclip(Evas_Object *obj)
}
/* start effect, running end_cb after */
EAPI void
E_API void
e_comp_object_effect_start(Evas_Object *obj, Edje_Signal_Cb end_cb, const void *end_data)
{
API_ENTRY;
@ -3589,7 +3589,7 @@ e_comp_object_effect_start(Evas_Object *obj, Edje_Signal_Cb end_cb, const void *
}
/* stop a currently-running effect immediately */
EAPI void
E_API void
e_comp_object_effect_stop(Evas_Object *obj, Edje_Signal_Cb end_cb)
{
API_ENTRY;
@ -3617,7 +3617,7 @@ _e_comp_object_effect_mover_sort_cb(E_Comp_Object_Mover *a, E_Comp_Object_Mover
}
/* add a function to trigger based on signal emissions for the purpose of modifying effects */
EAPI E_Comp_Object_Mover *
E_API E_Comp_Object_Mover *
e_comp_object_effect_mover_add(int pri, const char *sig, E_Comp_Object_Mover_Cb provider, const void *data)
{
E_Comp_Object_Mover *prov;
@ -3633,7 +3633,7 @@ e_comp_object_effect_mover_add(int pri, const char *sig, E_Comp_Object_Mover_Cb
return prov;
}
EAPI void
E_API void
e_comp_object_effect_mover_del(E_Comp_Object_Mover *prov)
{
EINA_SAFETY_ON_NULL_RETURN(prov);
@ -3723,7 +3723,7 @@ _e_comp_object_autoclose_del(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_O
e_client_refocus();
}
EAPI void
E_API void
e_comp_object_util_autoclose(Evas_Object *obj, E_Comp_Object_Autoclose_Cb del_cb, E_Comp_Object_Key_Cb cb, const void *data)
{
SOFT_ENTRY();

View File

@ -33,54 +33,54 @@ struct E_Comp_Object_Frame
};
extern EAPI int E_EVENT_COMP_OBJECT_ADD;
extern E_API int E_EVENT_COMP_OBJECT_ADD;
EAPI void e_comp_object_zoomap_set(Evas_Object *obj, Eina_Bool enabled);
EAPI Evas_Object *e_comp_object_client_add(E_Client *ec);
EAPI Evas_Object *e_comp_object_util_mirror_add(Evas_Object *obj);
EAPI Evas_Object *e_comp_object_util_add(Evas_Object *obj, E_Comp_Object_Type type);
EAPI void e_comp_object_frame_xy_adjust(Evas_Object *obj, int x, int y, int *ax, int *ay);
EAPI void e_comp_object_frame_xy_unadjust(Evas_Object *obj, int x, int y, int *ax, int *ay);
EAPI void e_comp_object_frame_wh_adjust(Evas_Object *obj, int w, int h, int *aw, int *ah);
EAPI void e_comp_object_frame_wh_unadjust(Evas_Object *obj, int w, int h, int *aw, int *ah);
EAPI void e_comp_object_frame_extends_get(Evas_Object *obj, int *x, int *y, int *w, int *h);
EAPI E_Client *e_comp_object_client_get(Evas_Object *obj);
EAPI E_Zone *e_comp_object_util_zone_get(Evas_Object *obj);
EAPI void e_comp_object_util_del_list_append(Evas_Object *obj, Evas_Object *to_del);
EAPI void e_comp_object_util_del_list_remove(Evas_Object *obj, Evas_Object *to_del);
EAPI void e_comp_object_util_autoclose(Evas_Object *obj, E_Comp_Object_Autoclose_Cb del_cb, E_Comp_Object_Key_Cb cb, const void *data);
EAPI void e_comp_object_util_center(Evas_Object *obj);
EAPI void e_comp_object_util_center_on(Evas_Object *obj, Evas_Object *on);
EAPI void e_comp_object_util_center_pos_get(Evas_Object *obj, int *x, int *y);
EAPI void e_comp_object_util_fullscreen(Evas_Object *obj);
EAPI void e_comp_object_frame_geometry_get(Evas_Object *obj, int *l, int *r, int *t, int *b);
EAPI void e_comp_object_frame_icon_geometry_get(Evas_Object *obj, int *x, int *y, int *w, int *h);
EAPI Eina_Bool e_comp_object_frame_title_set(Evas_Object *obj, const char *name);
EAPI Eina_Bool e_comp_object_frame_exists(Evas_Object *obj);
EAPI void e_comp_object_frame_icon_update(Evas_Object *obj);
EAPI Eina_Bool e_comp_object_frame_theme_set(Evas_Object *obj, const char *name);
EAPI void e_comp_object_signal_emit(Evas_Object *obj, const char *sig, const char *src);
EAPI void e_comp_object_signal_callback_add(Evas_Object *obj, const char *sig, const char *src, Edje_Signal_Cb cb, const void *data);
EAPI void e_comp_object_signal_callback_del(Evas_Object *obj, const char *sig, const char *src, Edje_Signal_Cb cb);
EAPI void e_comp_object_signal_callback_del_full(Evas_Object *obj, const char *sig, const char *src, Edje_Signal_Cb cb, const void *data);
EAPI void e_comp_object_input_area_set(Evas_Object *obj, int x, int y, int w, int h);
EAPI void e_comp_object_damage(Evas_Object *obj, int x, int y, int w, int h);
EAPI Eina_Bool e_comp_object_damage_exists(Evas_Object *obj);
EAPI void e_comp_object_render_update_add(Evas_Object *obj);
EAPI void e_comp_object_render_update_del(Evas_Object *obj);
EAPI void e_comp_object_shape_apply(Evas_Object *obj);
EAPI void e_comp_object_redirected_set(Evas_Object *obj, Eina_Bool set);
EAPI void e_comp_object_native_surface_set(Evas_Object *obj, Eina_Bool set);
EAPI void e_comp_object_dirty(Evas_Object *obj);
EAPI Eina_Bool e_comp_object_render(Evas_Object *obj);
EAPI void e_comp_object_effect_set(Evas_Object *obj, const char *effect);
EAPI void e_comp_object_effect_params_set(Evas_Object *obj, int id, int *params, unsigned int count);
EAPI void e_comp_object_effect_clip(Evas_Object *obj);
EAPI void e_comp_object_effect_unclip(Evas_Object *obj);
EAPI void e_comp_object_effect_start(Evas_Object *obj, Edje_Signal_Cb end_cb, const void *end_data);
EAPI void e_comp_object_effect_stop(Evas_Object *obj, Edje_Signal_Cb end_cb);
EAPI E_Comp_Object_Mover *e_comp_object_effect_mover_add(int pri, const char *sig, E_Comp_Object_Mover_Cb provider, const void *data);
EAPI void e_comp_object_effect_mover_del(E_Comp_Object_Mover *prov);
E_API void e_comp_object_zoomap_set(Evas_Object *obj, Eina_Bool enabled);
E_API Evas_Object *e_comp_object_client_add(E_Client *ec);
E_API Evas_Object *e_comp_object_util_mirror_add(Evas_Object *obj);
E_API Evas_Object *e_comp_object_util_add(Evas_Object *obj, E_Comp_Object_Type type);
E_API void e_comp_object_frame_xy_adjust(Evas_Object *obj, int x, int y, int *ax, int *ay);
E_API void e_comp_object_frame_xy_unadjust(Evas_Object *obj, int x, int y, int *ax, int *ay);
E_API void e_comp_object_frame_wh_adjust(Evas_Object *obj, int w, int h, int *aw, int *ah);
E_API void e_comp_object_frame_wh_unadjust(Evas_Object *obj, int w, int h, int *aw, int *ah);
E_API void e_comp_object_frame_extends_get(Evas_Object *obj, int *x, int *y, int *w, int *h);
E_API E_Client *e_comp_object_client_get(Evas_Object *obj);
E_API E_Zone *e_comp_object_util_zone_get(Evas_Object *obj);
E_API void e_comp_object_util_del_list_append(Evas_Object *obj, Evas_Object *to_del);
E_API void e_comp_object_util_del_list_remove(Evas_Object *obj, Evas_Object *to_del);
E_API void e_comp_object_util_autoclose(Evas_Object *obj, E_Comp_Object_Autoclose_Cb del_cb, E_Comp_Object_Key_Cb cb, const void *data);
E_API void e_comp_object_util_center(Evas_Object *obj);
E_API void e_comp_object_util_center_on(Evas_Object *obj, Evas_Object *on);
E_API void e_comp_object_util_center_pos_get(Evas_Object *obj, int *x, int *y);
E_API void e_comp_object_util_fullscreen(Evas_Object *obj);
E_API void e_comp_object_frame_geometry_get(Evas_Object *obj, int *l, int *r, int *t, int *b);
E_API void e_comp_object_frame_icon_geometry_get(Evas_Object *obj, int *x, int *y, int *w, int *h);
E_API Eina_Bool e_comp_object_frame_title_set(Evas_Object *obj, const char *name);
E_API Eina_Bool e_comp_object_frame_exists(Evas_Object *obj);
E_API void e_comp_object_frame_icon_update(Evas_Object *obj);
E_API Eina_Bool e_comp_object_frame_theme_set(Evas_Object *obj, const char *name);
E_API void e_comp_object_signal_emit(Evas_Object *obj, const char *sig, const char *src);
E_API void e_comp_object_signal_callback_add(Evas_Object *obj, const char *sig, const char *src, Edje_Signal_Cb cb, const void *data);
E_API void e_comp_object_signal_callback_del(Evas_Object *obj, const char *sig, const char *src, Edje_Signal_Cb cb);
E_API void e_comp_object_signal_callback_del_full(Evas_Object *obj, const char *sig, const char *src, Edje_Signal_Cb cb, const void *data);
E_API void e_comp_object_input_area_set(Evas_Object *obj, int x, int y, int w, int h);
E_API void e_comp_object_damage(Evas_Object *obj, int x, int y, int w, int h);
E_API Eina_Bool e_comp_object_damage_exists(Evas_Object *obj);
E_API void e_comp_object_render_update_add(Evas_Object *obj);
E_API void e_comp_object_render_update_del(Evas_Object *obj);
E_API void e_comp_object_shape_apply(Evas_Object *obj);
E_API void e_comp_object_redirected_set(Evas_Object *obj, Eina_Bool set);
E_API void e_comp_object_native_surface_set(Evas_Object *obj, Eina_Bool set);
E_API void e_comp_object_dirty(Evas_Object *obj);
E_API Eina_Bool e_comp_object_render(Evas_Object *obj);
E_API void e_comp_object_effect_set(Evas_Object *obj, const char *effect);
E_API void e_comp_object_effect_params_set(Evas_Object *obj, int id, int *params, unsigned int count);
E_API void e_comp_object_effect_clip(Evas_Object *obj);
E_API void e_comp_object_effect_unclip(Evas_Object *obj);
E_API void e_comp_object_effect_start(Evas_Object *obj, Edje_Signal_Cb end_cb, const void *end_data);
E_API void e_comp_object_effect_stop(Evas_Object *obj, Edje_Signal_Cb end_cb);
E_API E_Comp_Object_Mover *e_comp_object_effect_mover_add(int pri, const char *sig, E_Comp_Object_Mover_Cb provider, const void *data);
E_API void e_comp_object_effect_mover_del(E_Comp_Object_Mover *prov);
#endif
#endif

View File

@ -2468,7 +2468,7 @@ disp_err:
*
* @returns true on success, false if initialization failed.
*/
EAPI Eina_Bool
E_API Eina_Bool
e_comp_wl_init(void)
{
/* set gl available if we have ecore_evas support */
@ -2544,7 +2544,7 @@ e_comp_wl_init(void)
*
* @returns the corresponding Wayland signal
*/
EAPI struct wl_signal
E_API struct wl_signal
e_comp_wl_surface_create_signal_get(void)
{
return e_comp->wl_comp_data->signals.surface.create;
@ -2697,7 +2697,7 @@ e_comp_wl_buffer_reference(E_Comp_Wl_Buffer_Ref *ref, E_Comp_Wl_Buffer *buffer)
* @param resource that owns the desired buffer
* @returns a new E_Comp_Wl_Buffer object
*/
EAPI E_Comp_Wl_Buffer *
E_API E_Comp_Wl_Buffer *
e_comp_wl_buffer_get(struct wl_resource *resource)
{
E_Comp_Wl_Buffer *buffer;
@ -2728,7 +2728,7 @@ e_comp_wl_buffer_get(struct wl_resource *resource)
*
* @returns time in seconds.
*/
EAPI double
E_API double
e_comp_wl_idle_time_get(void)
{
return (ecore_loop_time_get() - _last_event_time);
@ -2770,7 +2770,7 @@ _e_comp_wl_output_get(Eina_List *outputs, const char *id)
*
* @returns True if a display output object could be added or updated
*/
EAPI Eina_Bool
E_API Eina_Bool
e_comp_wl_output_init(const char *id, const char *make, const char *model,
int x, int y, int w, int h, int pw, int ph,
unsigned int refresh, unsigned int subpixel,

View File

@ -277,7 +277,7 @@ struct _E_Comp_Wl_Output
double scale;
};
EAPI Eina_Bool e_comp_wl_init(void);
E_API Eina_Bool e_comp_wl_init(void);
EINTERN void e_comp_wl_shutdown(void);
EINTERN struct wl_resource *e_comp_wl_surface_create(struct wl_client *client, int version, uint32_t id);
@ -286,11 +286,11 @@ EINTERN void e_comp_wl_surface_attach(E_Client *ec, E_Comp_Wl_Buffer *buffer);
EINTERN Eina_Bool e_comp_wl_surface_commit(E_Client *ec);
EINTERN Eina_Bool e_comp_wl_subsurface_commit(E_Client *ec);
EINTERN void e_comp_wl_buffer_reference(E_Comp_Wl_Buffer_Ref *ref, E_Comp_Wl_Buffer *buffer);
EAPI E_Comp_Wl_Buffer *e_comp_wl_buffer_get(struct wl_resource *resource);
E_API E_Comp_Wl_Buffer *e_comp_wl_buffer_get(struct wl_resource *resource);
EAPI struct wl_signal e_comp_wl_surface_create_signal_get(void);
EAPI double e_comp_wl_idle_time_get(void);
EAPI Eina_Bool e_comp_wl_output_init(const char *id, const char *make, const char *model, int x, int y, int w, int h, int pw, int ph, unsigned int refresh, unsigned int subpixel, unsigned int transform);
E_API struct wl_signal e_comp_wl_surface_create_signal_get(void);
E_API double e_comp_wl_idle_time_get(void);
E_API Eina_Bool e_comp_wl_output_init(const char *id, const char *make, const char *model, int x, int y, int w, int h, int pw, int ph, unsigned int refresh, unsigned int subpixel, unsigned int transform);
# endif
#endif

View File

@ -524,7 +524,7 @@ e_comp_wl_input_keyboard_state_update(E_Comp_Data *cdata, uint32_t keycode, Eina
xkb_state_update_key(cdata->xkb.state, keycode + 8, dir);
}
EAPI void
E_API void
e_comp_wl_input_pointer_enabled_set(E_Comp_Data *cdata, Eina_Bool enabled)
{
/* check for valid compositor data */
@ -538,7 +538,7 @@ e_comp_wl_input_pointer_enabled_set(E_Comp_Data *cdata, Eina_Bool enabled)
_e_comp_wl_input_update_seat_caps(cdata);
}
EAPI void
E_API void
e_comp_wl_input_keyboard_enabled_set(E_Comp_Data *cdata, Eina_Bool enabled)
{
/* check for valid compositor data */
@ -552,7 +552,7 @@ e_comp_wl_input_keyboard_enabled_set(E_Comp_Data *cdata, Eina_Bool enabled)
_e_comp_wl_input_update_seat_caps(cdata);
}
EAPI void
E_API void
e_comp_wl_input_keymap_set(E_Comp_Data *cdata, const char *rules, const char *model, const char *layout)
{
struct xkb_keymap *keymap;

View File

@ -13,10 +13,10 @@ EINTERN void e_comp_wl_input_keyboard_modifiers_update(E_Comp_Data *cdata);
EINTERN void e_comp_wl_input_keyboard_state_update(E_Comp_Data *cdata, uint32_t keycode, Eina_Bool pressed);
EINTERN void e_comp_wl_input_keyboard_enter_send(E_Client *client);
EAPI void e_comp_wl_input_pointer_enabled_set(E_Comp_Data *cdata, Eina_Bool enabled);
EAPI void e_comp_wl_input_keyboard_enabled_set(E_Comp_Data *cdata, Eina_Bool enabled);
E_API void e_comp_wl_input_pointer_enabled_set(E_Comp_Data *cdata, Eina_Bool enabled);
E_API void e_comp_wl_input_keyboard_enabled_set(E_Comp_Data *cdata, Eina_Bool enabled);
EAPI void e_comp_wl_input_keymap_set(E_Comp_Data *cdata, const char *rules, const char *model, const char *layout);
E_API void e_comp_wl_input_keymap_set(E_Comp_Data *cdata, const char *rules, const char *model, const char *layout);
# endif
#endif

View File

@ -108,7 +108,7 @@ struct _E_Comp_X_Client_Data
EINTERN Eina_Bool e_comp_x_init(void);
EINTERN void e_comp_x_shutdown(void);
EAPI void e_alert_composite_win(Ecore_X_Window root, Ecore_X_Window win);
E_API void e_alert_composite_win(Ecore_X_Window root, Ecore_X_Window win);
EINTERN void e_comp_x_nocomp_end(void);
# endif
#endif

View File

@ -412,7 +412,7 @@ _mode_screen_find(Ecore_X_Window root, E_Randr2_Screen *s, Ecore_X_Randr_Output
return mode;
}
EAPI void
E_API void
e_comp_x_randr_init(void)
{
// add handler for randr screen change events
@ -430,7 +430,7 @@ e_comp_x_randr_init(void)
}
}
EAPI void
E_API void
e_comp_x_randr_shutdown(void)
{
// clear up event listening
@ -442,7 +442,7 @@ e_comp_x_randr_shutdown(void)
E_FREE_LIST(handlers, ecore_event_handler_del);
}
EAPI void
E_API void
e_comp_x_randr_config_apply(void)
{
Eina_List *l;
@ -622,14 +622,14 @@ e_comp_x_randr_config_apply(void)
// event_ignore = EINA_TRUE;
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_x_randr_available(void)
{
// is randr extn there?
return ecore_x_randr_query();
}
EAPI E_Randr2 *
E_API E_Randr2 *
e_comp_x_randr_create(void)
{
Ecore_X_Randr_Crtc *crtcs = NULL;
@ -826,7 +826,7 @@ e_comp_x_randr_create(void)
return r;
}
EAPI void
E_API void
e_comp_x_randr_screen_iface_set(void)
{
if (e_comp->screen)
@ -834,7 +834,7 @@ e_comp_x_randr_screen_iface_set(void)
e_comp->screen = &xiface;
}
EAPI Eina_Bool
E_API Eina_Bool
e_comp_x_randr_canvas_new(Ecore_Window parent, int w, int h)
{
Eina_Bool ret = EINA_TRUE;

View File

@ -1,12 +1,12 @@
#ifndef E_COMP_X_RANDR_H
# define E_COMP_X_RANDR_H
EAPI void e_comp_x_randr_init(void);
EAPI void e_comp_x_randr_shutdown(void);
EAPI void e_comp_x_randr_config_apply(void);
EAPI Eina_Bool e_comp_x_randr_available(void);
EAPI E_Randr2 *e_comp_x_randr_create(void);
E_API void e_comp_x_randr_init(void);
E_API void e_comp_x_randr_shutdown(void);
E_API void e_comp_x_randr_config_apply(void);
E_API Eina_Bool e_comp_x_randr_available(void);
E_API E_Randr2 *e_comp_x_randr_create(void);
EAPI void e_comp_x_randr_screen_iface_set(void);
EAPI Eina_Bool e_comp_x_randr_canvas_new(Ecore_Window parent, int w, int h);
E_API void e_comp_x_randr_screen_iface_set(void);
E_API Eina_Bool e_comp_x_randr_canvas_new(Ecore_Window parent, int w, int h);
#endif

View File

@ -6,8 +6,8 @@
#define DEF_MENUCLICK 0.25
#endif
EAPI E_Config *e_config = NULL;
EAPI E_Config_Bindings *e_bindings = NULL;
E_API E_Config *e_config = NULL;
E_API E_Config_Bindings *e_bindings = NULL;
static int _e_config_revisions = 9;
@ -51,9 +51,9 @@ static E_Config_DD *_e_config_env_var_edd = NULL;
static E_Config_DD *_e_config_xkb_layout_edd = NULL;
static E_Config_DD *_e_config_xkb_option_edd = NULL;
EAPI int E_EVENT_CONFIG_ICON_THEME = 0;
EAPI int E_EVENT_CONFIG_MODE_CHANGED = 0;
EAPI int E_EVENT_CONFIG_LOADED = 0;
E_API int E_EVENT_CONFIG_ICON_THEME = 0;
E_API int E_EVENT_CONFIG_MODE_CHANGED = 0;
E_API int E_EVENT_CONFIG_LOADED = 0;
static E_Dialog *_e_config_error_dialog = NULL;
@ -952,7 +952,7 @@ e_config_shutdown(void)
return 1;
}
EAPI void
E_API void
e_config_load(void)
{
int reload = 0;
@ -1523,7 +1523,7 @@ e_config_load(void)
ecore_event_add(E_EVENT_CONFIG_LOADED, NULL, NULL, NULL);
}
EAPI int
E_API int
e_config_save(void)
{
E_FREE_FUNC(_e_config_save_defer, e_powersave_deferred_action_del);
@ -1531,7 +1531,7 @@ e_config_save(void)
return e_config_domain_save("e", _e_config_edd, e_config);
}
EAPI void
E_API void
e_config_save_flush(void)
{
if (_e_config_save_defer)
@ -1542,7 +1542,7 @@ e_config_save_flush(void)
}
}
EAPI void
E_API void
e_config_save_queue(void)
{
if (_e_config_save_defer)
@ -1551,20 +1551,20 @@ e_config_save_queue(void)
NULL);
}
EAPI const char *
E_API const char *
e_config_profile_get(void)
{
return _e_config_profile;
}
EAPI void
E_API void
e_config_profile_set(const char *prof)
{
eina_stringshare_replace(&_e_config_profile, prof);
e_util_env_set("E_CONF_PROFILE", _e_config_profile);
}
EAPI char *
E_API char *
e_config_profile_dir_get(const char *prof)
{
char buf[PATH_MAX];
@ -1582,7 +1582,7 @@ _cb_sort_files(char *f1, char *f2)
return strcmp(f1, f2);
}
EAPI Eina_List *
E_API Eina_List *
e_config_profile_list(void)
{
Eina_List *files;
@ -1658,7 +1658,7 @@ e_config_profile_list(void)
return flist;
}
EAPI void
E_API void
e_config_profile_add(const char *prof)
{
char buf[4096];
@ -1667,7 +1667,7 @@ e_config_profile_add(const char *prof)
ecore_file_mkdir(buf);
}
EAPI void
E_API void
e_config_profile_del(const char *prof)
{
char buf[4096];
@ -1676,13 +1676,13 @@ e_config_profile_del(const char *prof)
ecore_file_recursive_rm(buf);
}
EAPI void
E_API void
e_config_save_block_set(int block)
{
_e_config_save_block = block;
}
EAPI int
E_API int
e_config_save_block_get(void)
{
return _e_config_save_block;
@ -1697,7 +1697,7 @@ e_config_save_block_get(void)
* @param edd to struct definition
* @return returns allocated struct on success, if unable to find config returns null
*/
EAPI void *
E_API void *
e_config_domain_load(const char *domain, E_Config_DD *edd)
{
Eet_File *ef;
@ -1730,7 +1730,7 @@ e_config_domain_load(const char *domain, E_Config_DD *edd)
return e_config_domain_system_load(domain, edd);
}
EAPI void *
E_API void *
e_config_domain_system_load(const char *domain, E_Config_DD *edd)
{
Eet_File *ef;
@ -1783,7 +1783,7 @@ _e_config_mv_error(const char *from, const char *to)
_e_config_error_dialog = dia;
}
EAPI int
E_API int
e_config_profile_save(void)
{
Eet_File *ef;
@ -1850,7 +1850,7 @@ e_config_profile_save(void)
* @param data struct to save as configuration file
* @return 1 if save success, 0 on failure
*/
EAPI int
E_API int
e_config_domain_save(const char *domain, E_Config_DD *edd, const void *data)
{
Eet_File *ef;
@ -1914,7 +1914,7 @@ e_config_domain_save(const char *domain, E_Config_DD *edd, const void *data)
return ok;
}
EAPI E_Config_Binding_Mouse *
E_API E_Config_Binding_Mouse *
e_config_binding_mouse_match(E_Config_Binding_Mouse *eb_in)
{
Eina_List *l;
@ -1935,7 +1935,7 @@ e_config_binding_mouse_match(E_Config_Binding_Mouse *eb_in)
return NULL;
}
EAPI E_Config_Binding_Key *
E_API E_Config_Binding_Key *
e_config_binding_key_match(E_Config_Binding_Key *eb_in)
{
Eina_List *l;
@ -1957,7 +1957,7 @@ e_config_binding_key_match(E_Config_Binding_Key *eb_in)
return NULL;
}
EAPI E_Config_Binding_Edge *
E_API E_Config_Binding_Edge *
e_config_binding_edge_match(E_Config_Binding_Edge *eb_in)
{
Eina_List *l;
@ -1980,7 +1980,7 @@ e_config_binding_edge_match(E_Config_Binding_Edge *eb_in)
return NULL;
}
EAPI E_Config_Binding_Signal *
E_API E_Config_Binding_Signal *
e_config_binding_signal_match(E_Config_Binding_Signal *eb_in)
{
Eina_List *l;
@ -2004,7 +2004,7 @@ e_config_binding_signal_match(E_Config_Binding_Signal *eb_in)
return NULL;
}
EAPI E_Config_Binding_Wheel *
E_API E_Config_Binding_Wheel *
e_config_binding_wheel_match(E_Config_Binding_Wheel *eb_in)
{
Eina_List *l;
@ -2026,7 +2026,7 @@ e_config_binding_wheel_match(E_Config_Binding_Wheel *eb_in)
return NULL;
}
EAPI E_Config_Binding_Acpi *
E_API E_Config_Binding_Acpi *
e_config_binding_acpi_match(E_Config_Binding_Acpi *eb_in)
{
Eina_List *l;
@ -2048,13 +2048,13 @@ e_config_binding_acpi_match(E_Config_Binding_Acpi *eb_in)
return NULL;
}
EAPI void
E_API void
e_config_mode_changed(void)
{
ecore_event_add(E_EVENT_CONFIG_MODE_CHANGED, NULL, NULL, NULL);
}
EAPI void
E_API void
e_config_binding_acpi_free(E_Config_Binding_Acpi *eba)
{
if (!eba) return;
@ -2063,7 +2063,7 @@ e_config_binding_acpi_free(E_Config_Binding_Acpi *eba)
free(eba);
}
EAPI void
E_API void
e_config_binding_key_free(E_Config_Binding_Key *ebk)
{
if (!ebk) return;
@ -2073,7 +2073,7 @@ e_config_binding_key_free(E_Config_Binding_Key *ebk)
free(ebk);
}
EAPI void
E_API void
e_config_binding_edge_free(E_Config_Binding_Edge *ebe)
{
if (!ebe) return;
@ -2082,7 +2082,7 @@ e_config_binding_edge_free(E_Config_Binding_Edge *ebe)
free(ebe);
}
EAPI void
E_API void
e_config_binding_mouse_free(E_Config_Binding_Mouse *ebm)
{
if (!ebm) return;
@ -2091,7 +2091,7 @@ e_config_binding_mouse_free(E_Config_Binding_Mouse *ebm)
free(ebm);
}
EAPI void
E_API void
e_config_binding_wheel_free(E_Config_Binding_Wheel *ebw)
{
if (!ebw) return;
@ -2100,7 +2100,7 @@ e_config_binding_wheel_free(E_Config_Binding_Wheel *ebw)
free(ebw);
}
EAPI void
E_API void
e_config_binding_signal_free(E_Config_Binding_Signal *ebs)
{
if (!ebs) return;
@ -2111,7 +2111,7 @@ e_config_binding_signal_free(E_Config_Binding_Signal *ebs)
free(ebs);
}
EAPI void
E_API void
e_config_bindings_free(E_Config_Bindings *ecb)
{
if (!ecb) return;

View File

@ -644,50 +644,50 @@ struct _E_Config_XKB_Option
EINTERN int e_config_init(void);
EINTERN int e_config_shutdown(void);
EAPI void e_config_load(void);
E_API void e_config_load(void);
EAPI int e_config_save(void);
EAPI void e_config_save_flush(void);
EAPI void e_config_save_queue(void);
E_API int e_config_save(void);
E_API void e_config_save_flush(void);
E_API void e_config_save_queue(void);
EAPI const char *e_config_profile_get(void);
EAPI char *e_config_profile_dir_get(const char *prof);
EAPI void e_config_profile_set(const char *prof);
EAPI Eina_List *e_config_profile_list(void);
EAPI void e_config_profile_add(const char *prof);
EAPI void e_config_profile_del(const char *prof);
E_API const char *e_config_profile_get(void);
E_API char *e_config_profile_dir_get(const char *prof);
E_API void e_config_profile_set(const char *prof);
E_API Eina_List *e_config_profile_list(void);
E_API void e_config_profile_add(const char *prof);
E_API void e_config_profile_del(const char *prof);
EAPI void e_config_save_block_set(int block);
EAPI int e_config_save_block_get(void);
E_API void e_config_save_block_set(int block);
E_API int e_config_save_block_get(void);
EAPI void *e_config_domain_load(const char *domain, E_Config_DD *edd);
EAPI void *e_config_domain_system_load(const char *domain, E_Config_DD *edd);
EAPI int e_config_profile_save(void);
EAPI int e_config_domain_save(const char *domain, E_Config_DD *edd, const void *data);
E_API void *e_config_domain_load(const char *domain, E_Config_DD *edd);
E_API void *e_config_domain_system_load(const char *domain, E_Config_DD *edd);
E_API int e_config_profile_save(void);
E_API int e_config_domain_save(const char *domain, E_Config_DD *edd, const void *data);
EAPI E_Config_Binding_Mouse *e_config_binding_mouse_match(E_Config_Binding_Mouse *eb_in);
EAPI E_Config_Binding_Key *e_config_binding_key_match(E_Config_Binding_Key *eb_in);
EAPI E_Config_Binding_Edge *e_config_binding_edge_match(E_Config_Binding_Edge *eb_in);
EAPI E_Config_Binding_Signal *e_config_binding_signal_match(E_Config_Binding_Signal *eb_in);
EAPI E_Config_Binding_Wheel *e_config_binding_wheel_match(E_Config_Binding_Wheel *eb_in);
EAPI E_Config_Binding_Acpi *e_config_binding_acpi_match(E_Config_Binding_Acpi *eb_in);
EAPI void e_config_mode_changed(void);
E_API E_Config_Binding_Mouse *e_config_binding_mouse_match(E_Config_Binding_Mouse *eb_in);
E_API E_Config_Binding_Key *e_config_binding_key_match(E_Config_Binding_Key *eb_in);
E_API E_Config_Binding_Edge *e_config_binding_edge_match(E_Config_Binding_Edge *eb_in);
E_API E_Config_Binding_Signal *e_config_binding_signal_match(E_Config_Binding_Signal *eb_in);
E_API E_Config_Binding_Wheel *e_config_binding_wheel_match(E_Config_Binding_Wheel *eb_in);
E_API E_Config_Binding_Acpi *e_config_binding_acpi_match(E_Config_Binding_Acpi *eb_in);
E_API void e_config_mode_changed(void);
EAPI void e_config_bindings_free(E_Config_Bindings *ecb);
EAPI void e_config_binding_signal_free(E_Config_Binding_Signal *ebs);
EAPI void e_config_binding_wheel_free(E_Config_Binding_Wheel *ebw);
EAPI void e_config_binding_mouse_free(E_Config_Binding_Mouse *ebm);
EAPI void e_config_binding_edge_free(E_Config_Binding_Edge *ebe);
EAPI void e_config_binding_key_free(E_Config_Binding_Key *ebk);
EAPI void e_config_binding_acpi_free(E_Config_Binding_Acpi *eba);
E_API void e_config_bindings_free(E_Config_Bindings *ecb);
E_API void e_config_binding_signal_free(E_Config_Binding_Signal *ebs);
E_API void e_config_binding_wheel_free(E_Config_Binding_Wheel *ebw);
E_API void e_config_binding_mouse_free(E_Config_Binding_Mouse *ebm);
E_API void e_config_binding_edge_free(E_Config_Binding_Edge *ebe);
E_API void e_config_binding_key_free(E_Config_Binding_Key *ebk);
E_API void e_config_binding_acpi_free(E_Config_Binding_Acpi *eba);
extern EAPI E_Config *e_config;
extern EAPI E_Config_Bindings *e_bindings;
extern E_API E_Config *e_config;
extern E_API E_Config_Bindings *e_bindings;
extern EAPI int E_EVENT_CONFIG_ICON_THEME;
extern EAPI int E_EVENT_CONFIG_MODE_CHANGED;
extern EAPI int E_EVENT_CONFIG_LOADED;
extern E_API int E_EVENT_CONFIG_ICON_THEME;
extern E_API int E_EVENT_CONFIG_MODE_CHANGED;
extern E_API int E_EVENT_CONFIG_LOADED;
#endif
#endif

View File

@ -2,14 +2,14 @@
static Eina_Hash *config_hash = NULL;
EAPI void
E_API void
e_config_descriptor_free(E_Config_DD *edd)
{
eina_hash_del_by_key(config_hash, eet_data_descriptor_name_get((Eet_Data_Descriptor*)edd));
eet_data_descriptor_free((Eet_Data_Descriptor*)edd);
}
EAPI E_Config_DD *
E_API E_Config_DD *
e_config_descriptor_new(const char *name, int size)
{
Eet_Data_Descriptor_Class eddc;
@ -29,7 +29,7 @@ e_config_descriptor_new(const char *name, int size)
return edd;
}
EAPI E_Config_DD *
E_API E_Config_DD *
e_config_descriptor_find(const char *name)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(name, NULL);

View File

@ -55,9 +55,9 @@ typedef Eet_Data_Descriptor E_Config_DD;
#ifndef E_CONFIG_DATA_H
#define E_CONFIG_DATA_H
EAPI E_Config_DD *e_config_descriptor_new(const char *name, int size);
EAPI void e_config_descriptor_free(E_Config_DD *edd);
EAPI E_Config_DD *e_config_descriptor_find(const char *name);
E_API E_Config_DD *e_config_descriptor_new(const char *name, int size);
E_API void e_config_descriptor_free(E_Config_DD *edd);
E_API E_Config_DD *e_config_descriptor_find(const char *name);
#endif
#endif

View File

@ -31,7 +31,7 @@ static Eina_List *_e_config_dialog_list = NULL;
* @param data additional data to attach to the dialog, will be passed to the callbacks
* @return returns the created dialog. Null on failure
*/
EAPI E_Config_Dialog *
E_API E_Config_Dialog *
e_config_dialog_new(Evas_Object *parent, const char *title, const char *name, const char *class, const char *icon, int icon_size, E_Config_Dialog_View *view, void *data)
{
E_Config_Dialog *cfd;
@ -92,7 +92,7 @@ e_config_dialog_new(Evas_Object *parent, const char *title, const char *name, co
return cfd;
}
EAPI int
E_API int
e_config_dialog_find(const char *name, const char *class)
{
Eina_List *l;
@ -122,7 +122,7 @@ e_config_dialog_find(const char *name, const char *class)
return 0;
}
EAPI E_Config_Dialog *
E_API E_Config_Dialog *
e_config_dialog_get(const char *name, const char *class)
{
Eina_List *l;
@ -483,14 +483,14 @@ _e_config_dialog_cb_close(void *data EINA_UNUSED, E_Dialog *dia)
if (ok) e_util_defer_object_del(E_OBJECT(cfd));
}
EAPI void
E_API void
e_config_dialog_changed_auto_set(E_Config_Dialog *cfd, unsigned char value)
{
if (!cfd) return;
cfd->cfg_changed_auto = !!value;
}
EAPI void
E_API void
e_config_dialog_changed_set(E_Config_Dialog *cfd, unsigned char value)
{
if (!cfd) return;

View File

@ -55,12 +55,12 @@ struct _E_Config_Dialog
unsigned char cfg_changed_auto : 1;
};
EAPI E_Config_Dialog *e_config_dialog_new(Evas_Object *parent, const char *title, const char *name, const char *class, const char *icon, int icon_size, E_Config_Dialog_View *view, void *data);
EAPI int e_config_dialog_find(const char *name, const char *class);
EAPI E_Config_Dialog *e_config_dialog_get(const char *name, const char *class);
E_API E_Config_Dialog *e_config_dialog_new(Evas_Object *parent, const char *title, const char *name, const char *class, const char *icon, int icon_size, E_Config_Dialog_View *view, void *data);
E_API int e_config_dialog_find(const char *name, const char *class);
E_API E_Config_Dialog *e_config_dialog_get(const char *name, const char *class);
EAPI void e_config_dialog_changed_auto_set(E_Config_Dialog *cfd, unsigned char value);
EAPI void e_config_dialog_changed_set(E_Config_Dialog *cfd, unsigned char value);
E_API void e_config_dialog_changed_auto_set(E_Config_Dialog *cfd, unsigned char value);
E_API void e_config_dialog_changed_set(E_Config_Dialog *cfd, unsigned char value);
#endif
#endif

View File

@ -11,7 +11,7 @@ static void _e_configure_registry_item_free(E_Configure_It *eci);
static void _configure_job(void *data);
static Eina_Bool _configure_init_timer(void *data);
EAPI Eina_List *e_configure_registry = NULL;
E_API Eina_List *e_configure_registry = NULL;
static Eina_List *handlers = NULL;
static E_Int_Menu_Augmentation *maug = NULL;
@ -46,7 +46,7 @@ e_configure_init(void)
ecore_timer_add(0.0, _configure_init_timer, NULL);
}
EAPI void
E_API void
e_configure_registry_call(const char *path, Evas_Object *parent, const char *params)
{
E_Configure_Cat *ecat;
@ -88,19 +88,19 @@ e_configure_registry_call(const char *path, Evas_Object *parent, const char *par
free(cat);
}
EAPI void
E_API void
e_configure_registry_item_add(const char *path, int pri, const char *label, const char *icon_file, const char *icon, E_Config_Dialog *(*func)(Evas_Object *parent, const char *params))
{
_e_configure_registry_item_full_add(path, pri, label, icon_file, icon, func, NULL, NULL, NULL);
}
EAPI void
E_API void
e_configure_registry_generic_item_add(const char *path, int pri, const char *label, const char *icon_file, const char *icon, void (*generic_func)(Evas_Object *parent, const char *params))
{
_e_configure_registry_item_full_add(path, pri, label, icon_file, icon, NULL, generic_func, NULL, NULL);
}
EAPI void
E_API void
e_configure_registry_item_params_add(const char *path, int pri, const char *label, const char *icon_file, const char *icon, E_Config_Dialog *(*func)(Evas_Object *parent, const char *params), const char *params)
{
_e_configure_registry_item_full_add(path, pri, label, icon_file, icon, func, NULL, NULL, params);
@ -111,7 +111,7 @@ e_configure_registry_item_params_add(const char *path, int pri, const char *labe
*
*@param path location the item to delete
*/
EAPI void
E_API void
e_configure_registry_item_del(const char *path)
{
E_Configure_Cat *ecat;
@ -161,7 +161,7 @@ _E_configure_category_pri_cb(E_Configure_Cat *ecat, E_Configure_Cat *ecat2)
return ecat->pri - ecat2->pri;
}
EAPI void
E_API void
e_configure_registry_category_add(const char *path, int pri, const char *label, const char *icon_file, const char *icon)
{
E_Configure_Cat *ecat2;
@ -190,7 +190,7 @@ e_configure_registry_category_add(const char *path, int pri, const char *label,
*
*@param path location the category to delete
*/
EAPI void
E_API void
e_configure_registry_category_del(const char *path)
{
E_Configure_Cat *ecat;
@ -226,14 +226,14 @@ e_configure_registry_category_del(const char *path)
*@param func the callback to use when the configuration item is clicked
*/
EAPI void
E_API void
e_configure_registry_custom_desktop_exec_callback_set(void (*func)(const void *data, const char *params, Efreet_Desktop *desktop), const void *data)
{
custom_desktop_exec.func = func;
custom_desktop_exec.data = data;
}
EAPI int
E_API int
e_configure_registry_exists(const char *path)
{
E_Configure_Cat *ecat;

View File

@ -30,18 +30,18 @@ struct _E_Configure_It
Efreet_Desktop *desktop;
};
EAPI void e_configure_registry_item_add(const char *path, int pri, const char *label, const char *icon_file, const char *icon, E_Config_Dialog *(*func) (Evas_Object *parent, const char *params));
EAPI void e_configure_registry_item_params_add(const char *path, int pri, const char *label, const char *icon_file, const char *icon, E_Config_Dialog *(*func) (Evas_Object *parent, const char *params), const char *params);
EAPI void e_configure_registry_generic_item_add(const char *path, int pri, const char *label, const char *icon_file, const char *icon, void (*generic_func) (Evas_Object *parent, const char *params));
EAPI void e_configure_registry_item_del(const char *path);
EAPI void e_configure_registry_category_add(const char *path, int pri, const char *label, const char *icon_file, const char *icon);
EAPI void e_configure_registry_category_del(const char *path);
EAPI void e_configure_registry_call(const char *path, Evas_Object *parent, const char *params);
EAPI int e_configure_registry_exists(const char *path);
EAPI void e_configure_registry_custom_desktop_exec_callback_set(void (*func) (const void *data, const char *params, Efreet_Desktop *desktop), const void *data);
E_API void e_configure_registry_item_add(const char *path, int pri, const char *label, const char *icon_file, const char *icon, E_Config_Dialog *(*func) (Evas_Object *parent, const char *params));
E_API void e_configure_registry_item_params_add(const char *path, int pri, const char *label, const char *icon_file, const char *icon, E_Config_Dialog *(*func) (Evas_Object *parent, const char *params), const char *params);
E_API void e_configure_registry_generic_item_add(const char *path, int pri, const char *label, const char *icon_file, const char *icon, void (*generic_func) (Evas_Object *parent, const char *params));
E_API void e_configure_registry_item_del(const char *path);
E_API void e_configure_registry_category_add(const char *path, int pri, const char *label, const char *icon_file, const char *icon);
E_API void e_configure_registry_category_del(const char *path);
E_API void e_configure_registry_call(const char *path, Evas_Object *parent, const char *params);
E_API int e_configure_registry_exists(const char *path);
E_API void e_configure_registry_custom_desktop_exec_callback_set(void (*func) (const void *data, const char *params, Efreet_Desktop *desktop), const void *data);
EINTERN void e_configure_init(void);
extern EAPI Eina_List *e_configure_registry;
extern E_API Eina_List *e_configure_registry;
#endif
#endif

View File

@ -15,7 +15,7 @@ _dia_del(void *data)
}
/********** externally accesible functions ****************/
EAPI E_Confirm_Dialog *
E_API E_Confirm_Dialog *
e_confirm_dialog_show(const char *title, const char *icon, const char *text,
const char *button_text, const char *button2_text,
void (*func)(void *data), void (*func2)(void *data),

View File

@ -45,7 +45,7 @@ struct _E_Confirm_Dialog
* del_func - the function to call before dialog is deleted
* del_data - the pointer passer to del_func
*/
EAPI E_Confirm_Dialog *e_confirm_dialog_show(const char *title, const char *icon, const char *text, const char *button_text, const char *button2_text, void (*func)(void *data), void (*func2)(void *data), void *data, void *data2, void (*del_func)(void *data), void *del_data);
E_API E_Confirm_Dialog *e_confirm_dialog_show(const char *title, const char *icon, const char *text, const char *button_text, const char *button2_text, void (*func)(void *data), void (*func2)(void *data), void *data, void *data2, void (*del_func)(void *data), void *del_data);
#endif
#endif

View File

@ -6,7 +6,7 @@
static Eina_Hash *store = NULL;
/* externally accessible functions */
EAPI void
E_API void
e_datastore_set(char *key, void *data)
{
if (!store) store = eina_hash_string_superfast_new(NULL);
@ -14,13 +14,13 @@ e_datastore_set(char *key, void *data)
eina_hash_add(store, key, data);
}
EAPI void *
E_API void *
e_datastore_get(char *key)
{
return eina_hash_find(store, key);
}
EAPI void
E_API void
e_datastore_del(char *key)
{
eina_hash_del(store, key, NULL);

View File

@ -4,9 +4,9 @@
#ifndef E_DATASTORE_H
#define E_DATASTORE_H
EAPI void e_datastore_set(char *key, void *data);
EAPI void *e_datastore_get(char *key);
EAPI void e_datastore_del(char *key);
E_API void e_datastore_set(char *key, void *data);
E_API void *e_datastore_get(char *key);
E_API void e_datastore_del(char *key);
#endif
#endif

View File

@ -337,7 +337,7 @@ layout_updated_cb(void *data, const Eldbus_Message *msg EINA_UNUSED)
layout_update(ctx);
}
EAPI E_DBusMenu_Ctx *
E_API E_DBusMenu_Ctx *
e_dbusmenu_load(Eldbus_Connection *conn, const char *bus, const char *path, const void *data)
{
Eldbus_Object *obj;
@ -371,7 +371,7 @@ e_dbusmenu_load(Eldbus_Connection *conn, const char *bus, const char *path, cons
return ctx;
}
EAPI void
E_API void
e_dbusmenu_event_send(E_DBusMenu_Item *m, E_DBusMenu_Item_Event event)
{
Eldbus_Message *msg;
@ -397,7 +397,7 @@ e_dbusmenu_event_send(E_DBusMenu_Item *m, E_DBusMenu_Item_Event event)
eldbus_proxy_send(m->ctx->proxy, msg, NULL, NULL, -1);
}
EAPI void
E_API void
e_dbusmenu_unload(E_DBusMenu_Ctx *ctx)
{
Eldbus_Connection *conn;
@ -414,13 +414,13 @@ e_dbusmenu_unload(E_DBusMenu_Ctx *ctx)
free(ctx);
}
EAPI void
E_API void
e_dbusmenu_pop_request_cb_set(E_DBusMenu_Ctx *ctx, E_DBusMenu_Pop_Request_Cb cb)
{
ctx->pop_request_cb = cb;
}
EAPI void
E_API void
e_dbusmenu_update_cb_set(E_DBusMenu_Ctx *ctx, E_DBusMenu_Update_Cb cb)
{
ctx->update_cb = cb;

View File

@ -61,11 +61,11 @@ struct _E_DBusMenu_Item
typedef void (*E_DBusMenu_Pop_Request_Cb)(void *data, const E_DBusMenu_Item *item);
typedef void (*E_DBusMenu_Update_Cb)(void *data, E_DBusMenu_Item *new_root_item);
EAPI E_DBusMenu_Ctx * e_dbusmenu_load(Eldbus_Connection *conn, const char *bus, const char *path, const void *data);
EAPI void e_dbusmenu_unload(E_DBusMenu_Ctx *ctx);
EAPI void e_dbusmenu_update_cb_set(E_DBusMenu_Ctx *menu_data, E_DBusMenu_Update_Cb cb);
EAPI void e_dbusmenu_pop_request_cb_set(E_DBusMenu_Ctx *menu_data, E_DBusMenu_Pop_Request_Cb cb);
E_API E_DBusMenu_Ctx * e_dbusmenu_load(Eldbus_Connection *conn, const char *bus, const char *path, const void *data);
E_API void e_dbusmenu_unload(E_DBusMenu_Ctx *ctx);
E_API void e_dbusmenu_update_cb_set(E_DBusMenu_Ctx *menu_data, E_DBusMenu_Update_Cb cb);
E_API void e_dbusmenu_pop_request_cb_set(E_DBusMenu_Ctx *menu_data, E_DBusMenu_Pop_Request_Cb cb);
EAPI void e_dbusmenu_event_send(E_DBusMenu_Item *m, E_DBusMenu_Item_Event event);
E_API void e_dbusmenu_event_send(E_DBusMenu_Item *m, E_DBusMenu_Item_Event event);
#endif

View File

@ -19,12 +19,12 @@ static void _e_desk_window_profile_change_protocol_set(void);
static E_Desk_Flip_Cb _e_desk_flip_cb = NULL;
static void *_e_desk_flip_data = NULL;
EAPI int E_EVENT_DESK_SHOW = 0;
EAPI int E_EVENT_DESK_BEFORE_SHOW = 0;
EAPI int E_EVENT_DESK_AFTER_SHOW = 0;
EAPI int E_EVENT_DESK_DESKSHOW = 0;
EAPI int E_EVENT_DESK_NAME_CHANGE = 0;
EAPI int E_EVENT_DESK_WINDOW_PROFILE_CHANGE = 0;
E_API int E_EVENT_DESK_SHOW = 0;
E_API int E_EVENT_DESK_BEFORE_SHOW = 0;
E_API int E_EVENT_DESK_AFTER_SHOW = 0;
E_API int E_EVENT_DESK_DESKSHOW = 0;
E_API int E_EVENT_DESK_NAME_CHANGE = 0;
E_API int E_EVENT_DESK_WINDOW_PROFILE_CHANGE = 0;
EINTERN int
e_desk_init(void)
@ -44,7 +44,7 @@ e_desk_shutdown(void)
return 1;
}
EAPI E_Desk *
E_API E_Desk *
e_desk_new(E_Zone *zone, int x, int y)
{
E_Desk *desk;
@ -99,7 +99,7 @@ e_desk_new(E_Zone *zone, int x, int y)
return desk;
}
EAPI E_Client *
E_API E_Client *
e_desk_client_top_visible_get(const E_Desk *desk)
{
E_Client *ec;
@ -112,7 +112,7 @@ e_desk_client_top_visible_get(const E_Desk *desk)
return NULL;
}
EAPI void
E_API void
e_desk_name_set(E_Desk *desk, const char *name)
{
E_Event_Desk_Name_Change *ev;
@ -129,7 +129,7 @@ e_desk_name_set(E_Desk *desk, const char *name)
_e_desk_event_desk_name_change_free, NULL);
}
EAPI void
E_API void
e_desk_name_add(int zone, int desk_x, int desk_y, const char *name)
{
E_Config_Desktop_Name *cfname;
@ -145,7 +145,7 @@ e_desk_name_add(int zone, int desk_x, int desk_y, const char *name)
e_config->desktop_names = eina_list_append(e_config->desktop_names, cfname);
}
EAPI void
E_API void
e_desk_name_del(int zone, int desk_x, int desk_y)
{
Eina_List *l = NULL;
@ -165,7 +165,7 @@ e_desk_name_del(int zone, int desk_x, int desk_y)
}
}
EAPI void
E_API void
e_desk_name_update(void)
{
const Eina_List *z, *l;
@ -207,7 +207,7 @@ e_desk_name_update(void)
}
}
EAPI void
E_API void
e_desk_show(E_Desk *desk)
{
E_Event_Desk_Show *ev;
@ -319,7 +319,7 @@ e_desk_show(E_Desk *desk)
e_zone_edge_flip_eval(desk->zone);
}
EAPI void
E_API void
e_desk_deskshow(E_Zone *zone)
{
E_Client *ec;
@ -370,7 +370,7 @@ e_desk_deskshow(E_Zone *zone)
_e_desk_event_desk_deskshow_free, NULL);
}
EAPI E_Client *
E_API E_Client *
e_desk_last_focused_focus(E_Desk *desk)
{
Eina_List *l = NULL;
@ -414,31 +414,31 @@ e_desk_last_focused_focus(E_Desk *desk)
return NULL;
}
EAPI void
E_API void
e_desk_row_add(E_Zone *zone)
{
e_zone_desk_count_set(zone, zone->desk_x_count, zone->desk_y_count + 1);
}
EAPI void
E_API void
e_desk_row_remove(E_Zone *zone)
{
e_zone_desk_count_set(zone, zone->desk_x_count, zone->desk_y_count - 1);
}
EAPI void
E_API void
e_desk_col_add(E_Zone *zone)
{
e_zone_desk_count_set(zone, zone->desk_x_count + 1, zone->desk_y_count);
}
EAPI void
E_API void
e_desk_col_remove(E_Zone *zone)
{
e_zone_desk_count_set(zone, zone->desk_x_count - 1, zone->desk_y_count);
}
EAPI E_Desk *
E_API E_Desk *
e_desk_current_get(E_Zone *zone)
{
E_OBJECT_CHECK_RETURN(zone, NULL);
@ -447,7 +447,7 @@ e_desk_current_get(E_Zone *zone)
return e_desk_at_xy_get(zone, zone->desk_x_current, zone->desk_y_current);
}
EAPI E_Desk *
E_API E_Desk *
e_desk_at_xy_get(E_Zone *zone, int x, int y)
{
E_OBJECT_CHECK_RETURN(zone, NULL);
@ -462,7 +462,7 @@ e_desk_at_xy_get(E_Zone *zone, int x, int y)
return zone->desks[x + (y * zone->desk_x_count)];
}
EAPI E_Desk *
E_API E_Desk *
e_desk_at_pos_get(E_Zone *zone, int pos)
{
int x, y;
@ -479,7 +479,7 @@ e_desk_at_pos_get(E_Zone *zone, int pos)
return zone->desks[x + (y * zone->desk_x_count)];
}
EAPI void
E_API void
e_desk_xy_get(E_Desk *desk, int *x, int *y)
{
E_OBJECT_CHECK(desk);
@ -489,7 +489,7 @@ e_desk_xy_get(E_Desk *desk, int *x, int *y)
if (y) *y = desk->y;
}
EAPI void
E_API void
e_desk_next(E_Zone *zone)
{
int x, y;
@ -514,7 +514,7 @@ e_desk_next(E_Zone *zone)
e_desk_show(e_desk_at_xy_get(zone, x, y));
}
EAPI void
E_API void
e_desk_prev(E_Zone *zone)
{
int x, y;
@ -538,7 +538,7 @@ e_desk_prev(E_Zone *zone)
e_desk_show(e_desk_at_xy_get(zone, x, y));
}
EAPI void
E_API void
e_desk_window_profile_set(E_Desk *desk,
const char *profile)
{
@ -556,7 +556,7 @@ e_desk_window_profile_set(E_Desk *desk,
_e_desk_event_desk_window_profile_change_free, NULL);
}
EAPI void
E_API void
e_desk_window_profile_add(int zone,
int desk_x,
int desk_y,
@ -574,7 +574,7 @@ e_desk_window_profile_add(int zone,
e_config->desktop_window_profiles = eina_list_append(e_config->desktop_window_profiles, cfprof);
}
EAPI void
E_API void
e_desk_window_profile_del(int zone,
int desk_x,
int desk_y)
@ -597,7 +597,7 @@ e_desk_window_profile_del(int zone,
}
}
EAPI void
E_API void
e_desk_window_profile_update(void)
{
const Eina_List *z, *l;
@ -641,14 +641,14 @@ e_desk_window_profile_update(void)
}
}
EAPI void
E_API void
e_desk_flip_cb_set(E_Desk_Flip_Cb cb, const void *data)
{
_e_desk_flip_cb = cb;
_e_desk_flip_data = (void*)data;
}
EAPI void
E_API void
e_desk_flip_end(E_Desk *desk)
{
E_Event_Desk_After_Show *ev;
@ -694,7 +694,7 @@ e_desk_flip_end(E_Desk *desk)
}
}
EAPI unsigned int
E_API unsigned int
e_desks_count(void)
{
Eina_List *l;

View File

@ -66,41 +66,41 @@ struct _E_Event_Desk_Window_Profile_Change
EINTERN int e_desk_init(void);
EINTERN 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 zone, int desk_x, int desk_y, const char *name);
EAPI void e_desk_name_del(int zone, int desk_x, int desk_y);
EAPI void e_desk_name_update(void);
EAPI void e_desk_show(E_Desk *desk);
EAPI void e_desk_deskshow(E_Zone *zone);
EAPI E_Client *e_desk_last_focused_focus(E_Desk *desk);
EAPI E_Client *e_desk_client_top_visible_get(const E_Desk *desk);
EAPI E_Desk *e_desk_current_get(E_Zone *zone);
EAPI E_Desk *e_desk_at_xy_get(E_Zone *zone, int x, int y);
EAPI E_Desk *e_desk_at_pos_get(E_Zone *zone, int pos);
EAPI void e_desk_xy_get(E_Desk *desk, int *x, int *y);
EAPI void e_desk_next(E_Zone *zone);
EAPI void e_desk_prev(E_Zone *zone);
EAPI void e_desk_row_add(E_Zone *zone);
EAPI void e_desk_row_remove(E_Zone *zone);
EAPI void e_desk_col_add(E_Zone *zone);
EAPI void e_desk_col_remove(E_Zone *zone);
EAPI void e_desk_window_profile_set(E_Desk *desk, const char *profile);
EAPI void e_desk_window_profile_add(int zone, int desk_x, int desk_y, const char *profile);
EAPI void e_desk_window_profile_del(int zone, int desk_x, int desk_y);
EAPI void e_desk_window_profile_update(void);
E_API E_Desk *e_desk_new(E_Zone *zone, int x, int y);
E_API void e_desk_name_set(E_Desk *desk, const char *name);
E_API void e_desk_name_add(int zone, int desk_x, int desk_y, const char *name);
E_API void e_desk_name_del(int zone, int desk_x, int desk_y);
E_API void e_desk_name_update(void);
E_API void e_desk_show(E_Desk *desk);
E_API void e_desk_deskshow(E_Zone *zone);
E_API E_Client *e_desk_last_focused_focus(E_Desk *desk);
E_API E_Client *e_desk_client_top_visible_get(const E_Desk *desk);
E_API E_Desk *e_desk_current_get(E_Zone *zone);
E_API E_Desk *e_desk_at_xy_get(E_Zone *zone, int x, int y);
E_API E_Desk *e_desk_at_pos_get(E_Zone *zone, int pos);
E_API void e_desk_xy_get(E_Desk *desk, int *x, int *y);
E_API void e_desk_next(E_Zone *zone);
E_API void e_desk_prev(E_Zone *zone);
E_API void e_desk_row_add(E_Zone *zone);
E_API void e_desk_row_remove(E_Zone *zone);
E_API void e_desk_col_add(E_Zone *zone);
E_API void e_desk_col_remove(E_Zone *zone);
E_API void e_desk_window_profile_set(E_Desk *desk, const char *profile);
E_API void e_desk_window_profile_add(int zone, int desk_x, int desk_y, const char *profile);
E_API void e_desk_window_profile_del(int zone, int desk_x, int desk_y);
E_API void e_desk_window_profile_update(void);
EAPI void e_desk_flip_cb_set(E_Desk_Flip_Cb cb, const void *data);
EAPI void e_desk_flip_end(E_Desk *desk);
E_API void e_desk_flip_cb_set(E_Desk_Flip_Cb cb, const void *data);
E_API void e_desk_flip_end(E_Desk *desk);
EAPI unsigned int e_desks_count(void);
E_API unsigned int e_desks_count(void);
extern EAPI int E_EVENT_DESK_SHOW;
extern EAPI int E_EVENT_DESK_BEFORE_SHOW;
extern EAPI int E_EVENT_DESK_AFTER_SHOW;
extern EAPI int E_EVENT_DESK_DESKSHOW;
extern EAPI int E_EVENT_DESK_NAME_CHANGE;
extern EAPI int E_EVENT_DESK_WINDOW_PROFILE_CHANGE;
extern E_API int E_EVENT_DESK_SHOW;
extern E_API int E_EVENT_DESK_BEFORE_SHOW;
extern E_API int E_EVENT_DESK_AFTER_SHOW;
extern E_API int E_EVENT_DESK_DESKSHOW;
extern E_API int E_EVENT_DESK_NAME_CHANGE;
extern E_API int E_EVENT_DESK_WINDOW_PROFILE_CHANGE;
#endif
#endif

View File

@ -48,7 +48,7 @@ e_deskenv_shutdown(void)
return 1;
}
EAPI void
E_API void
e_deskenv_xmodmap_run(void)
{
#ifndef HAVE_WAYLAND_ONLY

View File

@ -5,6 +5,6 @@
EINTERN int e_deskenv_init(void);
EINTERN int e_deskenv_shutdown(void);
EAPI void e_deskenv_xmodmap_run(void);
E_API void e_deskenv_xmodmap_run(void);
#endif
#endif

View File

@ -41,7 +41,7 @@ static Eina_Bool _e_desklock_state = EINA_FALSE;
static void _e_desklock_ask_presentation_mode(void);
EAPI int E_EVENT_DESKLOCK = 0;
E_API int E_EVENT_DESKLOCK = 0;
EINTERN int
e_desklock_init(void)
@ -95,7 +95,7 @@ e_desklock_shutdown(void)
return 1;
}
EAPI Eina_Stringshare *
E_API Eina_Stringshare *
e_desklock_user_wallpaper_get(E_Zone *zone)
{
const E_Config_Desktop_Background *cdbg;
@ -117,7 +117,7 @@ e_desklock_user_wallpaper_get(E_Zone *zone)
return e_theme_edje_file_get("base/theme/desklock", "e/desklock/background");
}
EAPI void
E_API void
e_desklock_interface_append(E_Desklock_Interface *iface)
{
EINA_SAFETY_ON_NULL_RETURN(iface);
@ -139,7 +139,7 @@ e_desklock_interface_append(E_Desklock_Interface *iface)
}
}
EAPI void
E_API void
e_desklock_interface_remove(E_Desklock_Interface *iface)
{
E_Desklock_Interface *diface;
@ -168,35 +168,35 @@ e_desklock_interface_remove(E_Desklock_Interface *iface)
*/
}
EAPI void
E_API void
e_desklock_show_hook_add(E_Desklock_Show_Cb cb)
{
EINA_SAFETY_ON_NULL_RETURN(cb);
show_hooks = eina_list_append(show_hooks, cb);
}
EAPI void
E_API void
e_desklock_show_hook_del(E_Desklock_Show_Cb cb)
{
EINA_SAFETY_ON_NULL_RETURN(cb);
show_hooks = eina_list_remove(show_hooks, cb);
}
EAPI void
E_API void
e_desklock_hide_hook_add(E_Desklock_Hide_Cb cb)
{
EINA_SAFETY_ON_NULL_RETURN(cb);
hide_hooks = eina_list_append(hide_hooks, cb);
}
EAPI void
E_API void
e_desklock_hide_hook_del(E_Desklock_Hide_Cb cb)
{
EINA_SAFETY_ON_NULL_RETURN(cb);
hide_hooks = eina_list_remove(hide_hooks, cb);
}
EAPI int
E_API int
e_desklock_show_autolocked(void)
{
if (_e_desklock_autolock_time < 1.0)
@ -204,7 +204,7 @@ e_desklock_show_autolocked(void)
return e_desklock_show(EINA_FALSE);
}
EAPI int
E_API int
e_desklock_show(Eina_Bool suspend)
{
const Eina_List *l;
@ -323,7 +323,7 @@ fail:
return 0;
}
EAPI void
E_API void
e_desklock_hide(void)
{
Eina_List *l;
@ -389,7 +389,7 @@ e_desklock_hide(void)
e_util_env_set("E_DESKLOCK_UNLOCKED", "happened");
}
EAPI Eina_Bool
E_API Eina_Bool
e_desklock_state_get(void)
{
return _e_desklock_state;

View File

@ -42,20 +42,20 @@ struct _E_Event_Desklock
EINTERN int e_desklock_init(void);
EINTERN int e_desklock_shutdown(void);
EAPI int e_desklock_show(Eina_Bool suspend);
EAPI int e_desklock_show_autolocked(void);
EAPI void e_desklock_hide(void);
EAPI Eina_Bool e_desklock_state_get(void);
E_API int e_desklock_show(Eina_Bool suspend);
E_API int e_desklock_show_autolocked(void);
E_API void e_desklock_hide(void);
E_API Eina_Bool e_desklock_state_get(void);
EAPI void e_desklock_interface_append(E_Desklock_Interface *iface);
EAPI void e_desklock_interface_remove(E_Desklock_Interface *iface);
EAPI Eina_Stringshare *e_desklock_user_wallpaper_get(E_Zone *zone);
EAPI void e_desklock_show_hook_add(E_Desklock_Show_Cb cb);
EAPI void e_desklock_show_hook_del(E_Desklock_Show_Cb cb);
EAPI void e_desklock_hide_hook_add(E_Desklock_Hide_Cb cb);
EAPI void e_desklock_hide_hook_del(E_Desklock_Hide_Cb cb);
E_API void e_desklock_interface_append(E_Desklock_Interface *iface);
E_API void e_desklock_interface_remove(E_Desklock_Interface *iface);
E_API Eina_Stringshare *e_desklock_user_wallpaper_get(E_Zone *zone);
E_API void e_desklock_show_hook_add(E_Desklock_Show_Cb cb);
E_API void e_desklock_show_hook_del(E_Desklock_Show_Cb cb);
E_API void e_desklock_hide_hook_add(E_Desklock_Hide_Cb cb);
E_API void e_desklock_hide_hook_del(E_Desklock_Hide_Cb cb);
extern EAPI int E_EVENT_DESKLOCK;
extern E_API int E_EVENT_DESKLOCK;
static inline Eina_Bool
e_desklock_is_external(void)

View File

@ -678,7 +678,7 @@ _client_property(E_Smart_Data *sd, int type EINA_UNUSED, E_Event_Client_Property
}
/* externally accessible functions */
EAPI Evas_Object *
E_API Evas_Object *
e_deskmirror_add(E_Desk *desk, Eina_Bool pager, Eina_Bool taskbar)
{
E_Smart_Data *sd;
@ -726,7 +726,7 @@ e_deskmirror_add(E_Desk *desk, Eina_Bool pager, Eina_Bool taskbar)
return o;
}
EAPI Evas_Object *
E_API Evas_Object *
e_deskmirror_mirror_find(Evas_Object *deskmirror, Evas_Object *comp_object)
{
Mirror *m;
@ -738,7 +738,7 @@ e_deskmirror_mirror_find(Evas_Object *deskmirror, Evas_Object *comp_object)
return m ? m->mirror : NULL;
}
EAPI Eina_List *
E_API Eina_List *
e_deskmirror_mirror_list(Evas_Object *deskmirror)
{
Eina_List *l = NULL;
@ -762,7 +762,7 @@ _mirror_copy_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_
evas_object_smart_callback_del_full(data, "shadow_change", _mirror_client_shadow_change, obj);
}
EAPI Evas_Object *
E_API Evas_Object *
e_deskmirror_mirror_copy(Evas_Object *obj)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
@ -798,7 +798,7 @@ e_deskmirror_mirror_copy(Evas_Object *obj)
return NULL;
}
EAPI void
E_API void
e_deskmirror_coord_canvas_to_virtual(Evas_Object *obj, Evas_Coord cx, Evas_Coord cy, Evas_Coord *vx, Evas_Coord *vy)
{
API_ENTRY(obj);
@ -806,7 +806,7 @@ e_deskmirror_coord_canvas_to_virtual(Evas_Object *obj, Evas_Coord cx, Evas_Coord
e_layout_coord_canvas_to_virtual(sd->layout, cx, cy, vx, vy);
}
EAPI void
E_API void
e_deskmirror_coord_virtual_to_canvas(Evas_Object *obj, Evas_Coord vx, Evas_Coord vy, Evas_Coord *cx, Evas_Coord *cy)
{
API_ENTRY(obj);
@ -814,14 +814,14 @@ e_deskmirror_coord_virtual_to_canvas(Evas_Object *obj, Evas_Coord vx, Evas_Coord
e_layout_coord_virtual_to_canvas(sd->layout, vx, vy, cx, cy);
}
EAPI E_Desk *
E_API E_Desk *
e_deskmirror_desk_get(Evas_Object *obj)
{
API_ENTRY(obj) NULL;
return sd->desk;
}
EAPI void
E_API void
e_deskmirror_util_wins_print(Evas_Object *obj)
{
E_Smart_Data *sd;

View File

@ -1,14 +1,14 @@
#ifndef E_WIDGET_DESKMIRROR_H
#define E_WIDGET_DESKMIRROR_H
EAPI Evas_Object *e_deskmirror_add(E_Desk *desk, Eina_Bool pager, Eina_Bool taskbar);
EAPI Evas_Object *e_deskmirror_mirror_find(Evas_Object *deskmirror, Evas_Object *comp_object);
EAPI Eina_List *e_deskmirror_mirror_list(Evas_Object *deskmirror);
EAPI Evas_Object *e_deskmirror_mirror_copy(Evas_Object *obj);
EAPI void e_deskmirror_coord_canvas_to_virtual(Evas_Object *obj, Evas_Coord cx, Evas_Coord cy, Evas_Coord *vx, Evas_Coord *vy);
EAPI void e_deskmirror_coord_virtual_to_canvas(Evas_Object *obj, Evas_Coord vx, Evas_Coord vy, Evas_Coord *cx, Evas_Coord *cy);
EAPI E_Desk *e_deskmirror_desk_get(Evas_Object *obj);
EAPI void e_deskmirror_util_wins_print(Evas_Object *obj);
E_API Evas_Object *e_deskmirror_add(E_Desk *desk, Eina_Bool pager, Eina_Bool taskbar);
E_API Evas_Object *e_deskmirror_mirror_find(Evas_Object *deskmirror, Evas_Object *comp_object);
E_API Eina_List *e_deskmirror_mirror_list(Evas_Object *deskmirror);
E_API Evas_Object *e_deskmirror_mirror_copy(Evas_Object *obj);
E_API void e_deskmirror_coord_canvas_to_virtual(Evas_Object *obj, Evas_Coord cx, Evas_Coord cy, Evas_Coord *vx, Evas_Coord *vy);
E_API void e_deskmirror_coord_virtual_to_canvas(Evas_Object *obj, Evas_Coord vx, Evas_Coord vy, Evas_Coord *cx, Evas_Coord *cy);
E_API E_Desk *e_deskmirror_desk_get(Evas_Object *obj);
E_API void e_deskmirror_util_wins_print(Evas_Object *obj);
//#define DESKMIRROR_TEST
#endif

View File

@ -95,7 +95,7 @@ _e_util_icon_save(Ecore_X_Icon *icon, const char *filename)
}
/* externally accessible functions */
EAPI Efreet_Desktop *
E_API Efreet_Desktop *
e_desktop_client_create(E_Client *ec)
{
Efreet_Desktop *desktop = NULL;
@ -183,7 +183,7 @@ e_desktop_client_create(E_Client *ec)
return desktop;
}
EAPI E_Desktop_Edit *
E_API E_Desktop_Edit *
e_desktop_client_edit(E_Client *ec)
{
E_Desktop_Edit *editor;
@ -228,7 +228,7 @@ e_desktop_client_edit(E_Client *ec)
return editor;
}
EAPI E_Desktop_Edit *
E_API E_Desktop_Edit *
e_desktop_edit(Efreet_Desktop *desktop)
{
E_Desktop_Edit *editor;

View File

@ -32,9 +32,9 @@ struct _E_Desktop_Edit
E_Config_Dialog *cfd;
};
EAPI Efreet_Desktop *e_desktop_client_create(E_Client *ec);
EAPI E_Desktop_Edit *e_desktop_client_edit(E_Client *ec);
EAPI E_Desktop_Edit *e_desktop_edit(Efreet_Desktop *desktop);
E_API Efreet_Desktop *e_desktop_client_create(E_Client *ec);
E_API E_Desktop_Edit *e_desktop_client_edit(E_Client *ec);
E_API E_Desktop_Edit *e_desktop_edit(Efreet_Desktop *desktop);
#endif
#endif

View File

@ -77,19 +77,19 @@ _e_dialog_internal_new(Evas_Object *parent, const char *name, const char *class,
return dia;
}
EAPI E_Dialog *
E_API E_Dialog *
e_dialog_new(Evas_Object *parent, const char *name, const char *class)
{
return _e_dialog_internal_new(parent, name, class, 1);
}
EAPI E_Dialog *
E_API E_Dialog *
e_dialog_normal_win_new(Evas_Object *parent, const char *name, const char *class)
{
return _e_dialog_internal_new(parent, name, class, 0);
}
EAPI void
E_API void
e_dialog_button_add(E_Dialog *dia, const char *label, const char *icon, E_Dialog_Cb func, void *data)
{
Evas_Object *o;
@ -100,7 +100,7 @@ e_dialog_button_add(E_Dialog *dia, const char *label, const char *icon, E_Dialog
dia->buttons = eina_list_append(dia->buttons, o);
}
EAPI int
E_API int
e_dialog_button_focus_num(E_Dialog *dia, int button)
{
Evas_Object *o;
@ -110,7 +110,7 @@ e_dialog_button_focus_num(E_Dialog *dia, int button)
return 1;
}
EAPI int
E_API int
e_dialog_button_disable_num_set(E_Dialog *dia, int button, int disabled)
{
Evas_Object *o;
@ -120,7 +120,7 @@ e_dialog_button_disable_num_set(E_Dialog *dia, int button, int disabled)
return 1;
}
EAPI int
E_API int
e_dialog_button_disable_num_get(E_Dialog *dia, int button)
{
Evas_Object *o;
@ -131,13 +131,13 @@ e_dialog_button_disable_num_get(E_Dialog *dia, int button)
return ret;
}
EAPI void
E_API void
e_dialog_title_set(E_Dialog *dia, const char *title)
{
elm_win_title_set(dia->win, title);
}
EAPI void
E_API void
e_dialog_text_set(E_Dialog *dia, const char *text)
{
if (!dia->text_object)
@ -154,7 +154,7 @@ e_dialog_text_set(E_Dialog *dia, const char *text)
elm_object_part_text_set(dia->text_object, "e.textblock.message", text);
}
EAPI void
E_API void
e_dialog_icon_set(E_Dialog *dia, const char *icon, Evas_Coord size)
{
if (!icon)
@ -188,7 +188,7 @@ e_dialog_icon_set(E_Dialog *dia, const char *icon, Evas_Coord size)
edje_object_message_signal_process(elm_layout_edje_get(dia->bg_object));
}
EAPI void
E_API void
e_dialog_border_icon_set(E_Dialog *dia, const char *icon)
{
E_Client *ec;
@ -198,7 +198,7 @@ e_dialog_border_icon_set(E_Dialog *dia, const char *icon)
eina_stringshare_replace(&ec->internal_icon, icon);
}
EAPI void
E_API void
e_dialog_content_set(E_Dialog *dia, Evas_Object *obj, Evas_Coord minw, Evas_Coord minh)
{
int mw, mh;
@ -215,7 +215,7 @@ e_dialog_content_set(E_Dialog *dia, Evas_Object *obj, Evas_Coord minw, Evas_Coor
evas_object_show(obj);
}
EAPI void
E_API void
e_dialog_resizable_set(E_Dialog *dia, int resizable)
{
dia->resizable = resizable;
@ -238,7 +238,7 @@ e_dialog_resizable_set(E_Dialog *dia, int resizable)
}
}
EAPI void
E_API void
e_dialog_show(E_Dialog *dia)
{
Evas_Coord mw, mh;

View File

@ -28,19 +28,19 @@ struct _E_Dialog
typedef void (*E_Dialog_Cb)(void *data, E_Dialog *dia);
EAPI E_Dialog *e_dialog_new (Evas_Object *parent, const char *name, const char *class);
EAPI E_Dialog *e_dialog_normal_win_new (Evas_Object *parent, const char *name, const char *class);
EAPI void e_dialog_button_add (E_Dialog *dia, const char *label, const char *icon, E_Dialog_Cb func, 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, 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_border_icon_set (E_Dialog *dia, const char *icon);
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_API E_Dialog *e_dialog_new (Evas_Object *parent, const char *name, const char *class);
E_API E_Dialog *e_dialog_normal_win_new (Evas_Object *parent, const char *name, const char *class);
E_API void e_dialog_button_add (E_Dialog *dia, const char *label, const char *icon, E_Dialog_Cb func, void *data);
E_API int e_dialog_button_focus_num (E_Dialog *dia, int button);
E_API int e_dialog_button_disable_num_set (E_Dialog *dia, int button, int disabled);
E_API int e_dialog_button_disable_num_get (E_Dialog *dia, int button);
E_API void e_dialog_title_set (E_Dialog *dia, const char *title);
E_API void e_dialog_text_set (E_Dialog *dia, const char *text);
E_API void e_dialog_icon_set (E_Dialog *dia, const char *icon, Evas_Coord size);
E_API void e_dialog_border_icon_set (E_Dialog *dia, const char *icon);
E_API void e_dialog_content_set (E_Dialog *dia, Evas_Object *obj, Evas_Coord minw, Evas_Coord minh);
E_API void e_dialog_resizable_set (E_Dialog *dia, int resizable);
E_API void e_dialog_show (E_Dialog *dia);
#endif
#endif

View File

@ -164,13 +164,13 @@ e_dnd_shutdown(void)
return 1;
}
EAPI E_Drag *
E_API E_Drag *
e_drag_current_get(void)
{
return _drag_current;
}
EAPI E_Drag *
E_API E_Drag *
e_drag_new(int x, int y,
const char **types, unsigned int num_types,
void *data, int size,
@ -218,13 +218,13 @@ e_drag_new(int x, int y,
return drag;
}
EAPI Evas *
E_API Evas *
e_drag_evas_get(const E_Drag *drag)
{
return drag->evas;
}
EAPI void
E_API void
e_drag_object_set(E_Drag *drag, Evas_Object *object)
{
EINA_SAFETY_ON_NULL_RETURN(object);
@ -240,7 +240,7 @@ e_drag_object_set(E_Drag *drag, Evas_Object *object)
evas_object_pass_events_set(drag->comp_object, 1);
}
EAPI void
E_API void
e_drag_move(E_Drag *drag, int x, int y)
{
if ((drag->x == x) && (drag->y == y)) return;
@ -250,7 +250,7 @@ e_drag_move(E_Drag *drag, int x, int y)
evas_object_move(drag->comp_object, x, y);
}
EAPI void
E_API void
e_drag_resize(E_Drag *drag, int w, int h)
{
if ((drag->w == w) && (drag->h == h)) return;
@ -260,13 +260,13 @@ e_drag_resize(E_Drag *drag, int w, int h)
evas_object_resize(drag->comp_object, w, h);
}
EAPI int
E_API int
e_dnd_active(void)
{
return _drag_win != 0;
}
EAPI int
E_API int
e_drag_start(E_Drag *drag, int x, int y)
{
const Eina_List *l;
@ -324,7 +324,7 @@ e_drag_start(E_Drag *drag, int x, int y)
return 1;
}
EAPI int
E_API int
e_drag_xdnd_start(E_Drag *drag, int x, int y)
{
#ifndef HAVE_WAYLAND_ONLY
@ -394,14 +394,14 @@ e_drag_xdnd_start(E_Drag *drag, int x, int y)
return 1;
}
EAPI void
E_API void
e_drop_handler_xds_set(E_Drop_Handler *handler, Eina_Bool (*cb)(void *data, const char *type))
{
handler->cb.xds = cb;
}
/* should only be used for windows */
EAPI void
E_API void
e_drop_xds_update(Eina_Bool enable, const char *value)
{
#ifndef HAVE_WAYLAND_ONLY
@ -438,7 +438,7 @@ e_drop_xds_update(Eina_Bool enable, const char *value)
#endif
}
EAPI E_Drop_Handler *
E_API E_Drop_Handler *
e_drop_handler_add(E_Object *obj, Evas_Object *win,
void *data,
void (*enter_cb)(void *data, const char *type, void *event),
@ -475,7 +475,7 @@ e_drop_handler_add(E_Object *obj, Evas_Object *win,
return handler;
}
EAPI void
E_API void
e_drop_handler_geometry_set(E_Drop_Handler *handler, int x, int y, int w, int h)
{
handler->x = x;
@ -484,7 +484,7 @@ e_drop_handler_geometry_set(E_Drop_Handler *handler, int x, int y, int w, int h)
handler->h = h;
}
EAPI int
E_API int
e_drop_inside(const E_Drop_Handler *handler, int x, int y)
{
int dx, dy;
@ -495,7 +495,7 @@ e_drop_inside(const E_Drop_Handler *handler, int x, int y)
return E_INSIDE(x, y, handler->x, handler->y, handler->w, handler->h);
}
EAPI void
E_API void
e_drop_handler_del(E_Drop_Handler *handler)
{
unsigned int i;
@ -521,7 +521,7 @@ e_drop_handler_del(E_Drop_Handler *handler)
free(handler);
}
EAPI int
E_API int
e_drop_xdnd_register_set(Ecore_Window win, int reg)
{
if (e_comp->comp_type != E_PIXMAP_TYPE_X) return 0;
@ -545,7 +545,7 @@ e_drop_xdnd_register_set(Ecore_Window win, int reg)
return 1;
}
EAPI void
E_API void
e_drop_handler_responsive_set(E_Drop_Handler *handler)
{
Ecore_X_Window hwin = _e_drag_win_get(handler, 1);
@ -555,7 +555,7 @@ e_drop_handler_responsive_set(E_Drop_Handler *handler)
eina_hash_set(_drop_handlers_responsives, &hwin, eina_list_append(l, handler));
}
EAPI int
E_API int
e_drop_handler_responsive_get(const E_Drop_Handler *handler)
{
Ecore_X_Window hwin = _e_drag_win_get(handler, 1);
@ -565,32 +565,32 @@ e_drop_handler_responsive_get(const E_Drop_Handler *handler)
return l && eina_list_data_find(l, handler);
}
EAPI void
E_API void
e_drop_handler_action_set(unsigned int action)
{
_action = action;
}
EAPI unsigned int
E_API unsigned int
e_drop_handler_action_get(void)
{
return _action;
}
EAPI void
E_API void
e_drag_key_down_cb_set(E_Drag *drag, void (*func)(E_Drag *drag, Ecore_Event_Key *e))
{
drag->cb.key_down = func;
}
EAPI void
E_API void
e_drag_key_up_cb_set(E_Drag *drag, void (*func)(E_Drag *drag, Ecore_Event_Key *e))
{
drag->cb.key_up = func;
}
/* from ecore_x_selection.c */
EAPI Eina_List *
E_API Eina_List *
e_dnd_util_text_uri_list_convert(char *data, int size)
{
char *tmp;

View File

@ -111,29 +111,29 @@ struct E_Dnd_X_Moz_Url
EINTERN int e_dnd_init(void);
EINTERN int e_dnd_shutdown(void);
EAPI int e_dnd_active(void);
E_API int e_dnd_active(void);
EAPI E_Drag *e_drag_current_get(void);
E_API E_Drag *e_drag_current_get(void);
/* x and y are the top left coords of the object that is to be dragged */
EAPI E_Drag *e_drag_new(int x, int y,
E_API E_Drag *e_drag_new(int x, int y,
const char **types, unsigned int num_types,
void *data, int size,
void *(*convert_cb)(E_Drag * drag, const char *type),
void (*finished_cb)(E_Drag *drag, int dropped));
EAPI Evas *e_drag_evas_get(const E_Drag *drag);
EAPI void e_drag_object_set(E_Drag *drag, Evas_Object *object);
EAPI void e_drag_move(E_Drag *drag, int x, int y);
EAPI void e_drag_resize(E_Drag *drag, int w, int h);
EAPI void e_drag_key_down_cb_set(E_Drag *drag, void (*func)(E_Drag *drag, Ecore_Event_Key *e));
EAPI void e_drag_key_up_cb_set(E_Drag *drag, void (*func)(E_Drag *drag, Ecore_Event_Key *e));
E_API Evas *e_drag_evas_get(const E_Drag *drag);
E_API void e_drag_object_set(E_Drag *drag, Evas_Object *object);
E_API void e_drag_move(E_Drag *drag, int x, int y);
E_API void e_drag_resize(E_Drag *drag, int w, int h);
E_API void e_drag_key_down_cb_set(E_Drag *drag, void (*func)(E_Drag *drag, Ecore_Event_Key *e));
E_API void e_drag_key_up_cb_set(E_Drag *drag, void (*func)(E_Drag *drag, Ecore_Event_Key *e));
/* x and y are the coords where the mouse is when dragging starts */
EAPI int e_drag_start(E_Drag *drag, int x, int y);
EAPI int e_drag_xdnd_start(E_Drag *drag, int x, int y);
E_API int e_drag_start(E_Drag *drag, int x, int y);
E_API int e_drag_xdnd_start(E_Drag *drag, int x, int y);
EAPI void e_drop_xds_update(Eina_Bool enable, const char *value);
EAPI void e_drop_handler_xds_set(E_Drop_Handler *handler, Eina_Bool (*cb)(void *data, const char *type));
EAPI E_Drop_Handler *e_drop_handler_add(E_Object *obj, Evas_Object *win,
E_API void e_drop_xds_update(Eina_Bool enable, const char *value);
E_API void e_drop_handler_xds_set(E_Drop_Handler *handler, Eina_Bool (*cb)(void *data, const char *type));
E_API E_Drop_Handler *e_drop_handler_add(E_Object *obj, Evas_Object *win,
void *data,
void (*enter_cb)(void *data, const char *type, void *event),
void (*move_cb)(void *data, const char *type, void *event),
@ -141,15 +141,15 @@ EAPI E_Drop_Handler *e_drop_handler_add(E_Object *obj, Evas_Object *win,
void (*drop_cb)(void *data, const char *type, void *event),
const char **types, unsigned int num_types,
int x, int y, int w, int h);
EAPI void e_drop_handler_geometry_set(E_Drop_Handler *handler, int x, int y, int w, int h);
EAPI int e_drop_inside(const E_Drop_Handler *handler, int x, int y);
EAPI void e_drop_handler_del(E_Drop_Handler *handler);
EAPI int e_drop_xdnd_register_set(Ecore_Window win, int reg);
EAPI void e_drop_handler_responsive_set(E_Drop_Handler *handler);
EAPI int e_drop_handler_responsive_get(const E_Drop_Handler *handler);
EAPI void e_drop_handler_action_set(unsigned int action);
EAPI unsigned int e_drop_handler_action_get(void);
EAPI Eina_List *e_dnd_util_text_uri_list_convert(char *data, int size);
E_API void e_drop_handler_geometry_set(E_Drop_Handler *handler, int x, int y, int w, int h);
E_API int e_drop_inside(const E_Drop_Handler *handler, int x, int y);
E_API void e_drop_handler_del(E_Drop_Handler *handler);
E_API int e_drop_xdnd_register_set(Ecore_Window win, int reg);
E_API void e_drop_handler_responsive_set(E_Drop_Handler *handler);
E_API int e_drop_handler_responsive_get(const E_Drop_Handler *handler);
E_API void e_drop_handler_action_set(unsigned int action);
E_API unsigned int e_drop_handler_action_get(void);
E_API Eina_List *e_dnd_util_text_uri_list_convert(char *data, int size);
static inline void

View File

@ -14,7 +14,7 @@ static unsigned int _e_dpms_timeout_suspend = 0;
static unsigned int _e_dpms_timeout_off = 0;
static int _e_dpms_enabled = EINA_FALSE;
EAPI void
E_API void
e_dpms_update(void)
{
unsigned int standby = 0, suspend = 0, off = 0;
@ -65,7 +65,7 @@ e_dpms_update(void)
#endif
}
EAPI void
E_API void
e_dpms_force_update(void)
{
unsigned int standby = 0, suspend = 0, off = 0;

View File

@ -6,8 +6,8 @@
EINTERN int e_dpms_init(void);
EINTERN int e_dpms_shutdown(void);
EAPI void e_dpms_update(void);
EAPI void e_dpms_force_update(void);
E_API void e_dpms_update(void);
E_API void e_dpms_force_update(void);
#endif
#endif

View File

@ -9,7 +9,7 @@ static void _e_entry_dialog_delete(E_Dialog *dia, Evas *e EINA_UNUSED, Evas_Obje
static void _e_entry_cb_key_down(void *data, Evas_Object *obj, void *event_info);
/* Externally accesible functions */
EAPI E_Entry_Dialog *
E_API E_Entry_Dialog *
e_entry_dialog_show(const char *title, const char *icon, const char *text,
const char *initial_text,
const char *button_text, const char *button2_text,

View File

@ -25,7 +25,7 @@ struct _E_Entry_Dialog
} cancel;
};
EAPI E_Entry_Dialog *e_entry_dialog_show(const char *title,
E_API E_Entry_Dialog *e_entry_dialog_show(const char *title,
const char *icon,
const char *text,
const char *initial_text,

View File

@ -32,13 +32,13 @@ e_env_shutdown(void)
return 1;
}
EAPI void
E_API void
e_env_set(const char *var, const char *val)
{
e_util_env_set(var, val);
}
EAPI void
E_API void
e_env_unset(const char *var)
{
e_util_env_set(var, NULL);

View File

@ -8,8 +8,8 @@
EINTERN int e_env_init(void);
EINTERN int e_env_shutdown(void);
EAPI void e_env_set(const char *var, const char *val);
EAPI void e_env_unset(const char *var);
E_API void e_env_set(const char *var, const char *val);
E_API void e_env_unset(const char *var);
#endif
#endif

View File

@ -5,7 +5,7 @@
/* local subsystem globals */
/* externally accessible functions */
EAPI void
E_API void
e_error_message_show_internal(char *txt)
{
/* FIXME: maybe log these to a file and display them at some point */

View File

@ -12,7 +12,7 @@
#ifndef E_ERROR_H
#define E_ERROR_H
EAPI void e_error_message_show_internal(char *txt);
E_API void e_error_message_show_internal(char *txt);
#endif
#endif

View File

@ -77,9 +77,9 @@ static Ecore_Event_Handler *_e_exec_border_add_handler = NULL;
static E_Exec_Instance *(*_e_exec_executor_func)(void *data, E_Zone * zone, Efreet_Desktop * desktop, const char *exec, Eina_List *files, const char *launch_method) = NULL;
static void *_e_exec_executor_data = NULL;
EAPI int E_EVENT_EXEC_NEW = -1;
EAPI int E_EVENT_EXEC_NEW_CLIENT = -1;
EAPI int E_EVENT_EXEC_DEL = -1;
E_API int E_EVENT_EXEC_NEW = -1;
E_API int E_EVENT_EXEC_NEW_CLIENT = -1;
E_API int E_EVENT_EXEC_DEL = -1;
/* externally accessible functions */
EINTERN int
@ -112,14 +112,14 @@ e_exec_shutdown(void)
return 1;
}
EAPI void
E_API void
e_exec_executor_set(E_Exec_Instance *(*func)(void *data, E_Zone * zone, Efreet_Desktop * desktop, const char *exec, Eina_List *files, const char *launch_method), const void *data)
{
_e_exec_executor_func = func;
_e_exec_executor_data = (void *)data;
}
EAPI E_Exec_Instance *
E_API E_Exec_Instance *
e_exec(E_Zone *zone, Efreet_Desktop *desktop, const char *exec,
Eina_List *files, const char *launch_method)
{
@ -212,7 +212,7 @@ e_exec(E_Zone *zone, Efreet_Desktop *desktop, const char *exec,
return inst;
}
EAPI void
E_API void
e_exec_phony_del(E_Exec_Instance *inst)
{
if (!inst) return;
@ -222,7 +222,7 @@ e_exec_phony_del(E_Exec_Instance *inst)
_e_exec_instance_free(inst);
}
EAPI E_Exec_Instance *
E_API E_Exec_Instance *
e_exec_phony(E_Client *ec)
{
E_Exec_Instance *inst;
@ -288,7 +288,7 @@ e_exec_phony(E_Client *ec)
return inst;
}
EAPI E_Exec_Instance *
E_API E_Exec_Instance *
e_exec_startup_id_pid_instance_find(int id, pid_t pid)
{
E_Exec_Search search;
@ -301,7 +301,7 @@ e_exec_startup_id_pid_instance_find(int id, pid_t pid)
return search.inst;
}
EAPI Efreet_Desktop *
E_API Efreet_Desktop *
e_exec_startup_id_pid_find(int id, pid_t pid)
{
E_Exec_Instance *inst;
@ -311,7 +311,7 @@ e_exec_startup_id_pid_find(int id, pid_t pid)
return inst->desktop;
}
EAPI E_Exec_Instance *
E_API E_Exec_Instance *
e_exec_startup_desktop_instance_find(Efreet_Desktop *desktop)
{
E_Exec_Search search;
@ -349,14 +349,14 @@ _e_exe_instance_watchers_call(E_Exec_Instance *inst, E_Exec_Watch_Type type)
}
}
EAPI void
E_API void
e_exec_instance_found(E_Exec_Instance *inst)
{
E_FREE_FUNC(inst->expire_timer, ecore_timer_del);
_e_exe_instance_watchers_call(inst, E_EXEC_WATCH_STARTED);
}
EAPI void
E_API void
e_exec_instance_client_add(E_Exec_Instance *inst, E_Client *ec)
{
e_object_ref(E_OBJECT(ec));
@ -366,7 +366,7 @@ e_exec_instance_client_add(E_Exec_Instance *inst, E_Client *ec)
ecore_event_add(E_EVENT_EXEC_NEW_CLIENT, inst, _e_exec_cb_exec_new_client_free, ec);
}
EAPI void
E_API void
e_exec_instance_watcher_add(E_Exec_Instance *inst, void (*func)(void *data, E_Exec_Instance *inst, E_Exec_Watch_Type type), const void *data)
{
E_Exec_Watch *iw;
@ -378,7 +378,7 @@ e_exec_instance_watcher_add(E_Exec_Instance *inst, void (*func)(void *data, E_Ex
inst->watchers = eina_list_append(inst->watchers, iw);
}
EAPI void
E_API void
e_exec_instance_watcher_del(E_Exec_Instance *inst, void (*func)(void *data, E_Exec_Instance *inst, E_Exec_Watch_Type type), const void *data)
{
E_Exec_Watch *iw;
@ -1233,14 +1233,14 @@ _dialog_save_cb(void *data EINA_UNUSED, void *data2)
fclose(f);
}
EAPI const Eina_List *
E_API const Eina_List *
e_exec_desktop_instances_find(const Efreet_Desktop *desktop)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(desktop, NULL);
return eina_hash_find(e_exec_instances, desktop->orig_path ?: desktop->name);
}
EAPI const Eina_Hash *
E_API const Eina_Hash *
e_exec_instances_get(void)
{
return e_exec_instances;

View File

@ -33,25 +33,25 @@ typedef enum
EINTERN int e_exec_init(void);
EINTERN int e_exec_shutdown(void);
EAPI void e_exec_executor_set(E_Exec_Instance *(*func) (void *data, E_Zone *zone, Efreet_Desktop *desktop, const char *exec, Eina_List *files, const char *launch_method), const void *data);
EAPI E_Exec_Instance *e_exec(E_Zone *zone, Efreet_Desktop *desktop, const char *exec, Eina_List *files, const char *launch_method);
EAPI E_Exec_Instance *e_exec_phony(E_Client *ec);
EAPI void e_exec_phony_del(E_Exec_Instance *inst);
EAPI E_Exec_Instance *e_exec_startup_id_pid_instance_find(int id, pid_t pid);
EAPI Efreet_Desktop *e_exec_startup_id_pid_find(int startup_id, pid_t pid);
EAPI E_Exec_Instance *e_exec_startup_desktop_instance_find(Efreet_Desktop *desktop);
EAPI void e_exec_instance_found(E_Exec_Instance *inst);
EAPI void e_exec_instance_watcher_add(E_Exec_Instance *inst, void (*func) (void *data, E_Exec_Instance *inst, E_Exec_Watch_Type type), const void *data);
EAPI void e_exec_instance_watcher_del(E_Exec_Instance *inst, void (*func) (void *data, E_Exec_Instance *inst, E_Exec_Watch_Type type), const void *data);
EAPI const Eina_List *e_exec_desktop_instances_find(const Efreet_Desktop *desktop);
E_API void e_exec_executor_set(E_Exec_Instance *(*func) (void *data, E_Zone *zone, Efreet_Desktop *desktop, const char *exec, Eina_List *files, const char *launch_method), const void *data);
E_API E_Exec_Instance *e_exec(E_Zone *zone, Efreet_Desktop *desktop, const char *exec, Eina_List *files, const char *launch_method);
E_API E_Exec_Instance *e_exec_phony(E_Client *ec);
E_API void e_exec_phony_del(E_Exec_Instance *inst);
E_API E_Exec_Instance *e_exec_startup_id_pid_instance_find(int id, pid_t pid);
E_API Efreet_Desktop *e_exec_startup_id_pid_find(int startup_id, pid_t pid);
E_API E_Exec_Instance *e_exec_startup_desktop_instance_find(Efreet_Desktop *desktop);
E_API void e_exec_instance_found(E_Exec_Instance *inst);
E_API void e_exec_instance_watcher_add(E_Exec_Instance *inst, void (*func) (void *data, E_Exec_Instance *inst, E_Exec_Watch_Type type), const void *data);
E_API void e_exec_instance_watcher_del(E_Exec_Instance *inst, void (*func) (void *data, E_Exec_Instance *inst, E_Exec_Watch_Type type), const void *data);
E_API const Eina_List *e_exec_desktop_instances_find(const Efreet_Desktop *desktop);
EAPI const Eina_Hash *e_exec_instances_get(void);
EAPI void e_exec_instance_client_add(E_Exec_Instance *inst, E_Client *ec);
E_API const Eina_Hash *e_exec_instances_get(void);
E_API void e_exec_instance_client_add(E_Exec_Instance *inst, E_Client *ec);
/* sends E_Exec_Instance */
EAPI extern int E_EVENT_EXEC_NEW;
EAPI extern int E_EVENT_EXEC_NEW_CLIENT;
EAPI extern int E_EVENT_EXEC_DEL;
E_API extern int E_EVENT_EXEC_NEW;
E_API extern int E_EVENT_EXEC_NEW_CLIENT;
E_API extern int E_EVENT_EXEC_DEL;
#endif
#endif

View File

@ -1,7 +1,7 @@
#include "e.h"
#include <libgen.h>
EAPI int E_EVENT_EXEHIST_UPDATE = 0;
E_API int E_EVENT_EXEHIST_UPDATE = 0;
/* local subsystem functions */
typedef struct _E_Exehist E_Exehist;
@ -82,7 +82,7 @@ e_exehist_shutdown(void)
return 1;
}
EAPI void
E_API void
e_exehist_startup_id_set(int id)
{
_e_exehist_load();
@ -92,7 +92,7 @@ e_exehist_startup_id_set(int id)
_e_exehist_unload_queue();
}
EAPI int
E_API int
e_exehist_startup_id_get(void)
{
int id;
@ -103,7 +103,7 @@ e_exehist_startup_id_get(void)
return id;
}
EAPI void
E_API void
e_exehist_add(const char *launch_method, const char *exe)
{
E_Exehist_Item *ei;
@ -127,7 +127,7 @@ e_exehist_add(const char *launch_method, const char *exe)
_e_exehist_unload_queue();
}
EAPI void
E_API void
e_exehist_del(const char *exe)
{
E_Exehist_Item *ei;
@ -155,7 +155,7 @@ e_exehist_del(const char *exe)
ecore_event_add(E_EVENT_EXEHIST_UPDATE, NULL, NULL, NULL);
}
EAPI void
E_API void
e_exehist_clear(void)
{
_e_exehist_load();
@ -166,7 +166,7 @@ e_exehist_clear(void)
_e_exehist_unload_queue();
}
EAPI int
E_API int
e_exehist_popularity_get(const char *exe)
{
Eina_List *l;
@ -188,7 +188,7 @@ e_exehist_popularity_get(const char *exe)
return count;
}
EAPI double
E_API double
e_exehist_newest_run_get(const char *exe)
{
Eina_List *l;
@ -213,13 +213,13 @@ e_exehist_newest_run_get(const char *exe)
return 0.0;
}
EAPI Eina_List *
E_API Eina_List *
e_exehist_list_get(void)
{
return e_exehist_sorted_list_get(E_EXEHIST_SORT_BY_DATE, 0);
}
EAPI Eina_List *
E_API Eina_List *
e_exehist_sorted_list_get(E_Exehist_Sort sort_type, int max)
{
Eina_List *list = NULL, *pop = NULL, *l = NULL, *m;
@ -296,7 +296,7 @@ e_exehist_sorted_list_get(E_Exehist_Sort sort_type, int max)
return list;
}
EAPI void
E_API void
e_exehist_mime_desktop_add(const char *mime, Efreet_Desktop *desktop)
{
const char *f;
@ -363,7 +363,7 @@ e_exehist_mime_desktop_add(const char *mime, Efreet_Desktop *desktop)
_e_exehist_unload_queue();
}
EAPI Efreet_Desktop *
E_API Efreet_Desktop *
e_exehist_mime_desktop_get(const char *mime)
{
Efreet_Desktop *desktop;

View File

@ -14,19 +14,19 @@ typedef enum _E_Exehist_Sort
EINTERN int e_exehist_init(void);
EINTERN int e_exehist_shutdown(void);
EAPI void e_exehist_startup_id_set(int id);
EAPI int e_exehist_startup_id_get(void);
EAPI void e_exehist_add(const char *launch_method, const char *exe);
EAPI void e_exehist_del(const char *exe);
EAPI void e_exehist_clear(void);
EAPI int e_exehist_popularity_get(const char *exe);
EAPI double e_exehist_newest_run_get(const char *exe);
EAPI Eina_List *e_exehist_list_get(void);
EAPI Eina_List *e_exehist_sorted_list_get(E_Exehist_Sort sort_type, int max);
EAPI void e_exehist_mime_desktop_add(const char *mime, Efreet_Desktop *desktop);
EAPI Efreet_Desktop *e_exehist_mime_desktop_get(const char *mime);
E_API void e_exehist_startup_id_set(int id);
E_API int e_exehist_startup_id_get(void);
E_API void e_exehist_add(const char *launch_method, const char *exe);
E_API void e_exehist_del(const char *exe);
E_API void e_exehist_clear(void);
E_API int e_exehist_popularity_get(const char *exe);
E_API double e_exehist_newest_run_get(const char *exe);
E_API Eina_List *e_exehist_list_get(void);
E_API Eina_List *e_exehist_sorted_list_get(E_Exehist_Sort sort_type, int max);
E_API void e_exehist_mime_desktop_add(const char *mime, Efreet_Desktop *desktop);
E_API Efreet_Desktop *e_exehist_mime_desktop_get(const char *mime);
extern EAPI int E_EVENT_EXEHIST_UPDATE;
extern E_API int E_EVENT_EXEHIST_UPDATE;
#endif
#endif

View File

@ -36,7 +36,7 @@ e_filereg_shutdown(void)
return 1;
}
EAPI int
E_API int
e_filereg_register(const char *path)
{
Filereg_Item *fi = NULL;
@ -55,7 +55,7 @@ e_filereg_register(const char *path)
return 1;
}
EAPI void
E_API void
e_filereg_deregister(const char *path)
{
Filereg_Item *fi = NULL;
@ -73,7 +73,7 @@ e_filereg_deregister(const char *path)
}
}
EAPI Eina_Bool
E_API Eina_Bool
e_filereg_file_protected(const char *path)
{
if (eina_hash_find(_e_filereg, path)) return EINA_TRUE;

View File

@ -7,9 +7,9 @@
EINTERN int e_filereg_init(void);
EINTERN int e_filereg_shutdown(void);
EAPI int e_filereg_register(const char * path);
EAPI void e_filereg_deregister(const char * path);
EAPI Eina_Bool e_filereg_file_protected(const char * path);
E_API int e_filereg_register(const char * path);
E_API void e_filereg_deregister(const char * path);
E_API Eina_Bool e_filereg_file_protected(const char * path);
#endif
#endif

View File

@ -68,14 +68,14 @@ static void _e_flowlayout_smart_clip_unset(Evas_Object *obj);
static Evas_Smart *_e_smart = NULL;
/* externally accessible functions */
EAPI Evas_Object *
E_API Evas_Object *
e_flowlayout_add(Evas *evas)
{
_e_flowlayout_smart_init();
return evas_object_smart_add(evas, _e_smart);
}
EAPI int
E_API int
e_flowlayout_freeze(Evas_Object *obj)
{
E_Smart_Data *sd;
@ -87,7 +87,7 @@ e_flowlayout_freeze(Evas_Object *obj)
return sd->frozen;
}
EAPI int
E_API int
e_flowlayout_thaw(Evas_Object *obj)
{
E_Smart_Data *sd;
@ -100,7 +100,7 @@ e_flowlayout_thaw(Evas_Object *obj)
return sd->frozen;
}
EAPI void
E_API void
e_flowlayout_orientation_set(Evas_Object *obj, int horizontal)
{
E_Smart_Data *sd;
@ -115,7 +115,7 @@ e_flowlayout_orientation_set(Evas_Object *obj, int horizontal)
if (sd->frozen <= 0) _e_flowlayout_smart_reconfigure(sd);
}
EAPI int
E_API int
e_flowlayout_orientation_get(Evas_Object *obj)
{
E_Smart_Data *sd;
@ -126,7 +126,7 @@ e_flowlayout_orientation_get(Evas_Object *obj)
return sd->horizontal;
}
EAPI void
E_API void
e_flowlayout_flowdirection_set(Evas_Object *obj, int right, int bottom)
{
E_Smart_Data *sd;
@ -144,7 +144,7 @@ e_flowlayout_flowdirection_set(Evas_Object *obj, int right, int bottom)
if (sd->frozen <= 0) _e_flowlayout_smart_reconfigure(sd);
}
EAPI void
E_API void
e_flowlayout_flowdirection_get(Evas_Object *obj, int *right, int *bottom)
{
E_Smart_Data *sd;
@ -156,7 +156,7 @@ e_flowlayout_flowdirection_get(Evas_Object *obj, int *right, int *bottom)
if (bottom) *bottom = sd->flowright;
}
EAPI void
E_API void
e_flowlayout_homogenous_set(Evas_Object *obj, int homogenous)
{
E_Smart_Data *sd;
@ -170,7 +170,7 @@ e_flowlayout_homogenous_set(Evas_Object *obj, int homogenous)
if (sd->frozen <= 0) _e_flowlayout_smart_reconfigure(sd);
}
EAPI int
E_API int
e_flowlayout_homogenous_get(Evas_Object *obj)
{
E_Smart_Data *sd;
@ -181,7 +181,7 @@ e_flowlayout_homogenous_get(Evas_Object *obj)
return sd->homogenous;
}
EAPI void
E_API void
e_flowlayout_fill_set(Evas_Object *obj, int fill)
{
E_Smart_Data *sd;
@ -195,7 +195,7 @@ e_flowlayout_fill_set(Evas_Object *obj, int fill)
if (sd->frozen <= 0) _e_flowlayout_smart_reconfigure(sd);
}
EAPI int
E_API int
e_flowlayout_fill_get(Evas_Object *obj)
{
E_Smart_Data *sd;
@ -206,7 +206,7 @@ e_flowlayout_fill_get(Evas_Object *obj)
return sd->fill;
}
EAPI int
E_API int
e_flowlayout_pack_start(Evas_Object *obj, Evas_Object *child)
{
E_Smart_Data *sd;
@ -221,7 +221,7 @@ e_flowlayout_pack_start(Evas_Object *obj, Evas_Object *child)
return 0;
}
EAPI int
E_API int
e_flowlayout_pack_end(Evas_Object *obj, Evas_Object *child)
{
E_Smart_Data *sd;
@ -236,7 +236,7 @@ e_flowlayout_pack_end(Evas_Object *obj, Evas_Object *child)
return eina_list_count(sd->items) - 1;
}
EAPI int
E_API int
e_flowlayout_pack_before(Evas_Object *obj, Evas_Object *child, Evas_Object *before)
{
E_Smart_Data *sd;
@ -259,7 +259,7 @@ e_flowlayout_pack_before(Evas_Object *obj, Evas_Object *child, Evas_Object *befo
return i;
}
EAPI int
E_API int
e_flowlayout_pack_after(Evas_Object *obj, Evas_Object *child, Evas_Object *after)
{
E_Smart_Data *sd;
@ -282,7 +282,7 @@ e_flowlayout_pack_after(Evas_Object *obj, Evas_Object *child, Evas_Object *after
return i;
}
EAPI int
E_API int
e_flowlayout_pack_count_get(Evas_Object *obj)
{
E_Smart_Data *sd;
@ -293,7 +293,7 @@ e_flowlayout_pack_count_get(Evas_Object *obj)
return eina_list_count(sd->items);
}
EAPI Evas_Object *
E_API Evas_Object *
e_flowlayout_pack_object_nth(Evas_Object *obj, int n)
{
E_Smart_Data *sd;
@ -304,7 +304,7 @@ e_flowlayout_pack_object_nth(Evas_Object *obj, int n)
return eina_list_nth(sd->items, n);
}
EAPI Evas_Object *
E_API Evas_Object *
e_flowlayout_pack_object_first(Evas_Object *obj)
{
E_Smart_Data *sd;
@ -315,7 +315,7 @@ e_flowlayout_pack_object_first(Evas_Object *obj)
return eina_list_data_get(sd->items);
}
EAPI Evas_Object *
E_API Evas_Object *
e_flowlayout_pack_object_last(Evas_Object *obj)
{
E_Smart_Data *sd;
@ -326,7 +326,7 @@ e_flowlayout_pack_object_last(Evas_Object *obj)
return eina_list_last_data_get(sd->items);
}
EAPI Evas_Object *
E_API Evas_Object *
e_flowlayout_pack_object_prev(Evas_Object *obj, Evas_Object *child)
{
E_Smart_Data *sd;
@ -341,7 +341,7 @@ e_flowlayout_pack_object_prev(Evas_Object *obj, Evas_Object *child)
return NULL;
}
EAPI Evas_Object *
E_API Evas_Object *
e_flowlayout_pack_object_next(Evas_Object *obj, Evas_Object *child)
{
E_Smart_Data *sd;
@ -356,7 +356,7 @@ e_flowlayout_pack_object_next(Evas_Object *obj, Evas_Object *child)
return NULL;
}
EAPI void
E_API void
e_flowlayout_pack_options_set(Evas_Object *obj, int fill_w, int fill_h, int expand_w, int expand_h, double align_x, double align_y, Evas_Coord min_w, Evas_Coord min_h, Evas_Coord max_w, Evas_Coord max_h)
{
E_Flowlayout_Item *bi;
@ -377,7 +377,7 @@ e_flowlayout_pack_options_set(Evas_Object *obj, int fill_w, int fill_h, int expa
if (bi->sd->frozen <= 0) _e_flowlayout_smart_reconfigure(bi->sd);
}
EAPI void
E_API void
e_flowlayout_unpack(Evas_Object *obj)
{
E_Flowlayout_Item *bi;
@ -393,7 +393,7 @@ e_flowlayout_unpack(Evas_Object *obj)
if (sd->frozen <= 0) _e_flowlayout_smart_reconfigure(sd);
}
EAPI void
E_API void
e_flowlayout_size_min_get(Evas_Object *obj, Evas_Coord *minw, Evas_Coord *minh)
{
E_Smart_Data *sd;
@ -406,7 +406,7 @@ e_flowlayout_size_min_get(Evas_Object *obj, Evas_Coord *minw, Evas_Coord *minh)
if (minh) *minh = sd->min.h;
}
EAPI void
E_API void
e_flowlayout_size_max_get(Evas_Object *obj, Evas_Coord *maxw, Evas_Coord *maxh)
{
E_Smart_Data *sd;
@ -419,7 +419,7 @@ e_flowlayout_size_max_get(Evas_Object *obj, Evas_Coord *maxw, Evas_Coord *maxh)
if (maxh) *maxh = sd->max.h;
}
EAPI int
E_API int
e_flowlayout_max_children(Evas_Object *obj)
{
E_Smart_Data *sd;
@ -431,7 +431,7 @@ e_flowlayout_max_children(Evas_Object *obj)
return sd->rows * sd->cols;
}
EAPI void
E_API void
e_flowlayout_align_get(Evas_Object *obj, double *ax, double *ay)
{
E_Smart_Data *sd;
@ -443,7 +443,7 @@ e_flowlayout_align_get(Evas_Object *obj, double *ax, double *ay)
if (ay) *ay = sd->align.y;
}
EAPI void
E_API void
e_flowlayout_align_set(Evas_Object *obj, double ax, double ay)
{
E_Smart_Data *sd;

View File

@ -3,34 +3,34 @@
#ifndef E_FLOWLAYOUT_H
#define E_FLOWLAYOUT_H
EAPI Evas_Object *e_flowlayout_add (Evas *evas);
EAPI int e_flowlayout_freeze (Evas_Object *obj);
EAPI int e_flowlayout_thaw (Evas_Object *obj);
EAPI void e_flowlayout_orientation_set (Evas_Object *obj, int horizontal);
EAPI int e_flowlayout_orientation_get (Evas_Object *obj);
EAPI void e_flowlayout_flowdirection_set (Evas_Object *obj, int right, int bottom);
EAPI void e_flowlayout_flowdirection_get (Evas_Object *obj, int *right, int *bottom);
EAPI void e_flowlayout_homogenous_set (Evas_Object *obj, int homogenous);
EAPI int e_flowlayout_fill_get (Evas_Object *obj);
EAPI void e_flowlayout_fill_set (Evas_Object *obj, int fill);
EAPI int e_flowlayout_pack_start (Evas_Object *obj, Evas_Object *child);
EAPI int e_flowlayout_pack_end (Evas_Object *obj, Evas_Object *child);
EAPI int e_flowlayout_pack_before (Evas_Object *obj, Evas_Object *child, Evas_Object *before);
EAPI int e_flowlayout_pack_after (Evas_Object *obj, Evas_Object *child, Evas_Object *after);
EAPI int e_flowlayout_pack_count_get (Evas_Object *obj);
EAPI Evas_Object *e_flowlayout_pack_object_nth (Evas_Object *obj, int n);
EAPI Evas_Object *e_flowlayout_pack_object_first (Evas_Object *obj);
EAPI Evas_Object *e_flowlayout_pack_object_last (Evas_Object *obj);
EAPI Evas_Object *e_flowlayout_pack_object_prev(Evas_Object *obj, Evas_Object *child);
EAPI Evas_Object *e_flowlayout_pack_object_next(Evas_Object *obj, Evas_Object *child);
EAPI void e_flowlayout_pack_options_set (Evas_Object *obj, int fill_w, int fill_h, int expand_w, int expand_h, double align_x, double align_y, Evas_Coord min_w, Evas_Coord min_h, Evas_Coord max_w, Evas_Coord max_h);
EAPI void e_flowlayout_unpack (Evas_Object *obj);
EAPI void e_flowlayout_size_min_get (Evas_Object *obj, Evas_Coord *minw, Evas_Coord *minh);
EAPI void e_flowlayout_size_max_get (Evas_Object *obj, Evas_Coord *maxw, Evas_Coord *maxh);
EAPI void e_flowlayout_align_get (Evas_Object *obj, double *ax, double *ay);
EAPI void e_flowlayout_align_set (Evas_Object *obj, double ax, double ay);
E_API Evas_Object *e_flowlayout_add (Evas *evas);
E_API int e_flowlayout_freeze (Evas_Object *obj);
E_API int e_flowlayout_thaw (Evas_Object *obj);
E_API void e_flowlayout_orientation_set (Evas_Object *obj, int horizontal);
E_API int e_flowlayout_orientation_get (Evas_Object *obj);
E_API void e_flowlayout_flowdirection_set (Evas_Object *obj, int right, int bottom);
E_API void e_flowlayout_flowdirection_get (Evas_Object *obj, int *right, int *bottom);
E_API void e_flowlayout_homogenous_set (Evas_Object *obj, int homogenous);
E_API int e_flowlayout_fill_get (Evas_Object *obj);
E_API void e_flowlayout_fill_set (Evas_Object *obj, int fill);
E_API int e_flowlayout_pack_start (Evas_Object *obj, Evas_Object *child);
E_API int e_flowlayout_pack_end (Evas_Object *obj, Evas_Object *child);
E_API int e_flowlayout_pack_before (Evas_Object *obj, Evas_Object *child, Evas_Object *before);
E_API int e_flowlayout_pack_after (Evas_Object *obj, Evas_Object *child, Evas_Object *after);
E_API int e_flowlayout_pack_count_get (Evas_Object *obj);
E_API Evas_Object *e_flowlayout_pack_object_nth (Evas_Object *obj, int n);
E_API Evas_Object *e_flowlayout_pack_object_first (Evas_Object *obj);
E_API Evas_Object *e_flowlayout_pack_object_last (Evas_Object *obj);
E_API Evas_Object *e_flowlayout_pack_object_prev(Evas_Object *obj, Evas_Object *child);
E_API Evas_Object *e_flowlayout_pack_object_next(Evas_Object *obj, Evas_Object *child);
E_API void e_flowlayout_pack_options_set (Evas_Object *obj, int fill_w, int fill_h, int expand_w, int expand_h, double align_x, double align_y, Evas_Coord min_w, Evas_Coord min_h, Evas_Coord max_w, Evas_Coord max_h);
E_API void e_flowlayout_unpack (Evas_Object *obj);
E_API void e_flowlayout_size_min_get (Evas_Object *obj, Evas_Coord *minw, Evas_Coord *minh);
E_API void e_flowlayout_size_max_get (Evas_Object *obj, Evas_Coord *maxw, Evas_Coord *maxh);
E_API void e_flowlayout_align_get (Evas_Object *obj, double *ax, double *ay);
E_API void e_flowlayout_align_set (Evas_Object *obj, double ax, double ay);
/* This function only works if homogenous is set */
EAPI int e_flowlayout_max_children (Evas_Object *obj);
E_API int e_flowlayout_max_children (Evas_Object *obj);
#endif
#endif

View File

@ -887,7 +887,7 @@ e_fm2_shutdown(void)
return 1;
}
EAPI Evas_Object *
E_API Evas_Object *
e_fm2_add(Evas *evas)
{
return evas_object_smart_add(evas, _e_fm2_smart);
@ -1021,7 +1021,7 @@ _e_fm2_thread_cleanup_cb(void *d EINA_UNUSED, Ecore_Thread *et EINA_UNUSED)
_e_fm2_favorites_thread = NULL;
}
EAPI void
E_API void
e_fm2_path_set(Evas_Object *obj, const char *dev, const char *path)
{
const char *real_path;
@ -1163,49 +1163,49 @@ e_fm2_path_set(Evas_Object *obj, const char *dev, const char *path)
sd->tmp.iter = EINA_FALSE;
}
EAPI void
E_API void
e_fm2_underlay_show(Evas_Object *obj)
{
EFM_SMART_CHECK();
evas_object_show(sd->underlay);
}
EAPI void
E_API void
e_fm2_underlay_hide(Evas_Object *obj)
{
EFM_SMART_CHECK();
evas_object_hide(sd->underlay);
}
EAPI void
E_API void
e_fm2_all_unsel(Evas_Object *obj)
{
EFM_SMART_CHECK();
_e_fm2_icon_desel_any(obj);
}
EAPI void
E_API void
e_fm2_all_sel(Evas_Object *obj)
{
EFM_SMART_CHECK();
_e_fm2_icon_sel_any(obj);
}
EAPI void
E_API void
e_fm2_first_sel(Evas_Object *obj)
{
EFM_SMART_CHECK();
_e_fm2_icon_sel_first(obj, EINA_FALSE);
}
EAPI void
E_API void
e_fm2_last_sel(Evas_Object *obj)
{
EFM_SMART_CHECK();
_e_fm2_icon_sel_last(obj, EINA_FALSE);
}
EAPI void
E_API void
e_fm2_custom_theme_set(Evas_Object *obj, const char *path)
{
EFM_SMART_CHECK();
@ -1220,7 +1220,7 @@ e_fm2_custom_theme_set(Evas_Object *obj, const char *path)
"rubberband");
}
EAPI void
E_API void
e_fm2_custom_theme_content_set(Evas_Object *obj, const char *content)
{
EFM_SMART_CHECK();
@ -1233,7 +1233,7 @@ e_fm2_custom_theme_content_set(Evas_Object *obj, const char *content)
"overlay");
}
EAPI void
E_API void
e_fm2_path_get(Evas_Object *obj, const char **dev, const char **path)
{
if (dev) *dev = NULL;
@ -1400,7 +1400,7 @@ _e_fm2_dir_save_props(E_Fm2_Smart_Data *sd)
e_fm2_custom_file_flush();
}
EAPI void
E_API void
e_fm2_refresh(Evas_Object *obj)
{
EFM_SMART_CHECK();
@ -1426,7 +1426,7 @@ e_fm2_refresh(Evas_Object *obj)
sd->tmp.iter = EINA_FALSE;
}
EAPI int
E_API int
e_fm2_has_parent_get(Evas_Object *obj)
{
EFM_SMART_CHECK(0);
@ -1437,14 +1437,14 @@ e_fm2_has_parent_get(Evas_Object *obj)
return 1;
}
EAPI const char *
E_API const char *
e_fm2_real_path_get(Evas_Object *obj)
{
EFM_SMART_CHECK(NULL);
return sd->realpath;
}
EAPI void
E_API void
e_fm2_parent_go(Evas_Object *obj)
{
char *p, *path;
@ -1462,7 +1462,7 @@ e_fm2_parent_go(Evas_Object *obj)
}
}
EAPI void
E_API void
e_fm2_config_set(Evas_Object *obj, E_Fm2_Config *cfg)
{
EFM_SMART_CHECK();
@ -1479,14 +1479,14 @@ e_fm2_config_set(Evas_Object *obj, E_Fm2_Config *cfg)
sd->config->theme.icons = eina_stringshare_add(cfg->theme.icons);
}
EAPI E_Fm2_Config *
E_API E_Fm2_Config *
e_fm2_config_get(Evas_Object *obj)
{
EFM_SMART_CHECK(NULL);
return sd->config;
}
EAPI Eina_List *
E_API Eina_List *
e_fm2_selected_list_get(Evas_Object *obj)
{
Eina_List *list = NULL, *l;
@ -1498,7 +1498,7 @@ e_fm2_selected_list_get(Evas_Object *obj)
return list;
}
EAPI Eina_List *
E_API Eina_List *
e_fm2_all_list_get(Evas_Object *obj)
{
Eina_List *list = NULL, *l;
@ -1512,14 +1512,14 @@ e_fm2_all_list_get(Evas_Object *obj)
return list;
}
EAPI void
E_API void
e_fm2_deselect_all(Evas_Object *obj)
{
EFM_SMART_CHECK();
_e_fm2_icon_desel_any(obj);
}
EAPI void
E_API void
e_fm2_select_set(Evas_Object *obj, const char *file, int select_)
{
Eina_List *l;
@ -1542,7 +1542,7 @@ e_fm2_select_set(Evas_Object *obj, const char *file, int select_)
}
}
EAPI void
E_API void
e_fm2_file_show(Evas_Object *obj, const char *file)
{
Eina_List *l;
@ -1559,7 +1559,7 @@ e_fm2_file_show(Evas_Object *obj, const char *file)
}
}
EAPI void
E_API void
e_fm2_icon_menu_replace_callback_set(Evas_Object *obj, E_Fm_Cb func, void *data)
{
EFM_SMART_CHECK();
@ -1567,7 +1567,7 @@ e_fm2_icon_menu_replace_callback_set(Evas_Object *obj, E_Fm_Cb func, void *data)
sd->icon_menu.replace.data = data;
}
EAPI void
E_API void
e_fm2_icon_menu_start_extend_callback_set(Evas_Object *obj, E_Fm_Cb func, void *data)
{
EFM_SMART_CHECK();
@ -1575,7 +1575,7 @@ e_fm2_icon_menu_start_extend_callback_set(Evas_Object *obj, E_Fm_Cb func, void *
sd->icon_menu.start.data = data;
}
EAPI void
E_API void
e_fm2_icon_menu_end_extend_callback_set(Evas_Object *obj, E_Fm_Cb func, void *data)
{
EFM_SMART_CHECK();
@ -1583,42 +1583,42 @@ e_fm2_icon_menu_end_extend_callback_set(Evas_Object *obj, E_Fm_Cb func, void *da
sd->icon_menu.end.data = data;
}
EAPI void
E_API void
e_fm2_icon_menu_flags_set(Evas_Object *obj, E_Fm2_Menu_Flags flags)
{
EFM_SMART_CHECK();
sd->icon_menu.flags = flags;
}
EAPI E_Fm2_Menu_Flags
E_API E_Fm2_Menu_Flags
e_fm2_icon_menu_flags_get(Evas_Object *obj)
{
EFM_SMART_CHECK(0);
return sd->icon_menu.flags;
}
EAPI void
E_API void
e_fm2_view_flags_set(Evas_Object *obj, E_Fm2_View_Flags flags)
{
EFM_SMART_CHECK();
sd->view_flags = flags;
}
EAPI E_Fm2_View_Flags
E_API E_Fm2_View_Flags
e_fm2_view_flags_get(Evas_Object *obj)
{
EFM_SMART_CHECK(0);
return sd->view_flags;
}
EAPI E_Object *
E_API E_Object *
e_fm2_window_object_get(Evas_Object *obj)
{
EFM_SMART_CHECK(NULL);
return sd->eobj;
}
EAPI void
E_API void
e_fm2_window_object_set(Evas_Object *obj, E_Object *eobj)
{
const char *drop[] = {"text/uri-list", "text/x-moz-url", "XdndDirectSave0"};
@ -1639,7 +1639,7 @@ e_fm2_window_object_set(Evas_Object *obj, E_Object *eobj)
e_drop_handler_xds_set(sd->drop_handler, _e_fm2_cb_dnd_drop);
}
EAPI void
E_API void
e_fm2_window_set(Evas_Object *obj, Evas_Object *win)
{
const char *drop[] = {"text/uri-list", "text/x-moz-url", "XdndDirectSave0"};
@ -1721,14 +1721,14 @@ _e_fm2_icons_update_helper(E_Fm2_Smart_Data *sd, Eina_Bool icon_only)
e_fm2_custom_file_flush();
}
EAPI void
E_API void
e_fm2_icons_update(Evas_Object *obj)
{
EFM_SMART_CHECK();
_e_fm2_icons_update_helper(sd, EINA_FALSE);
}
EAPI void
E_API void
e_fm2_pan_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
{
EFM_SMART_CHECK();
@ -1743,7 +1743,7 @@ e_fm2_pan_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
sd->scroll_job = ecore_job_add(_e_fm2_cb_scroll_job, obj);
}
EAPI void
E_API void
e_fm2_pan_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y)
{
EFM_SMART_CHECK();
@ -1751,7 +1751,7 @@ e_fm2_pan_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y)
if (y) *y = sd->pos.y;
}
EAPI void
E_API void
e_fm2_pan_max_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y)
{
Evas_Coord mx, my;
@ -1764,7 +1764,7 @@ e_fm2_pan_max_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y)
if (y) *y = my;
}
EAPI void
E_API void
e_fm2_pan_child_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
{
EFM_SMART_CHECK();
@ -1772,7 +1772,7 @@ e_fm2_pan_child_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
if (h) *h = sd->max.h;
}
EAPI void
E_API void
e_fm2_all_icons_update(void)
{
Evas_Object *o;
@ -2252,7 +2252,7 @@ _e_fm2_icon_discover_get(Evas *evas, const E_Fm2_Icon *ic, Evas_Smart_Cb gen_fun
* @param force_gen force thumbnail generation.
* @param type_ret string that identifies type of icon.
*/
EAPI Evas_Object *
E_API Evas_Object *
e_fm2_icon_get(Evas *evas, E_Fm2_Icon *ic,
Evas_Smart_Cb gen_func,
void *data, int force_gen, const char **type_ret)
@ -2338,14 +2338,14 @@ e_fm2_icon_get(Evas *evas, E_Fm2_Icon *ic,
return _e_fm2_icon_explicit_theme_get(evas, ic, "text/plain", type_ret);
}
EAPI E_Fm2_Icon_Info *
E_API E_Fm2_Icon_Info *
e_fm2_icon_file_info_get(E_Fm2_Icon *ic)
{
if (!ic) return NULL;
return &(ic->info);
}
EAPI void
E_API void
e_fm2_icon_geometry_get(E_Fm2_Icon *ic, int *x, int *y, int *w, int *h)
{
int xx, yy, ww, hh;
@ -2566,7 +2566,7 @@ _e_fm2_client_file_mkdir(const char *path, const char *rel, int rel_to, int x, i
#endif
EAPI int
E_API int
e_fm2_client_file_move(Evas_Object *e_fm, const char *args)
{
int id;
@ -2577,7 +2577,7 @@ e_fm2_client_file_move(Evas_Object *e_fm, const char *args)
return id;
}
EAPI int
E_API int
e_fm2_client_file_copy(Evas_Object *e_fm, const char *args)
{
int id = _e_fm_client_send_new(E_FM_OP_COPY, (void *)args, strlen(args) + 1);
@ -2585,7 +2585,7 @@ e_fm2_client_file_copy(Evas_Object *e_fm, const char *args)
return id;
}
EAPI int
E_API int
e_fm2_client_file_symlink(Evas_Object *e_fm, const char *args)
{
int id = _e_fm_client_send_new(E_FM_OP_SYMLINK, (void *)args, strlen(args) + 1);
@ -2593,7 +2593,7 @@ e_fm2_client_file_symlink(Evas_Object *e_fm, const char *args)
return id;
}
EAPI int
E_API int
_e_fm2_client_mount(const char *udi, const char *mountpoint)
{
char *d;
@ -2618,7 +2618,7 @@ _e_fm2_client_mount(const char *udi, const char *mountpoint)
return _e_fm_client_send_new(E_FM_OP_MOUNT, (void *)d, l);
}
EAPI int
E_API int
_e_fm2_client_unmount(const char *udi)
{
char *d;
@ -2637,7 +2637,7 @@ _e_fm2_client_unmount(const char *udi)
return _e_fm_client_send_new(E_FM_OP_UNMOUNT, (void *)d, l);
}
EAPI int
E_API int
_e_fm2_client_eject(const char *udi)
{
char *data;
@ -2691,7 +2691,7 @@ _e_fm2_client_monitor_list_end(Evas_Object *obj)
_e_fm2_live_process_begin(obj);
}
EAPI void
E_API void
_e_fm2_file_force_update(const char *path)
{
Evas_Object *o;
@ -2731,7 +2731,7 @@ _e_fm2_file_force_update(const char *path)
free(dir);
}
EAPI void
E_API void
e_fm2_client_data(Ecore_Ipc_Event_Client_Data *e)
{
Evas_Object *obj;
@ -3237,7 +3237,7 @@ e_fm2_client_data(Ecore_Ipc_Event_Client_Data *e)
}
}
EAPI void
E_API void
e_fm2_client_del(Ecore_Ipc_Event_Client_Del *e)
{
Eina_List *l;
@ -5154,7 +5154,7 @@ _e_fm2_icon_desktop_url_eval(const char *val)
return s;
}
EAPI const char *
E_API const char *
e_fm2_desktop_url_eval(const char *val)
{
return _e_fm2_icon_desktop_url_eval(val);
@ -7789,6 +7789,7 @@ _e_fm2_cb_icon_thumb_gen(void *data, Evas_Object *obj, void *event_info EINA_UNU
_e_fm2_icon_icon_set(ic);
}
#if 0
static void
_e_fm2_cb_focus_in(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
@ -7797,6 +7798,7 @@ _e_fm2_cb_focus_in(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED
if (sd->iop_icon && sd->iop_icon->entry_widget)
e_widget_focus_set(sd->iop_icon->entry_widget, 1);
}
#endif
static void
_e_fm2_cb_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info)
@ -11536,7 +11538,7 @@ _e_fm2_operation_abort_internal(E_Fm2_Op_Registry_Entry *ere)
_e_fm_client_send(E_FM_OP_ABORT, ere->id, NULL, 0);
}
EAPI void
E_API void
e_fm2_operation_abort(int id)
{
E_Fm2_Op_Registry_Entry *ere;
@ -11549,7 +11551,7 @@ e_fm2_operation_abort(int id)
e_fm2_op_registry_entry_unref(ere);
}
EAPI Eina_Bool
E_API Eina_Bool
e_fm2_optimal_size_calc(Evas_Object *obj, int minw, int maxw, int maxh, int *w, int *h)
{
int x, y, step_w, step_h;
@ -11587,28 +11589,28 @@ e_fm2_optimal_size_calc(Evas_Object *obj, int minw, int maxw, int maxh, int *w,
return EINA_TRUE;
}
EAPI E_Fm2_View_Mode
E_API E_Fm2_View_Mode
e_fm2_view_mode_get(Evas_Object *obj)
{
EFM_SMART_CHECK(0);
return _e_fm2_view_mode_get(sd);
}
EAPI Eina_Bool
E_API Eina_Bool
e_fm2_typebuf_visible_get(Evas_Object *obj)
{
EFM_SMART_CHECK(EINA_FALSE);
return sd->typebuf_visible;
}
EAPI void
E_API void
e_fm2_typebuf_clear(Evas_Object *obj)
{
EFM_SMART_CHECK();
_e_fm2_typebuf_hide(obj);
}
EAPI void
E_API void
e_fm2_overlay_clip_to(Evas_Object *obj, Evas_Object *clip)
{
int x, y, w, h;
@ -11636,13 +11638,13 @@ e_fm2_overlay_clip_to(Evas_Object *obj, Evas_Object *clip)
}
}
EAPI const char *
E_API const char *
e_fm2_real_path_map(const char *dev, const char *path)
{
return _e_fm2_dev_path_map(NULL, dev, path);
}
EAPI void
E_API void
e_fm2_favorites_init(void)
{
Eina_List *files;
@ -11665,21 +11667,21 @@ e_fm2_favorites_init(void)
}
}
EAPI unsigned int
E_API unsigned int
e_fm2_selected_count(Evas_Object *obj)
{
EFM_SMART_CHECK(0);
return eina_list_count(sd->selected_icons);
}
EAPI E_Fm2_Icon_Info *
E_API E_Fm2_Icon_Info *
e_fm2_drop_icon_get(Evas_Object *obj)
{
EFM_SMART_CHECK(NULL);
return sd->drop_icon ? &sd->drop_icon->info : NULL;
}
EAPI Eina_List *
E_API Eina_List *
e_fm2_uri_path_list_get(const Eina_List *uri_list)
{
E_Fm2_Uri *uri;
@ -11711,7 +11713,7 @@ e_fm2_uri_path_list_get(const Eina_List *uri_list)
return path_list;
}
EAPI Efreet_Desktop *
E_API Efreet_Desktop *
e_fm2_desktop_get(Evas_Object *obj)
{
EFM_SMART_CHECK(NULL);
@ -11719,7 +11721,7 @@ e_fm2_desktop_get(Evas_Object *obj)
return sd->desktop;
}
EAPI void
E_API void
e_fm2_drop_menu(Evas_Object *obj, char *args)
{
E_Menu *menu;
@ -11778,7 +11780,7 @@ error:
sd->menu = NULL;
}
EAPI E_Fm2_Icon *
E_API E_Fm2_Icon *
e_fm2_icon_editing_get(Evas_Object *obj)
{
EFM_SMART_CHECK(NULL);

View File

@ -150,78 +150,78 @@ typedef void (*E_Fm_Cb)(void *data, Evas_Object *obj, E_Menu *m, E_Fm2_Icon_Info
EINTERN int e_fm2_init(void);
EINTERN int e_fm2_shutdown(void);
EAPI Evas_Object *e_fm2_add(Evas *evas);
EAPI void e_fm2_path_set(Evas_Object *obj, const char *dev, const char *path);
EAPI void e_fm2_custom_theme_set(Evas_Object *obj, const char *path);
EAPI void e_fm2_custom_theme_content_set(Evas_Object *obj, const char *content);
EAPI void e_fm2_underlay_show(Evas_Object *obj);
EAPI void e_fm2_underlay_hide(Evas_Object *obj);
EAPI void e_fm2_all_unsel(Evas_Object *obj);
EAPI void e_fm2_all_sel(Evas_Object *obj);
EAPI void e_fm2_first_sel(Evas_Object *obj);
EAPI void e_fm2_last_sel(Evas_Object *obj);
EAPI void e_fm2_path_get(Evas_Object *obj, const char **dev, const char **path);
EAPI void e_fm2_refresh(Evas_Object *obj);
EAPI const char *e_fm2_real_path_get(Evas_Object *obj);
EAPI int e_fm2_has_parent_get(Evas_Object *obj);
EAPI void e_fm2_parent_go(Evas_Object *obj);
EAPI void e_fm2_config_set(Evas_Object *obj, E_Fm2_Config *cfg);
EAPI E_Fm2_Config *e_fm2_config_get(Evas_Object *obj);
EAPI Eina_List *e_fm2_selected_list_get(Evas_Object *obj);
EAPI Eina_List *e_fm2_all_list_get(Evas_Object *obj);
EAPI void e_fm2_select_set(Evas_Object *obj, const char *file, int select);
EAPI void e_fm2_deselect_all(Evas_Object *obj);
EAPI void e_fm2_file_show(Evas_Object *obj, const char *file);
EAPI void e_fm2_icon_menu_replace_callback_set(Evas_Object *obj, E_Fm_Cb func, void *data);
EAPI void e_fm2_icon_menu_start_extend_callback_set(Evas_Object *obj, E_Fm_Cb func, void *data);
EAPI void e_fm2_icon_menu_end_extend_callback_set(Evas_Object *obj, E_Fm_Cb func, void *data);
EAPI void e_fm2_icon_menu_flags_set(Evas_Object *obj, E_Fm2_Menu_Flags flags);
EAPI E_Fm2_Menu_Flags e_fm2_icon_menu_flags_get(Evas_Object *obj);
EAPI void e_fm2_view_flags_set(Evas_Object *obj, E_Fm2_View_Flags flags);
EAPI E_Fm2_View_Flags e_fm2_view_flags_get(Evas_Object *obj);
EAPI E_Object *e_fm2_window_object_get(Evas_Object *obj);
EAPI void e_fm2_window_object_set(Evas_Object *obj, E_Object *eobj);
EAPI void e_fm2_window_set(Evas_Object *obj, Evas_Object *win);
EAPI void e_fm2_icons_update(Evas_Object *obj);
E_API Evas_Object *e_fm2_add(Evas *evas);
E_API void e_fm2_path_set(Evas_Object *obj, const char *dev, const char *path);
E_API void e_fm2_custom_theme_set(Evas_Object *obj, const char *path);
E_API void e_fm2_custom_theme_content_set(Evas_Object *obj, const char *content);
E_API void e_fm2_underlay_show(Evas_Object *obj);
E_API void e_fm2_underlay_hide(Evas_Object *obj);
E_API void e_fm2_all_unsel(Evas_Object *obj);
E_API void e_fm2_all_sel(Evas_Object *obj);
E_API void e_fm2_first_sel(Evas_Object *obj);
E_API void e_fm2_last_sel(Evas_Object *obj);
E_API void e_fm2_path_get(Evas_Object *obj, const char **dev, const char **path);
E_API void e_fm2_refresh(Evas_Object *obj);
E_API const char *e_fm2_real_path_get(Evas_Object *obj);
E_API int e_fm2_has_parent_get(Evas_Object *obj);
E_API void e_fm2_parent_go(Evas_Object *obj);
E_API void e_fm2_config_set(Evas_Object *obj, E_Fm2_Config *cfg);
E_API E_Fm2_Config *e_fm2_config_get(Evas_Object *obj);
E_API Eina_List *e_fm2_selected_list_get(Evas_Object *obj);
E_API Eina_List *e_fm2_all_list_get(Evas_Object *obj);
E_API void e_fm2_select_set(Evas_Object *obj, const char *file, int select);
E_API void e_fm2_deselect_all(Evas_Object *obj);
E_API void e_fm2_file_show(Evas_Object *obj, const char *file);
E_API void e_fm2_icon_menu_replace_callback_set(Evas_Object *obj, E_Fm_Cb func, void *data);
E_API void e_fm2_icon_menu_start_extend_callback_set(Evas_Object *obj, E_Fm_Cb func, void *data);
E_API void e_fm2_icon_menu_end_extend_callback_set(Evas_Object *obj, E_Fm_Cb func, void *data);
E_API void e_fm2_icon_menu_flags_set(Evas_Object *obj, E_Fm2_Menu_Flags flags);
E_API E_Fm2_Menu_Flags e_fm2_icon_menu_flags_get(Evas_Object *obj);
E_API void e_fm2_view_flags_set(Evas_Object *obj, E_Fm2_View_Flags flags);
E_API E_Fm2_View_Flags e_fm2_view_flags_get(Evas_Object *obj);
E_API E_Object *e_fm2_window_object_get(Evas_Object *obj);
E_API void e_fm2_window_object_set(Evas_Object *obj, E_Object *eobj);
E_API void e_fm2_window_set(Evas_Object *obj, Evas_Object *win);
E_API void e_fm2_icons_update(Evas_Object *obj);
EAPI void e_fm2_pan_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
EAPI void e_fm2_pan_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y);
EAPI void e_fm2_pan_max_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y);
EAPI void e_fm2_pan_child_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
E_API void e_fm2_pan_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
E_API void e_fm2_pan_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y);
E_API void e_fm2_pan_max_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y);
E_API void e_fm2_pan_child_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
EAPI void e_fm2_all_icons_update(void);
E_API void e_fm2_all_icons_update(void);
EAPI void e_fm2_operation_abort(int id);
E_API void e_fm2_operation_abort(int id);
EAPI Evas_Object *e_fm2_icon_get(Evas *evas, E_Fm2_Icon *ic, Evas_Smart_Cb gen_func,
E_API Evas_Object *e_fm2_icon_get(Evas *evas, E_Fm2_Icon *ic, Evas_Smart_Cb gen_func,
void *data, int force_gen, const char **type_ret);
EAPI E_Fm2_Icon_Info *e_fm2_icon_file_info_get(E_Fm2_Icon *ic);
EAPI void e_fm2_icon_geometry_get(E_Fm2_Icon *ic, int *x, int *y, int *w, int *h);
EAPI Eina_Bool e_fm2_typebuf_visible_get(Evas_Object *obj);
EAPI void e_fm2_typebuf_clear(Evas_Object *obj);
EAPI void e_fm2_overlay_clip_to(Evas_Object *fm, Evas_Object *clip);
E_API E_Fm2_Icon_Info *e_fm2_icon_file_info_get(E_Fm2_Icon *ic);
E_API void e_fm2_icon_geometry_get(E_Fm2_Icon *ic, int *x, int *y, int *w, int *h);
E_API Eina_Bool e_fm2_typebuf_visible_get(Evas_Object *obj);
E_API void e_fm2_typebuf_clear(Evas_Object *obj);
E_API void e_fm2_overlay_clip_to(Evas_Object *fm, Evas_Object *clip);
EAPI void e_fm2_client_data(Ecore_Ipc_Event_Client_Data *e);
EAPI void e_fm2_client_del(Ecore_Ipc_Event_Client_Del *e);
EAPI E_Fm2_View_Mode e_fm2_view_mode_get(Evas_Object *obj);
EAPI Eina_Bool e_fm2_optimal_size_calc(Evas_Object *obj, int minw, int maxw, int maxh, int *w, int *h);
EAPI const char *e_fm2_real_path_map(const char *dev, const char *path);
EAPI void e_fm2_favorites_init(void);
EAPI unsigned int e_fm2_selected_count(Evas_Object *obj);
EAPI const char *e_fm2_desktop_url_eval(const char *val);
EAPI E_Fm2_Icon_Info *e_fm2_drop_icon_get(Evas_Object *obj);
EAPI void e_fm2_drop_menu(Evas_Object *e_fm, char *args);
EAPI Eina_List *e_fm2_uri_path_list_get(const Eina_List *uri_list);
EAPI Efreet_Desktop *e_fm2_desktop_get(Evas_Object *obj);
E_API void e_fm2_client_data(Ecore_Ipc_Event_Client_Data *e);
E_API void e_fm2_client_del(Ecore_Ipc_Event_Client_Del *e);
E_API E_Fm2_View_Mode e_fm2_view_mode_get(Evas_Object *obj);
E_API Eina_Bool e_fm2_optimal_size_calc(Evas_Object *obj, int minw, int maxw, int maxh, int *w, int *h);
E_API const char *e_fm2_real_path_map(const char *dev, const char *path);
E_API void e_fm2_favorites_init(void);
E_API unsigned int e_fm2_selected_count(Evas_Object *obj);
E_API const char *e_fm2_desktop_url_eval(const char *val);
E_API E_Fm2_Icon_Info *e_fm2_drop_icon_get(Evas_Object *obj);
E_API void e_fm2_drop_menu(Evas_Object *e_fm, char *args);
E_API Eina_List *e_fm2_uri_path_list_get(const Eina_List *uri_list);
E_API Efreet_Desktop *e_fm2_desktop_get(Evas_Object *obj);
EAPI int e_fm2_client_file_move(Evas_Object *e_fm, const char *args);
EAPI int e_fm2_client_file_copy(Evas_Object *e_fm, const char *args);
EAPI int e_fm2_client_file_symlink(Evas_Object *e_fm, const char *args);
E_API int e_fm2_client_file_move(Evas_Object *e_fm, const char *args);
E_API int e_fm2_client_file_copy(Evas_Object *e_fm, const char *args);
E_API int e_fm2_client_file_symlink(Evas_Object *e_fm, const char *args);
EAPI int _e_fm2_client_mount(const char *udi, const char *mountpoint);
EAPI int _e_fm2_client_unmount(const char *udi);
EAPI void _e_fm2_file_force_update(const char *path);
E_API int _e_fm2_client_mount(const char *udi, const char *mountpoint);
E_API int _e_fm2_client_unmount(const char *udi);
E_API void _e_fm2_file_force_update(const char *path);
EAPI E_Fm2_Icon *e_fm2_icon_editing_get(Evas_Object *obj);
E_API E_Fm2_Icon *e_fm2_icon_editing_get(Evas_Object *obj);
#endif
#endif

View File

@ -1,6 +1,7 @@
#ifndef E_FM_IPC_H
#define E_FM_IPC_H
#include "e_fm_main.h"
#include "e_fm_shared_types.h"
int _e_fm_ipc_init(void);
@ -9,16 +10,16 @@ Eina_Bool _e_fm_ipc_slave_error_cb(void *data, int type, void *event);
Eina_Bool _e_fm_ipc_slave_del_cb(void *data, int type, void *event);
void e_fm_ipc_volume_add(E_Volume *v);
EAPI E_Storage *e_storage_add(const char *udi);
EAPI void e_storage_del(const char *udi);
EAPI E_Storage *e_storage_find(const char *udi);
E_API E_Storage *e_storage_add(const char *udi);
E_API void e_storage_del(const char *udi);
E_API E_Storage *e_storage_find(const char *udi);
EAPI E_Volume *e_volume_add(const char *udi, char first_time);
EAPI void e_volume_del(const char *udi);
EAPI E_Volume *e_volume_find(const char *udi);
E_API E_Volume *e_volume_add(const char *udi, char first_time);
E_API void e_volume_del(const char *udi);
E_API E_Volume *e_volume_find(const char *udi);
EAPI void e_volume_mount(E_Volume *v);
EAPI void e_volume_unmount(E_Volume *v);
EAPI void e_volume_eject(E_Volume *v);
E_API void e_volume_mount(E_Volume *v);
E_API void e_volume_unmount(E_Volume *v);
E_API void e_volume_eject(E_Volume *v);
#endif

View File

@ -46,6 +46,8 @@ void *alloca (size_t);
#include <Ecore_File.h>
#include <Eet.h>
#include "e_fm_main.h"
#define E_TYPEDEFS
#include "e_config_data.h"
#include "e_fm_op.h"
@ -77,8 +79,8 @@ static Efm_Mode mode = EFM_MODE_USING_RASTER_MOUNT;
*
*/
#ifndef EAPI
#define EAPI
#ifndef E_API
#define E_API
#endif
#include "e_fm_main.h"
@ -217,7 +219,7 @@ _e_volume_free(E_Volume *v)
/* API functions */
EAPI void
E_API void
e_volume_mount(E_Volume *v)
{
switch (mode)
@ -242,7 +244,7 @@ e_volume_mount(E_Volume *v)
}
EAPI void
E_API void
e_volume_unmount(E_Volume *v)
{
switch (mode)
@ -266,7 +268,7 @@ e_volume_unmount(E_Volume *v)
}
}
EAPI void
E_API void
e_volume_eject(E_Volume *v)
{
switch (mode)
@ -290,7 +292,7 @@ e_volume_eject(E_Volume *v)
}
}
EAPI E_Volume *
E_API E_Volume *
e_volume_find(const char *udi)
{
switch (mode)
@ -312,7 +314,7 @@ e_volume_find(const char *udi)
return NULL;
}
EAPI void
E_API void
e_storage_del(const char *udi)
{
switch (mode)
@ -336,7 +338,7 @@ e_storage_del(const char *udi)
}
}
EAPI E_Storage *
E_API E_Storage *
e_storage_find(const char *udi)
{
switch (mode)

View File

@ -13,6 +13,31 @@
#define ERR(...) EINA_LOG_DOM_ERR(efm_log_dom, __VA_ARGS__)
#define CRI(...) EINA_LOG_DOM_CRIT(efm_log_dom, __VA_ARGS__)
# ifdef E_API
# undef E_API
# endif
# ifdef WIN32
# ifdef BUILDING_DLL
# define E_API __declspec(dllexport)
# else
# define E_API __declspec(dllimport)
# endif
# else
# ifdef __GNUC__
# if __GNUC__ >= 4
/* BROKEN in gcc 4 on amd64 */
# if 0
# pragma GCC visibility push(hidden)
# endif
# define E_API __attribute__ ((visibility("default")))
# else
# define E_API
# endif
# else
# define E_API
# endif
# endif
extern Ecore_Ipc_Server *_e_fm_ipc_server;
extern int efm_log_dom;

View File

@ -919,7 +919,9 @@ _volume_eject_umount_cb(void *data, const Eldbus_Message *msg, Eldbus_Pending *p
E_Volume *v = data;
if (eldbus_message_error_get(msg, &name, &txt))
ERR("%s: %s", name, txt);
{
ERR("%s: %s", name, txt);
}
else if (v->optype == E_VOLUME_OP_TYPE_EJECT)
{
vols_ejecting = eina_list_remove(vols_ejecting, v);

View File

@ -12,6 +12,31 @@
#include <Efreet.h>
#include <Eldbus.h>
# ifdef E_API
# undef E_API
# endif
# ifdef WIN32
# ifdef BUILDING_DLL
# define E_API __declspec(dllexport)
# else
# define E_API __declspec(dllimport)
# endif
# else
# ifdef __GNUC__
# if __GNUC__ >= 4
/* BROKEN in gcc 4 on amd64 */
# if 0
# pragma GCC visibility push(hidden)
# endif
# define E_API __attribute__ ((visibility("default")))
# else
# define E_API
# endif
# else
# define E_API
# endif
# endif
static Eldbus_Connection *conn = NULL;
static int retval = EXIT_SUCCESS;
static int pending = 0;
@ -136,7 +161,7 @@ static const Ecore_Getopt options = {
}
};
EAPI int
E_API int
main(int argc, char *argv[])
{
Eina_Bool quit_option = EINA_FALSE;

View File

@ -103,7 +103,7 @@ e_fm2_custom_file_shutdown(void)
_e_fm2_custom_dir_edd = NULL;
}
EAPI E_Fm2_Custom_File *
E_API E_Fm2_Custom_File *
e_fm2_custom_file_get(const char *path)
{
E_Fm2_Custom_File *cf;
@ -146,7 +146,7 @@ _e_fm2_custom_dir_dup(const E_Fm2_Custom_Dir *dir)
return copy;
}
EAPI E_Fm2_Custom_File *
E_API E_Fm2_Custom_File *
e_fm2_custom_file_dup(const E_Fm2_Custom_File *cf)
{
E_Fm2_Custom_File *copy;
@ -163,7 +163,7 @@ e_fm2_custom_file_dup(const E_Fm2_Custom_File *cf)
return copy;
}
EAPI void
E_API void
e_fm2_custom_file_set(const char *path, const E_Fm2_Custom_File *cf)
{
E_Fm2_Custom_File *cf1;
@ -189,7 +189,7 @@ e_fm2_custom_file_set(const char *path, const E_Fm2_Custom_File *cf)
_e_fm2_custom_writes = 1;
}
EAPI void
E_API void
e_fm2_custom_file_del(const char *path)
{
Eina_List *list, *l;
@ -217,7 +217,7 @@ e_fm2_custom_file_del(const char *path)
_e_fm2_custom_writes = 1;
}
EAPI void
E_API void
e_fm2_custom_file_rename(const char *path, const char *new_path)
{
E_Fm2_Custom_File *cf, *cf2;
@ -260,7 +260,7 @@ e_fm2_custom_file_rename(const char *path, const char *new_path)
_e_fm2_custom_writes = 1;
}
EAPI void
E_API void
e_fm2_custom_file_flush(void)
{
if (!_e_fm2_custom_file) return;

View File

@ -53,13 +53,13 @@ struct _E_Fm2_Custom_File
EINTERN int e_fm2_custom_file_init(void);
EINTERN void e_fm2_custom_file_shutdown(void);
EAPI E_Fm2_Custom_File *e_fm2_custom_file_get(const char *path);
EAPI void e_fm2_custom_file_set(const char *path, const E_Fm2_Custom_File *cf);
EAPI void e_fm2_custom_file_del(const char *path);
EAPI void e_fm2_custom_file_rename(const char *path, const char *new_path);
EAPI void e_fm2_custom_file_flush(void);
E_API E_Fm2_Custom_File *e_fm2_custom_file_get(const char *path);
E_API void e_fm2_custom_file_set(const char *path, const E_Fm2_Custom_File *cf);
E_API void e_fm2_custom_file_del(const char *path);
E_API void e_fm2_custom_file_rename(const char *path, const char *new_path);
E_API void e_fm2_custom_file_flush(void);
EAPI E_Fm2_Custom_File *e_fm2_custom_file_dup(const E_Fm2_Custom_File *cf);
E_API E_Fm2_Custom_File *e_fm2_custom_file_dup(const E_Fm2_Custom_File *cf);
#endif
#endif

View File

@ -119,7 +119,7 @@ _e_fm2_device_volume_setup(E_Volume *v)
E_FREE(size);
}
EAPI void
E_API void
e_fm2_device_storage_add(E_Storage *s)
{
Eina_List *l;
@ -185,7 +185,7 @@ e_fm2_device_storage_add(E_Storage *s)
}
}
EAPI void
E_API void
e_fm2_device_storage_del(E_Storage *s)
{
// printf("STO- %s\n", s->udi);
@ -193,7 +193,7 @@ e_fm2_device_storage_del(E_Storage *s)
_e_fm_shared_device_storage_free(s);
}
EAPI E_Storage *
E_API E_Storage *
e_fm2_device_storage_find(const char *udi)
{
Eina_List *l;
@ -207,7 +207,7 @@ e_fm2_device_storage_find(const char *udi)
return NULL;
}
EAPI void
E_API void
e_fm2_device_volume_add(E_Volume *v)
{
E_Storage *s;
@ -280,7 +280,7 @@ e_fm2_device_volume_add(E_Volume *v)
if (v->storage) _e_fm2_device_volume_setup(v);
}
EAPI void
E_API void
e_fm2_device_volume_del(E_Volume *v)
{
E_Fm2_Mount *m;
@ -376,7 +376,7 @@ _e_fm2_volume_erase(E_Volume *v)
_e_fm2_file_force_update(buf);
}
EAPI E_Volume *
E_API E_Volume *
e_fm2_device_volume_find(const char *udi)
{
Eina_List *l;
@ -393,7 +393,7 @@ e_fm2_device_volume_find(const char *udi)
return NULL;
}
EAPI E_Volume *
E_API E_Volume *
e_fm2_device_volume_find_fast(const char *udi)
{
Eina_List *l;
@ -407,7 +407,7 @@ e_fm2_device_volume_find_fast(const char *udi)
return NULL;
}
EAPI const char *
E_API const char *
e_fm2_device_volume_mountpoint_get(E_Volume *v)
{
char buf[PATH_MAX] = {0};
@ -436,7 +436,7 @@ e_fm2_device_volume_mountpoint_get(E_Volume *v)
return eina_stringshare_add(buf);
}
EAPI E_Fm2_Device_Mount_Op *
E_API E_Fm2_Device_Mount_Op *
e_fm2_device_mount_op_add(E_Fm2_Mount *m, char *args, size_t size, size_t length)
{
E_Fm2_Device_Mount_Op *mop;
@ -446,7 +446,7 @@ e_fm2_device_mount_op_add(E_Fm2_Mount *m, char *args, size_t size, size_t length
return mop;
}
EAPI void
E_API void
e_fm2_device_mount_add(E_Volume *v,
const char *mountpoint)
{
@ -458,7 +458,7 @@ e_fm2_device_mount_add(E_Volume *v,
// printf("MOUNT %s %s\n", v->udi, v->mount_point);
}
EAPI void
E_API void
e_fm2_device_mount_del(E_Volume *v)
{
E_Fm2_Mount *m;
@ -477,7 +477,7 @@ e_fm2_device_mount_del(E_Volume *v)
}
}
EAPI void
E_API void
e_fm2_device_mount_free(E_Fm2_Mount *m)
{
if (!m) return;
@ -488,7 +488,7 @@ e_fm2_device_mount_free(E_Fm2_Mount *m)
free(m);
}
EAPI E_Fm2_Mount *
E_API E_Fm2_Mount *
e_fm2_device_mount_find(const char *path)
{
Eina_List *l;
@ -507,7 +507,7 @@ e_fm2_device_mount_find(const char *path)
return NULL;
}
EAPI E_Fm2_Mount *
E_API E_Fm2_Mount *
e_fm2_device_mount(E_Volume *v,
Ecore_Cb mount_ok,
Ecore_Cb mount_fail,
@ -547,7 +547,7 @@ e_fm2_device_mount(E_Volume *v,
return m;
}
EAPI void
E_API void
e_fm2_device_mount_fail(E_Volume *v)
{
E_Fm2_Mount *m;
@ -566,7 +566,7 @@ e_fm2_device_mount_fail(E_Volume *v)
}
}
EAPI void
E_API void
e_fm2_device_unmount(E_Fm2_Mount *m)
{
E_Volume *v;
@ -587,7 +587,7 @@ e_fm2_device_unmount(E_Fm2_Mount *m)
}
}
EAPI void
E_API void
e_fm2_device_unmount_fail(E_Volume *v)
{
Eina_List *l;
@ -688,7 +688,7 @@ _e_fm2_device_check_desktop_icons_cb(void *data, Ecore_Thread *eth EINA_UNUSED)
E_FREE_LIST(data, free);
}
EAPI void
E_API void
e_fm2_device_show_desktop_icons(void)
{
Eina_List *l;
@ -726,7 +726,7 @@ e_fm2_device_show_desktop_icons(void)
}
}
EAPI void
E_API void
e_fm2_device_hide_desktop_icons(void)
{
Eina_List *l;
@ -759,7 +759,7 @@ e_fm2_device_hide_desktop_icons(void)
}
}
EAPI void
E_API void
e_fm2_device_check_desktop_icons(void)
{
Eina_List *l, *thd = NULL;
@ -782,7 +782,7 @@ e_fm2_device_check_desktop_icons(void)
_check_vols = ecore_thread_run(_e_fm2_device_check_desktop_icons_cb, _e_fm2_device_check_desktop_icons_cb_end, _e_fm2_device_check_desktop_icons_cb_end, thd);
}
EAPI Eina_List *
E_API Eina_List *
e_fm2_device_volume_list_get(void)
{
return _e_vols;

View File

@ -4,32 +4,32 @@
#include "e.h"
#include "e_fm.h"
EAPI void e_fm2_device_storage_add(E_Storage *s);
EAPI void e_fm2_device_storage_del(E_Storage *s);
EAPI E_Storage *e_fm2_device_storage_find(const char *udi);
E_API void e_fm2_device_storage_add(E_Storage *s);
E_API void e_fm2_device_storage_del(E_Storage *s);
E_API E_Storage *e_fm2_device_storage_find(const char *udi);
EAPI void e_fm2_device_volume_add(E_Volume *s);
EAPI void e_fm2_device_volume_del(E_Volume *s);
EAPI E_Volume *e_fm2_device_volume_find(const char *udi);
EAPI E_Volume *e_fm2_device_volume_find_fast(const char *udi);
EAPI const char *e_fm2_device_volume_mountpoint_get(E_Volume *v);
E_API void e_fm2_device_volume_add(E_Volume *s);
E_API void e_fm2_device_volume_del(E_Volume *s);
E_API E_Volume *e_fm2_device_volume_find(const char *udi);
E_API E_Volume *e_fm2_device_volume_find_fast(const char *udi);
E_API const char *e_fm2_device_volume_mountpoint_get(E_Volume *v);
EAPI void e_fm2_device_mount_add(E_Volume *v, const char *mountpoint);
EAPI E_Fm2_Device_Mount_Op *e_fm2_device_mount_op_add(E_Fm2_Mount *m, char *args, size_t size, size_t length);
EAPI void e_fm2_device_mount_free(E_Fm2_Mount *m) EINA_ARG_NONNULL(1);
EAPI void e_fm2_device_mount_del(E_Volume *v);
EAPI E_Fm2_Mount *e_fm2_device_mount_find(const char *path);
EAPI E_Fm2_Mount *e_fm2_device_mount(E_Volume *v,
E_API void e_fm2_device_mount_add(E_Volume *v, const char *mountpoint);
E_API E_Fm2_Device_Mount_Op *e_fm2_device_mount_op_add(E_Fm2_Mount *m, char *args, size_t size, size_t length);
E_API void e_fm2_device_mount_free(E_Fm2_Mount *m) EINA_ARG_NONNULL(1);
E_API void e_fm2_device_mount_del(E_Volume *v);
E_API E_Fm2_Mount *e_fm2_device_mount_find(const char *path);
E_API E_Fm2_Mount *e_fm2_device_mount(E_Volume *v,
Ecore_Cb mount_ok, Ecore_Cb mount_fail,
Ecore_Cb unmount_ok, Ecore_Cb unmount_fail,
void *data);
EAPI void e_fm2_device_mount_fail(E_Volume *v);
EAPI void e_fm2_device_unmount(E_Fm2_Mount *m);
EAPI void e_fm2_device_unmount_fail(E_Volume *v);
E_API void e_fm2_device_mount_fail(E_Volume *v);
E_API void e_fm2_device_unmount(E_Fm2_Mount *m);
E_API void e_fm2_device_unmount_fail(E_Volume *v);
EAPI void e_fm2_device_show_desktop_icons(void);
EAPI void e_fm2_device_hide_desktop_icons(void);
EAPI void e_fm2_device_check_desktop_icons(void);
EAPI Eina_List *e_fm2_device_volume_list_get(void);
E_API void e_fm2_device_show_desktop_icons(void);
E_API void e_fm2_device_hide_desktop_icons(void);
E_API void e_fm2_device_check_desktop_icons(void);
E_API Eina_List *e_fm2_device_volume_list_get(void);
#endif

View File

@ -17,7 +17,7 @@ static Eina_Hash *_mime_handlers = NULL;
static Eina_Hash *_glob_handlers = NULL;
/* externally accessible functions */
EAPI const char *
E_API const char *
e_fm_mime_filename_get(const char *fname)
{
return efreet_mime_globs_type_get(fname);
@ -30,7 +30,7 @@ e_fm_mime_filename_get(const char *fname)
* "/path/to/file....edj" = explicit icon edje file
* "/path/to/file..." = explicit image file to use
*/
EAPI const char *
E_API const char *
e_fm_mime_icon_get(const char *mime)
{
char buf[4096], buf2[4096], *val;
@ -125,7 +125,7 @@ ok:
return val;
}
EAPI void
E_API void
e_fm_mime_icon_cache_flush(void)
{
Eina_List *freelist = NULL;
@ -137,7 +137,7 @@ e_fm_mime_icon_cache_flush(void)
}
/* create (allocate), set properties, and return a new mime handler */
EAPI E_Fm2_Mime_Handler *
E_API E_Fm2_Mime_Handler *
e_fm2_mime_handler_new(const char *label, const char *icon_group, void (*action_func)(void *data, Evas_Object *obj, const char *path), void *action_data, int(test_func) (void *data, Evas_Object * obj, const char *path), void *test_data)
{
E_Fm2_Mime_Handler *handler;
@ -157,7 +157,7 @@ e_fm2_mime_handler_new(const char *label, const char *icon_group, void (*action_
return handler;
}
EAPI void
E_API void
e_fm2_mime_handler_free(E_Fm2_Mime_Handler *handler)
{
if (!handler) return;
@ -168,7 +168,7 @@ e_fm2_mime_handler_free(E_Fm2_Mime_Handler *handler)
}
/* associate a certain mime type with a handler */
EAPI Eina_Bool
E_API Eina_Bool
e_fm2_mime_handler_mime_add(E_Fm2_Mime_Handler *handler, const char *mime)
{
Eina_List *handlers = NULL;
@ -193,7 +193,7 @@ e_fm2_mime_handler_mime_add(E_Fm2_Mime_Handler *handler, const char *mime)
}
/* associate a certain glob with a handler */
EAPI Eina_Bool
E_API Eina_Bool
e_fm2_mime_handler_glob_add(E_Fm2_Mime_Handler *handler, const char *glob_)
{
Eina_List *handlers = NULL;
@ -218,7 +218,7 @@ e_fm2_mime_handler_glob_add(E_Fm2_Mime_Handler *handler, const char *glob_)
}
/* delete a certain handler for a certain mime */
EAPI void
E_API void
e_fm2_mime_handler_mime_del(E_Fm2_Mime_Handler *handler, const char *mime)
{
Eina_List *handlers = NULL;
@ -244,7 +244,7 @@ e_fm2_mime_handler_mime_del(E_Fm2_Mime_Handler *handler, const char *mime)
}
/* delete a certain handler for a certain glob */
EAPI void
E_API void
e_fm2_mime_handler_glob_del(E_Fm2_Mime_Handler *handler, const char *glob_)
{
Eina_List *handlers = NULL;
@ -269,7 +269,7 @@ e_fm2_mime_handler_glob_del(E_Fm2_Mime_Handler *handler, const char *glob_)
}
}
EAPI const Eina_List *
E_API const Eina_List *
e_fm2_mime_handler_mime_handlers_get(const char *mime)
{
if ((!mime) || (!_mime_handlers)) return NULL;
@ -278,7 +278,7 @@ e_fm2_mime_handler_mime_handlers_get(const char *mime)
/* get the list of glob handlers for a glob.
NOTE: the list should be free()'ed */
EAPI Eina_List *
E_API Eina_List *
e_fm2_mime_handler_glob_handlers_get(const char *glob_)
{
E_Fm2_Mime_Handler_Tuple *tuple = NULL;
@ -296,7 +296,7 @@ e_fm2_mime_handler_glob_handlers_get(const char *glob_)
}
/* call a certain handler */
EAPI Eina_Bool
E_API Eina_Bool
e_fm2_mime_handler_call(E_Fm2_Mime_Handler *handler, Evas_Object *obj, const char *path)
{
if ((!handler) || (!obj) || (!path) || (!handler->action_func))
@ -318,7 +318,7 @@ e_fm2_mime_handler_call(E_Fm2_Mime_Handler *handler, Evas_Object *obj, const cha
}
/* call all handlers related to a certain mime */
EAPI void
E_API void
e_fm2_mime_handler_mime_handlers_call_all(Evas_Object *obj, const char *path, const char *mime)
{
const Eina_List *l, *handlers;
@ -338,7 +338,7 @@ e_fm2_mime_handler_mime_handlers_call_all(Evas_Object *obj, const char *path, co
}
/* call all handlers related to a certain glob */
EAPI void
E_API void
e_fm2_mime_handler_glob_handlers_call_all(Evas_Object *obj, const char *path, const char *glob_)
{
Eina_List *handlers = NULL;
@ -359,7 +359,7 @@ e_fm2_mime_handler_glob_handlers_call_all(Evas_Object *obj, const char *path, co
}
/* run a handlers test function */
EAPI Eina_Bool
E_API Eina_Bool
e_fm2_mime_handler_test(E_Fm2_Mime_Handler *handler, Evas_Object *obj, const char *path)
{
if ((!handler) || (!obj) || (!path)) return 0;

View File

@ -15,22 +15,22 @@ struct _E_Fm2_Mime_Handler
void *test_data;
};
EAPI const char *e_fm_mime_filename_get(const char *fname);
EAPI const char *e_fm_mime_icon_get(const char *mime);
EAPI void e_fm_mime_icon_cache_flush(void);
E_API const char *e_fm_mime_filename_get(const char *fname);
E_API const char *e_fm_mime_icon_get(const char *mime);
E_API void e_fm_mime_icon_cache_flush(void);
EAPI E_Fm2_Mime_Handler *e_fm2_mime_handler_new(const char *label, const char *icon_group, void (*action_func) (void *data, Evas_Object *obj, const char *path), void *action_data, int (test_func) (void *data, Evas_Object *obj, const char *path), void *test_data);
EAPI void e_fm2_mime_handler_free(E_Fm2_Mime_Handler *handler);
EAPI Eina_Bool e_fm2_mime_handler_mime_add(E_Fm2_Mime_Handler *handler, const char *mime);
EAPI Eina_Bool e_fm2_mime_handler_glob_add(E_Fm2_Mime_Handler *handler, const char *glob);
EAPI Eina_Bool e_fm2_mime_handler_call(E_Fm2_Mime_Handler *handler, Evas_Object *obj, const char *path);
EAPI Eina_Bool e_fm2_mime_handler_test(E_Fm2_Mime_Handler *handler, Evas_Object *obj, const char *path);
EAPI void e_fm2_mime_handler_mime_handlers_call_all(Evas_Object *obj, const char *path, const char *mime);
EAPI void e_fm2_mime_handler_glob_handlers_call_all(Evas_Object *obj, const char *path, const char *glob);
EAPI void e_fm2_mime_handler_mime_del(E_Fm2_Mime_Handler *handler, const char *mime);
EAPI void e_fm2_mime_handler_glob_del(E_Fm2_Mime_Handler *handler, const char *glob);
EAPI const Eina_List *e_fm2_mime_handler_mime_handlers_get(const char *mime);
EAPI Eina_List *e_fm2_mime_handler_glob_handlers_get(const char *glob);
E_API E_Fm2_Mime_Handler *e_fm2_mime_handler_new(const char *label, const char *icon_group, void (*action_func) (void *data, Evas_Object *obj, const char *path), void *action_data, int (test_func) (void *data, Evas_Object *obj, const char *path), void *test_data);
E_API void e_fm2_mime_handler_free(E_Fm2_Mime_Handler *handler);
E_API Eina_Bool e_fm2_mime_handler_mime_add(E_Fm2_Mime_Handler *handler, const char *mime);
E_API Eina_Bool e_fm2_mime_handler_glob_add(E_Fm2_Mime_Handler *handler, const char *glob);
E_API Eina_Bool e_fm2_mime_handler_call(E_Fm2_Mime_Handler *handler, Evas_Object *obj, const char *path);
E_API Eina_Bool e_fm2_mime_handler_test(E_Fm2_Mime_Handler *handler, Evas_Object *obj, const char *path);
E_API void e_fm2_mime_handler_mime_handlers_call_all(Evas_Object *obj, const char *path, const char *mime);
E_API void e_fm2_mime_handler_glob_handlers_call_all(Evas_Object *obj, const char *path, const char *glob);
E_API void e_fm2_mime_handler_mime_del(E_Fm2_Mime_Handler *handler, const char *mime);
E_API void e_fm2_mime_handler_glob_del(E_Fm2_Mime_Handler *handler, const char *glob);
E_API const Eina_List *e_fm2_mime_handler_mime_handlers_get(const char *mime);
E_API Eina_List *e_fm2_mime_handler_glob_handlers_get(const char *glob);
#endif
#endif

View File

@ -1,8 +1,8 @@
#include "e.h"
EAPI int E_EVENT_FM_OP_REGISTRY_ADD = 0;
EAPI int E_EVENT_FM_OP_REGISTRY_DEL = 0;
EAPI int E_EVENT_FM_OP_REGISTRY_CHANGED = 0;
E_API int E_EVENT_FM_OP_REGISTRY_ADD = 0;
E_API int E_EVENT_FM_OP_REGISTRY_DEL = 0;
E_API int E_EVENT_FM_OP_REGISTRY_CHANGED = 0;
static Eina_Hash *_e_fm2_op_registry = NULL;
static unsigned int _e_fm2_init_count = 0;
@ -236,7 +236,7 @@ e_fm2_op_registry_entry_files_set(E_Fm2_Op_Registry_Entry *entry, const char *sr
*
* @return: new number of references after operation or -1 on error.
*/
EAPI int
E_API int
e_fm2_op_registry_entry_ref(E_Fm2_Op_Registry_Entry *entry)
{
E_Fm2_Op_Registry_Entry_Internal *e;
@ -253,7 +253,7 @@ e_fm2_op_registry_entry_ref(E_Fm2_Op_Registry_Entry *entry)
* @return: new number of references after operation or -1 on error,
* if 0 the entry was freed and pointer is then invalid.
*/
EAPI int
E_API int
e_fm2_op_registry_entry_unref(E_Fm2_Op_Registry_Entry *entry)
{
E_Fm2_Op_Registry_Entry_Internal *e;
@ -272,7 +272,7 @@ e_fm2_op_registry_entry_unref(E_Fm2_Op_Registry_Entry *entry)
*
* @return: 0 if no window, window identifier otherwise.
*/
EAPI Ecore_X_Window
E_API Ecore_X_Window
e_fm2_op_registry_entry_xwin_get(const E_Fm2_Op_Registry_Entry *entry)
{
Evas *e;
@ -295,7 +295,7 @@ e_fm2_op_registry_entry_xwin_get(const E_Fm2_Op_Registry_Entry *entry)
*
* @note: does not increment reference.
*/
EAPI E_Fm2_Op_Registry_Entry *
E_API E_Fm2_Op_Registry_Entry *
e_fm2_op_registry_entry_get(int id)
{
return eina_hash_find(_e_fm2_op_registry, &id);
@ -316,7 +316,7 @@ e_fm2_op_registry_entry_get(int id)
* @note: does not increment reference.
* @note: on errors, @p free_data will be called.
*/
EAPI void
E_API void
e_fm2_op_registry_entry_listener_add(E_Fm2_Op_Registry_Entry *entry, void (*cb)(void *data, const E_Fm2_Op_Registry_Entry *entry), const void *data, void (*free_data)(void *data))
{
E_Fm2_Op_Registry_Entry_Internal *e;
@ -361,7 +361,7 @@ e_fm2_op_registry_entry_listener_add(E_Fm2_Op_Registry_Entry *entry, void (*cb)(
* @note: does not decrement reference.
* @see: e_fm2_op_registry_entry_listener_add()
*/
EAPI void
E_API void
e_fm2_op_registry_entry_listener_del(E_Fm2_Op_Registry_Entry *entry, void (*cb)(void *data, const E_Fm2_Op_Registry_Entry *entry), const void *data)
{
E_Fm2_Op_Registry_Entry_Internal *e;
@ -393,7 +393,7 @@ e_fm2_op_registry_entry_listener_del(E_Fm2_Op_Registry_Entry *entry, void (*cb)(
*
* @see e_fm2_op_registry_get_all()
*/
EAPI Eina_Iterator *
E_API Eina_Iterator *
e_fm2_op_registry_iterator_new(void)
{
return eina_hash_iterator_data_new(_e_fm2_op_registry);
@ -410,7 +410,7 @@ e_fm2_op_registry_iterator_new(void)
* @note: if you need a simple, immediate walk, use
* e_fm2_op_registry_iterator_new()
*/
EAPI Eina_List *
E_API Eina_List *
e_fm2_op_registry_get_all(void)
{
Eina_List *list;
@ -429,7 +429,7 @@ e_fm2_op_registry_get_all(void)
return list;
}
EAPI void
E_API void
e_fm2_op_registry_get_all_free(Eina_List *list)
{
E_Fm2_Op_Registry_Entry *entry;
@ -437,13 +437,13 @@ e_fm2_op_registry_get_all_free(Eina_List *list)
e_fm2_op_registry_entry_unref(entry);
}
EAPI Eina_Bool
E_API Eina_Bool
e_fm2_op_registry_is_empty(void)
{
return eina_hash_population(_e_fm2_op_registry) == 0;
}
EAPI int
E_API int
e_fm2_op_registry_count(void)
{
return eina_hash_population(_e_fm2_op_registry);
@ -485,7 +485,7 @@ e_fm2_op_registry_shutdown(void)
return 0;
}
EAPI void
E_API void
e_fm2_op_registry_entry_abort(E_Fm2_Op_Registry_Entry *entry)
{
if (!entry) return;

View File

@ -41,27 +41,27 @@ struct _E_Fm2_Op_Registry_Entry
} func;
};
extern EAPI int E_EVENT_FM_OP_REGISTRY_ADD;
extern EAPI int E_EVENT_FM_OP_REGISTRY_DEL;
extern EAPI int E_EVENT_FM_OP_REGISTRY_CHANGED;
extern E_API int E_EVENT_FM_OP_REGISTRY_ADD;
extern E_API int E_EVENT_FM_OP_REGISTRY_DEL;
extern E_API int E_EVENT_FM_OP_REGISTRY_CHANGED;
EAPI int e_fm2_op_registry_entry_ref(E_Fm2_Op_Registry_Entry *entry);
EAPI int e_fm2_op_registry_entry_unref(E_Fm2_Op_Registry_Entry *entry);
E_API int e_fm2_op_registry_entry_ref(E_Fm2_Op_Registry_Entry *entry);
E_API int e_fm2_op_registry_entry_unref(E_Fm2_Op_Registry_Entry *entry);
EAPI Ecore_X_Window e_fm2_op_registry_entry_xwin_get(const E_Fm2_Op_Registry_Entry *entry);
E_API Ecore_X_Window e_fm2_op_registry_entry_xwin_get(const E_Fm2_Op_Registry_Entry *entry);
EAPI E_Fm2_Op_Registry_Entry *e_fm2_op_registry_entry_get(int id);
E_API E_Fm2_Op_Registry_Entry *e_fm2_op_registry_entry_get(int id);
EAPI void e_fm2_op_registry_entry_listener_add(E_Fm2_Op_Registry_Entry *entry, void (*cb)(void *data, const E_Fm2_Op_Registry_Entry *entry), const void *data, void (*free_data)(void *data));
EAPI void e_fm2_op_registry_entry_listener_del(E_Fm2_Op_Registry_Entry *entry, void (*cb)(void *data, const E_Fm2_Op_Registry_Entry *entry), const void *data);
E_API void e_fm2_op_registry_entry_listener_add(E_Fm2_Op_Registry_Entry *entry, void (*cb)(void *data, const E_Fm2_Op_Registry_Entry *entry), const void *data, void (*free_data)(void *data));
E_API void e_fm2_op_registry_entry_listener_del(E_Fm2_Op_Registry_Entry *entry, void (*cb)(void *data, const E_Fm2_Op_Registry_Entry *entry), const void *data);
EAPI Eina_Iterator *e_fm2_op_registry_iterator_new(void);
EAPI Eina_List *e_fm2_op_registry_get_all(void);
EAPI void e_fm2_op_registry_get_all_free(Eina_List *list);
EAPI Eina_Bool e_fm2_op_registry_is_empty(void);
EAPI int e_fm2_op_registry_count(void);
E_API Eina_Iterator *e_fm2_op_registry_iterator_new(void);
E_API Eina_List *e_fm2_op_registry_get_all(void);
E_API void e_fm2_op_registry_get_all_free(Eina_List *list);
E_API Eina_Bool e_fm2_op_registry_is_empty(void);
E_API int e_fm2_op_registry_count(void);
EAPI void e_fm2_op_registry_entry_abort(E_Fm2_Op_Registry_Entry *entry);
E_API void e_fm2_op_registry_entry_abort(E_Fm2_Op_Registry_Entry *entry);
EINTERN unsigned int e_fm2_op_registry_init(void);
EINTERN unsigned int e_fm2_op_registry_shutdown(void);

View File

@ -93,7 +93,7 @@ struct _E_Config_Dialog_Data
};
/* a nice easy setup function that does the dirty work */
EAPI E_Config_Dialog *
E_API E_Config_Dialog *
e_fm_prop_file(E_Fm2_Icon *ic)
{
E_Config_Dialog *cfd;

View File

@ -3,7 +3,7 @@
#ifndef E_FM_PROP_H
#define E_FM_PROP_H
EAPI E_Config_Dialog *e_fm_prop_file(E_Fm2_Icon *ic);
E_API E_Config_Dialog *e_fm_prop_file(E_Fm2_Icon *ic);
#endif
#endif

Some files were not shown because too many files have changed in this diff Show More