From 39e4c63c6a928633715d752ec717e76bc98c0712 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Thu, 1 Jun 2023 10:39:56 +0900 Subject: [PATCH] e_dnd: change E_API into EINTERN Change-Id: I924cd8cce7c44d07ae1a4628c49a8ac6ca94aac6 --- src/bin/e_dnd.c | 32 ++++++++++++++++---------------- src/bin/e_dnd.h | 32 ++++++++++++++++---------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c index 07057b0..5e88d3f 100644 --- a/src/bin/e_dnd.c +++ b/src/bin/e_dnd.c @@ -167,13 +167,13 @@ e_dnd_shutdown(void) return 1; } -E_API E_Drag * +EINTERN E_Drag * e_drag_current_get(void) { return _drag_current; } -E_API E_Drag * +EINTERN E_Drag * e_drag_new(int x, int y, const char **types, unsigned int num_types, void *data, int size, @@ -212,13 +212,13 @@ e_drag_new(int x, int y, return drag; } -E_API Evas * +EINTERN Evas * e_drag_evas_get(const E_Drag *drag) { return drag->evas; } -E_API void +EINTERN void e_drag_object_set(E_Drag *drag, Evas_Object *object) { EINA_SAFETY_ON_NULL_RETURN(object); @@ -234,7 +234,7 @@ e_drag_object_set(E_Drag *drag, Evas_Object *object) evas_object_pass_events_set(drag->comp_object, 1); } -E_API void +EINTERN void e_drag_move(E_Drag *drag, int x, int y) { if ((drag->x == x) && (drag->y == y)) return; @@ -244,7 +244,7 @@ e_drag_move(E_Drag *drag, int x, int y) evas_object_move(drag->comp_object, x, y); } -E_API void +EINTERN void e_drag_resize(E_Drag *drag, int w, int h) { if ((drag->w == w) && (drag->h == h)) return; @@ -255,26 +255,26 @@ e_drag_resize(E_Drag *drag, int w, int h) evas_object_resize(drag->comp_object, w, h); } -E_API int +EINTERN int e_dnd_active(void) { return _drag_win != 0; } -E_API int +EINTERN int e_drag_start(E_Drag *drag, int x, int y) { return _e_drag_finalize(drag, E_DRAG_INTERNAL, x, y); } -E_API void +EINTERN 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 */ -E_API E_Drop_Handler * +EINTERN 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), @@ -311,7 +311,7 @@ e_drop_handler_add(E_Object *obj, Evas_Object *win, return handler; } -E_API void +EINTERN void e_drop_handler_geometry_set(E_Drop_Handler *handler, int x, int y, int w, int h) { handler->x = x; @@ -320,7 +320,7 @@ e_drop_handler_geometry_set(E_Drop_Handler *handler, int x, int y, int w, int h) handler->h = h; } -E_API int +EINTERN int e_drop_inside(const E_Drop_Handler *handler, int x, int y) { int dx, dy; @@ -331,7 +331,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); } -E_API void +EINTERN void e_drop_handler_del(E_Drop_Handler *handler) { unsigned int i; @@ -357,7 +357,7 @@ e_drop_handler_del(E_Drop_Handler *handler) free(handler); } -E_API void +EINTERN void e_drop_handler_responsive_set(E_Drop_Handler *handler) { Ecore_Window hwin = _e_drag_win_get(handler, 1); @@ -367,7 +367,7 @@ e_drop_handler_responsive_set(E_Drop_Handler *handler) eina_hash_set(_drop_handlers_responsives, &hwin, eina_list_append(l, handler)); } -E_API int +EINTERN int e_drop_handler_responsive_get(const E_Drop_Handler *handler) { Ecore_Window hwin = _e_drag_win_get(handler, 1); @@ -378,7 +378,7 @@ e_drop_handler_responsive_get(const E_Drop_Handler *handler) } /* from ecore_x_selection.c */ -E_API Eina_List * +EINTERN Eina_List * e_dnd_util_text_uri_list_convert(char *data, int size) { char *tmp; diff --git a/src/bin/e_dnd.h b/src/bin/e_dnd.h index 92dd103..e21805e 100644 --- a/src/bin/e_dnd.h +++ b/src/bin/e_dnd.h @@ -110,25 +110,25 @@ struct E_Dnd_X_Moz_Url EINTERN int e_dnd_init(void); EINTERN int e_dnd_shutdown(void); -E_API int e_dnd_active(void); +EINTERN int e_dnd_active(void); -E_API E_Drag *e_drag_current_get(void); +EINTERN E_Drag *e_drag_current_get(void); /* x and y are the top left coords of the object that is to be dragged */ -E_API E_Drag *e_drag_new(int x, int y, +EINTERN 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)); -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); +EINTERN Evas *e_drag_evas_get(const E_Drag *drag); +EINTERN void e_drag_object_set(E_Drag *drag, Evas_Object *object); +EINTERN void e_drag_move(E_Drag *drag, int x, int y); +EINTERN void e_drag_resize(E_Drag *drag, int w, int h); /* x and y are the coords where the mouse is when dragging starts */ -E_API int e_drag_start(E_Drag *drag, int x, int y); +EINTERN int e_drag_start(E_Drag *drag, int x, int y); -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, +EINTERN void e_drop_handler_xds_set(E_Drop_Handler *handler, Eina_Bool (*cb)(void *data, const char *type)); +EINTERN 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), @@ -136,12 +136,12 @@ E_API 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); -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 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 Eina_List *e_dnd_util_text_uri_list_convert(char *data, int size); +EINTERN void e_drop_handler_geometry_set(E_Drop_Handler *handler, int x, int y, int w, int h); +EINTERN int e_drop_inside(const E_Drop_Handler *handler, int x, int y); +EINTERN void e_drop_handler_del(E_Drop_Handler *handler); +EINTERN void e_drop_handler_responsive_set(E_Drop_Handler *handler); +EINTERN int e_drop_handler_responsive_get(const E_Drop_Handler *handler); +EINTERN Eina_List *e_dnd_util_text_uri_list_convert(char *data, int size); static inline void -- 2.7.4