move e_keyrouter_list functions to e_keyrouter_keygrab_intern header files.
and rename the symbols in the header file to put e_keyrouter_keygrab prefix
Change-Id: I5c3a0f80e332eb85f7dfbd3936939dce6f8994aa
#include "e_config_intern.h"
#include "e_client_intern.h"
#include "e_keyrouter_wl_intern.h"
+#include "e_keyrouter_keygrab_intern.h"
#include "e_keyrouter_hardkeys_intern.h"
#include "e_zone_intern.h"
{
if (key_data->ignored)
{
- e_keyrouter_prepend_to_keylist(NULL, NULL, ev->keycode, TIZEN_KEYROUTER_MODE_PRESSED, EINA_TRUE);
+ e_keyrouter_keygrab_prepend_to_keylist(NULL, NULL, ev->keycode, TIZEN_KEYROUTER_MODE_PRESSED, EINA_TRUE);
return EINA_TRUE;
}
else if (key_data->surface)
{
*delivered_surface = key_data->surface;
- e_keyrouter_prepend_to_keylist(key_data->surface, key_data->client, ev->keycode, TIZEN_KEYROUTER_MODE_PRESSED, EINA_TRUE);
+ e_keyrouter_keygrab_prepend_to_keylist(key_data->surface, key_data->client, ev->keycode, TIZEN_KEYROUTER_MODE_PRESSED, EINA_TRUE);
res = e_keyrouter_wl_key_send(ev, dev, (type==ECORE_EVENT_KEY_DOWN)?EINA_TRUE:EINA_FALSE, key_data->client, key_data->surface, EINA_FALSE);
_e_keyrouter_log_key_event(key_event_log_type, "FOCUS HOOK",
}
else
{
- e_keyrouter_prepend_to_keylist(NULL, NULL, ev->keycode, TIZEN_KEYROUTER_MODE_PRESSED, EINA_TRUE);
+ e_keyrouter_keygrab_prepend_to_keylist(NULL, NULL, ev->keycode, TIZEN_KEYROUTER_MODE_PRESSED, EINA_TRUE);
return EINA_FALSE;
}
if (ECORE_EVENT_KEY_DOWN == type)
{
pressed = EINA_TRUE;
- e_keyrouter_prepend_to_keylist(surface, wc, ev->keycode, TIZEN_KEYROUTER_MODE_PRESSED, focused);
+ e_keyrouter_keygrab_prepend_to_keylist(surface, wc, ev->keycode, TIZEN_KEYROUTER_MODE_PRESSED, focused);
}
if (e_config->key_input_ttrace_enable)
EINTERN int e_keyrouter_init(void);
EINTERN int e_keyrouter_shutdown(void);
-EINTERN int e_keyrouter_prepend_to_keylist(struct wl_resource *surface, struct wl_client *wc, uint32_t key, uint32_t mode, Eina_Bool focused);
-EINTERN void e_keyrouter_remove_surface_from_list(struct wl_resource *surface);
-EINTERN void e_keyrouter_remove_client_from_list(struct wl_client *wc);
-EINTERN uint32_t e_keyrouter_find_keygrab_mode_with_surface(struct wl_resource *surface, uint32_t key);
-EINTERN uint32_t e_keyrouter_find_keygrab_mode_with_client(struct wl_client *wc, uint32_t key);
-
EINTERN int e_keyrouter_util_get_pid(struct wl_client *client, struct wl_resource *surface);
EINTERN char *e_keyrouter_util_cmd_get_from_pid(int pid);
EINTERN char *e_keyrouter_util_process_name_get_from_cmd(char *cmd);
EINTERN const char *e_keyrouter_util_mode_to_string(uint32_t mode);
-EINTERN int e_keyrouter_keygrab_set(struct wl_client *client, struct wl_resource *surface, int key, int mode);
-EINTERN int e_keyrouter_keygrab_unset(struct wl_client *client, struct wl_resource *surface, int key);
-
#endif
--- /dev/null
+#ifndef E_KEYROUTER_KEYGRAB_INTERN_H
+#define E_KEYROUTER_KEYGRAB_INTERN_H
+
+#include "e_intern.h"
+
+EINTERN int e_keyrouter_keygrab_set(struct wl_client *client, struct wl_resource *surface, int key, int mode);
+EINTERN int e_keyrouter_keygrab_unset(struct wl_client *client, struct wl_resource *surface, int key);
+
+EINTERN int e_keyrouter_keygrab_prepend_to_keylist(struct wl_resource *surface, struct wl_client *wc, uint32_t key, uint32_t mode, Eina_Bool focused);
+EINTERN void e_keyrouter_keygrab_remove_surface_from_list(struct wl_resource *surface);
+EINTERN void e_keyrouter_keygrab_remove_client_from_list(struct wl_client *wc);
+
+EINTERN uint32_t e_keyrouter_keygrab_find_mode_with_surface(struct wl_resource *surface, uint32_t key);
+EINTERN uint32_t e_keyrouter_keygrab_find_mode_with_client(struct wl_client *wc, uint32_t key);
+
+#endif
-#include "e_keyrouter_intern.h"
+#include "e_keyrouter_keygrab_intern.h"
+#include "e_keyrouter_hardkeys_intern.h"
#include "e_input_thread_client_intern.h"
#include "e_input_backend_intern.h"
#include "e_keyrouter_wl_intern.h"
-#include "e_keyrouter_hardkeys_intern.h"
#include <tizen-extension-server-protocol.h>
/* Function for prepending a new key grab information in the keyrouting list */
EINTERN int
-e_keyrouter_prepend_to_keylist(struct wl_resource *surface, struct wl_client *wc, uint32_t key, uint32_t mode, Eina_Bool focused)
+e_keyrouter_keygrab_prepend_to_keylist(struct wl_resource *surface, struct wl_client *wc, uint32_t key, uint32_t mode, Eina_Bool focused)
{
int res = TIZEN_KEYROUTER_ERROR_NONE;
}
EINTERN void
-e_keyrouter_remove_surface_from_list(struct wl_resource *surface)
+e_keyrouter_keygrab_remove_surface_from_list(struct wl_resource *surface)
{
uint32_t key, mode;
}
EINTERN void
-e_keyrouter_remove_client_from_list(struct wl_client *client)
+e_keyrouter_keygrab_remove_client_from_list(struct wl_client *client)
{
uint32_t key, mode;
}
EINTERN uint32_t
-e_keyrouter_find_keygrab_mode_with_surface(struct wl_resource *surface, uint32_t key)
+e_keyrouter_keygrab_find_mode_with_surface(struct wl_resource *surface, uint32_t key)
{
uint32_t mode;
}
EINTERN uint32_t
-e_keyrouter_find_keygrab_mode_with_client(struct wl_client *client, uint32_t key)
+e_keyrouter_keygrab_find_mode_with_client(struct wl_client *client, uint32_t key)
{
uint32_t mode;
g_rec_mutex_unlock(&krt->grab_key_mutex);
}
- res = e_keyrouter_prepend_to_keylist(surface,
+ res = e_keyrouter_keygrab_prepend_to_keylist(surface,
surface ? NULL : client,
key,
mode,
#include "e_input_thread_client_intern.h"
#include "e_security.h"
#include "e_keyrouter_intern.h"
+#include "e_keyrouter_keygrab_intern.h"
#include "e_keyrouter_hardkeys_intern.h"
#include "e_zone_intern.h"
TRACE_INPUT_BEGIN(_e_keyrouter_cb_get_keygrab_status);
- mode = surface ? e_keyrouter_find_keygrab_mode_with_surface(surface, key)
- : e_keyrouter_find_keygrab_mode_with_client(client, key);
+ mode = surface ? e_keyrouter_keygrab_find_mode_with_surface(surface, key)
+ : e_keyrouter_keygrab_find_mode_with_client(client, key);
TRACE_INPUT_END();
tizen_keyrouter_send_keygrab_notify(resource, surface, key, mode, TIZEN_KEYROUTER_ERROR_NONE);
struct wl_client *client = data;
KLDBG("Listener(%p) called: wl_client: %p is died", l, client);
- e_keyrouter_remove_client_from_list(client);
+ e_keyrouter_keygrab_remove_client_from_list(client);
wl_list_remove(&l->link);
E_FREE(l);
struct wl_resource *surface = (struct wl_resource *)data;
KLDBG("Listener(%p) called: surface: %p is died", l, surface);
- e_keyrouter_remove_surface_from_list(surface);
+ e_keyrouter_keygrab_remove_surface_from_list(surface);
wl_list_remove(&l->link);
E_FREE(l);