From fa3957910b3f38ccc46b5504ca29e5dbb7268b9a Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Fri, 19 Jan 2024 10:06:49 +0900 Subject: [PATCH] e_input_event: make an internal header Move the internal resources and the function declaration to the internal header Change-Id: Ic0ce4dc9ba959b93847d0f8732cc1dd414ee636c --- src/bin/e_input_event.c | 5 +++-- src/bin/e_input_event.h | 16 +++------------- src/bin/e_input_event_intern.h | 9 +++++++++ src/bin/e_input_inputs.c | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 src/bin/e_input_event_intern.h diff --git a/src/bin/e_input_event.c b/src/bin/e_input_event.c index a8e352d..0e2f711 100755 --- a/src/bin/e_input_event.c +++ b/src/bin/e_input_event.c @@ -1,13 +1,14 @@ +#include "e.h" +#include "e_input_event_intern.h" + #include #include #include #include #include #include - #include #include -#include "e_input_event.h" #define G_LIST_GET_DATA(list) ((list) ? (((GList *)(list))->data) : NULL) diff --git a/src/bin/e_input_event.h b/src/bin/e_input_event.h index 960ad30..3f4c2fe 100755 --- a/src/bin/e_input_event.h +++ b/src/bin/e_input_event.h @@ -1,9 +1,3 @@ -#include -#include -#include -#include -#include "e.h" - #ifndef E_INPUT_EVENT_H #define E_INPUT_EVENT_H @@ -45,18 +39,14 @@ typedef struct _e_input_event_filter E_Input_Event_Filter; typedef struct _e_input_event_source E_Input_Event_Source; typedef struct _e_input_event E_Input_Event; -EINTERN E_Input_Event_Source *e_input_event_source_create(); -EINTERN void e_input_event_source_destroy(E_Input_Event_Source *source); - E_API E_Input_Event_Handler *e_input_event_handler_add(E_Input_Event_Source *source, int event, ev_handler_func func, void *user_data); E_API E_Input_Event_Handler *e_input_event_handler_prepend(E_Input_Event_Source *source, int event, ev_handler_func func, void *user_data); -E_API void e_input_event_handler_del(E_Input_Event_Source *source, E_Input_Event_Handler *event_handler); +E_API void e_input_event_handler_del(E_Input_Event_Source *source, E_Input_Event_Handler *event_handler); +E_API void e_input_event_add(E_Input_Event_Source *source, int event_type, void *ev_data, ev_free_func free_func, void *free_func_data); E_API E_Input_Event_Filter *e_input_event_filter_add(E_Input_Event_Source *source, int event, ev_handler_func func, void *user_data); -E_API void e_input_event_filter_del(E_Input_Event_Source *source, E_Input_Event_Filter *event_filter); +E_API void e_input_event_filter_del(E_Input_Event_Source *source, E_Input_Event_Filter *event_filter); -E_API void e_input_event_add(E_Input_Event_Source *source, int event_type, void *ev_data, ev_free_func free_func, void *free_func_data); -EINTERN void e_input_event_process(GSource *source); #endif /* E_INPUT_EVENT_H */ diff --git a/src/bin/e_input_event_intern.h b/src/bin/e_input_event_intern.h new file mode 100644 index 0000000..4f3e2b7 --- /dev/null +++ b/src/bin/e_input_event_intern.h @@ -0,0 +1,9 @@ +#ifndef E_INPUT_EVENT_INTERN_H +#define E_INPUT_EVENT_INTERN_H + +EINTERN E_Input_Event_Source *e_input_event_source_create(); +EINTERN void e_input_event_source_destroy(E_Input_Event_Source *source); + +EINTERN void e_input_event_process(GSource *source); + +#endif diff --git a/src/bin/e_input_inputs.c b/src/bin/e_input_inputs.c index 6298b76..dbb855b 100644 --- a/src/bin/e_input_inputs.c +++ b/src/bin/e_input_inputs.c @@ -1,7 +1,7 @@ #include "e.h" #include "e_input_intern.h" #include "e_input_private.h" -#include "e_input_event.h" +#include "e_input_event_intern.h" #include "e_keyrouter.h" #include "e_comp_wl_intern.h" -- 2.7.4