From: Junseok Kim Date: Wed, 5 Jun 2024 02:03:15 +0000 (+0900) Subject: e_keyrouter: move some symbols public to fix moudle build error X-Git-Tag: accepted/tizen/unified/20240611.122958~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F94%2F312194%2F2;p=platform%2Fupstream%2Fenlightenment.git e_keyrouter: move some symbols public to fix moudle build error Change-Id: Ic2a3cbb8dfa4c46162bc8ba896a9f7eb8fb2f61d --- diff --git a/src/bin/inputmgr/e_keyrouter_intern.h b/src/bin/inputmgr/e_keyrouter_intern.h index 3fb9da9..0a05c75 100644 --- a/src/bin/inputmgr/e_keyrouter_intern.h +++ b/src/bin/inputmgr/e_keyrouter_intern.h @@ -37,7 +37,6 @@ typedef struct _E_Keyrouter_Config_Data E_Keyrouter_Config_Data; typedef struct _E_Keyrouter_Grab_Request E_Keyrouter_Grab_Request; typedef struct _E_Keyrouter_Ungrab_Request E_Keyrouter_Ungrab_Request; -typedef struct _E_Keyrouter_Info E_Keyrouter_Info; typedef struct _E_Keyrouter_Tizen_HWKey E_Keyrouter_Tizen_HWKey; typedef struct _E_Keyrouter_Registered_Window_Info E_Keyrouter_Registered_Window_Info; @@ -126,26 +125,12 @@ struct _E_Keyrouter_Intercept_Hook unsigned char delete_me : 1; }; -struct _E_Keyrouter_Info -{ - void *(*keygrab_list_get)(void); - int (*max_keycode_get)(void); -}; - struct _E_Keyrouter_Registered_Window_Info { struct wl_resource *surface; Eina_List *keys; }; -struct _E_Keyrouter_Key_List_Node -{ - struct wl_resource *surface; - struct wl_client *wc; - Eina_Bool focused; - E_Keyrouter_Client_Status status; -}; - struct _E_Keyrouter_Tizen_HWKey { char *name; @@ -170,7 +155,6 @@ struct _E_Keyrouter_Event_Key_Composition }; extern E_API E_KeyrouterPtr krt; -extern E_API E_Keyrouter_Info e_keyrouter; extern EINTERN int E_KEYROUTER_EVENT_KEY_LONG; extern EINTERN int E_KEYROUTER_EVENT_KEY_COMPOSITION_PRESS; diff --git a/src/include/e_keyrouter.h b/src/include/e_keyrouter.h index 029d942..3ab1782 100644 --- a/src/include/e_keyrouter.h +++ b/src/include/e_keyrouter.h @@ -7,9 +7,17 @@ typedef struct _E_Keyrouter_Key_List_Node E_Keyrouter_Key_List_Node; typedef struct _E_Keyrouter_Key_List_Node* E_Keyrouter_Key_List_NodePtr; typedef struct _E_Keyrouter_Grabbed_Key E_Keyrouter_Grabbed_Key; typedef struct _E_Keyrouter_Event_Data E_Keyrouter_Event_Data; +typedef struct _E_Keyrouter_Info E_Keyrouter_Info; typedef struct _E_Keyrouter_Intercept_Hook E_Keyrouter_Intercept_Hook; +typedef enum _E_Keyrouter_Client_Status +{ + E_KRT_CSTAT_DEAD = 0, + E_KRT_CSTAT_ALIVE, + E_KRT_CSTAT_UNGRAB +} E_Keyrouter_Client_Status; + typedef enum _E_Keyrouter_Intercept_Hook_Point { E_KEYROUTER_INTERCEPT_HOOK_BEFORE_KEYROUTING, @@ -54,6 +62,22 @@ struct _E_Keyrouter_Event_Data void *data; }; +struct _E_Keyrouter_Key_List_Node +{ + struct wl_resource *surface; + struct wl_client *wc; + Eina_Bool focused; + E_Keyrouter_Client_Status status; +}; + +struct _E_Keyrouter_Info +{ + void *(*keygrab_list_get)(void); + int (*max_keycode_get)(void); +}; + +extern E_API E_Keyrouter_Info e_keyrouter; + E_API E_Keyrouter_Intercept_Hook *e_keyrouter_intercept_hook_add(E_Keyrouter_Intercept_Hook_Point hookpoint, E_Keyrouter_Intercept_Hook_Cb func, const void *data); E_API void e_keyrouter_intercept_hook_del(E_Keyrouter_Intercept_Hook *ch); E_API Eina_Bool e_keyrouter_intercept_hook_call(E_Keyrouter_Intercept_Hook_Point hookpoint, int type, Ecore_Event_Key *event);