e_keyrouter: change E_API to EINTERN 05/293705/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 1 Jun 2023 09:18:11 +0000 (18:18 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 2 Jun 2023 06:45:07 +0000 (15:45 +0900)
Change-Id: I0ffa04c6ec4bfc271118a33d2d6c9a3914a4233a

src/bin/e_keyrouter.c
src/bin/e_keyrouter.h

index 765923b..658d8e0 100644 (file)
@@ -16,9 +16,9 @@ int _keyrouter_log_dom = -1;
 E_API E_Keyrouter_Info e_keyrouter;
 E_KeyrouterPtr krt;
 
-E_API int E_KEYROUTER_EVENT_KEY_LONG = 0;
-E_API int E_KEYROUTER_EVENT_KEY_COMPOSITION_PRESS = 0;
-E_API int E_KEYROUTER_EVENT_KEY_COMPOSITION_RELEASE = 0;
+EINTERN int E_KEYROUTER_EVENT_KEY_LONG = 0;
+EINTERN int E_KEYROUTER_EVENT_KEY_COMPOSITION_PRESS = 0;
+EINTERN int E_KEYROUTER_EVENT_KEY_COMPOSITION_RELEASE = 0;
 
 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)
@@ -444,7 +444,7 @@ _e_keyrouter_max_keycode_get(void)
    return krt->max_tizen_hwkeys;
 }
 
-E_API int
+EINTERN int
 e_keyrouter_longkey_add(int keycode, double time)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(krt, EINA_FALSE);
@@ -464,7 +464,7 @@ e_keyrouter_longkey_add(int keycode, double time)
    return EINA_TRUE;
 }
 
-E_API void
+EINTERN void
 e_keyrouter_longkey_del(int keycode)
 {
    /* FIXME: If del request is came, during checking long press,
@@ -478,7 +478,7 @@ e_keyrouter_longkey_del(int keycode)
    KLINF("To disable %d key's longkey function.\n", keycode);
 }
 
-E_API int
+EINTERN int
 e_keyrouter_composition_key_add(int *keys, int count)
 {
    Eina_List *l;
@@ -533,7 +533,7 @@ failed:
    return EINA_FALSE;
 }
 
-E_API void
+EINTERN void
 e_keyrouter_composition_key_del(int *keys, int count)
 {
    /* FIXME: If del request is came, during checking composition key about key press,
@@ -572,7 +572,7 @@ e_keyrouter_composition_key_del(int *keys, int count)
    KLINF("Delete %d and %d key composition.\n", keys[0], keys[1]);
 }
 
-E_API void
+EINTERN void
 e_keyrouter_event_surface_send(E_Client *ec, int key)
 {
    EINA_SAFETY_ON_NULL_RETURN(krt);
@@ -584,7 +584,7 @@ e_keyrouter_event_surface_send(E_Client *ec, int key)
    e_keyrouter_wl_event_surface_send(ec->comp_data->surface, key, TIZEN_KEYROUTER_MODE_NONE);
 }
 
-E_API int
+EINTERN int
 e_keyrouter_init(void)
 {
    E_Keyrouter_Config_Data *kconfig = NULL;
@@ -652,7 +652,7 @@ err:
    return EINA_FALSE;
 }
 
-E_API int
+EINTERN int
 e_keyrouter_shutdown(void)
 {
    int i;
index ebc2c30..8424c29 100644 (file)
@@ -34,9 +34,9 @@ typedef Eina_Bool (*E_Keyrouter_Intercept_Hook_Cb) (void *data, int type, Ecore_
 
 extern E_API E_Keyrouter_Info e_keyrouter;
 
-extern E_API int E_KEYROUTER_EVENT_KEY_LONG;
-extern E_API int E_KEYROUTER_EVENT_KEY_COMPOSITION_PRESS;
-extern E_API int E_KEYROUTER_EVENT_KEY_COMPOSITION_RELEASE;
+extern EINTERN int E_KEYROUTER_EVENT_KEY_LONG;
+extern EINTERN int E_KEYROUTER_EVENT_KEY_COMPOSITION_PRESS;
+extern EINTERN int E_KEYROUTER_EVENT_KEY_COMPOSITION_RELEASE;
 
 struct _E_Keyrouter_Intercept_Hook
 {
@@ -129,15 +129,15 @@ E_API E_Keyrouter_Intercept_Hook *e_keyrouter_intercept_hook_add(E_Keyrouter_Int
 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);
 
-E_API int e_keyrouter_init(void);
-E_API int e_keyrouter_shutdown(void);
+EINTERN int e_keyrouter_init(void);
+EINTERN int e_keyrouter_shutdown(void);
 
-E_API int e_keyrouter_longkey_add(int keycode, double time);
-E_API void e_keyrouter_longkey_del(int keycode);
-E_API int e_keyrouter_composition_key_add(int *keys, int count);
-E_API void e_keyrouter_composition_key_del(int *keys, int count);
+EINTERN int e_keyrouter_longkey_add(int keycode, double time);
+EINTERN void e_keyrouter_longkey_del(int keycode);
+EINTERN int e_keyrouter_composition_key_add(int *keys, int count);
+EINTERN void e_keyrouter_composition_key_del(int *keys, int count);
 
-E_API void e_keyrouter_event_surface_send(E_Client *ec, int key);
+EINTERN void e_keyrouter_event_surface_send(E_Client *ec, int key);
 
 #endif
 #endif