KLINF("(keycode:%d,%s)(no_priv:%d)(repeat:%d)",
data->keycode, data->name, data->no_privcheck, data->repeat);
- e_keyrouter_hardkeys_keycode_set(krt->HardKeys, data->keycode, (char *)eina_stringshare_add(data->name),
+ e_keyrouter_hardkeys_keycode_set(krt->HardKeys, data->keycode, eina_stringshare_add(data->name),
data->no_privcheck ? EINA_TRUE : EINA_FALSE, data->repeat ? EINA_TRUE : EINA_FALSE);
if (!data->repeat)
{
e_keyrouter_hardkeys_list_set(hardkeys, keycode, mode, hardkey_list);
}
-EINTERN char *
+EINTERN const char *
e_keyrouter_hardkeys_keyname_get(E_Keyrouter_Grabbed_Key *hardkeys,
uint32_t keycode)
{
EINTERN void
e_keyrouter_hardkeys_keycode_set(E_Keyrouter_Grabbed_Key *hardkeys, uint32_t keycode,
- char *keyname, Eina_Bool no_privcheck, Eina_Bool repeat)
+ Eina_Stringshare *keyname, Eina_Bool no_privcheck, Eina_Bool repeat)
{
EINA_SAFETY_ON_NULL_RETURN(hardkeys);
EINTERN void e_keyrouter_hardkeys_remove_keynode_with_client(E_Keyrouter_Grabbed_Key *hardkeys, uint32_t keycode, uint32_t mode, void *client);
EINTERN Eina_List *e_keyrouter_hardkeys_list_get(E_Keyrouter_Grabbed_Key *hardkeys, uint32_t keycode, uint32_t mode);
-EINTERN char *e_keyrouter_hardkeys_keyname_get(E_Keyrouter_Grabbed_Key *hardkeys, uint32_t keycode);
+EINTERN const char *e_keyrouter_hardkeys_keyname_get(E_Keyrouter_Grabbed_Key *hardkeys, uint32_t keycode);
EINTERN Eina_Bool e_keyrouter_hardkeys_no_privcheck_get(E_Keyrouter_Grabbed_Key *hardkeys, uint32_t keycode);
EINTERN Eina_Bool e_keyrouter_hardkeys_repeat_get(E_Keyrouter_Grabbed_Key *hardkeys, uint32_t keycode);
EINTERN void e_keyrouter_hardkeys_list_set(E_Keyrouter_Grabbed_Key *hardkeys, uint32_t keycode, uint32_t mode, Eina_List *list);
-EINTERN void e_keyrouter_hardkeys_keycode_set(E_Keyrouter_Grabbed_Key *hardkeys, uint32_t keycode, char *keyname, Eina_Bool no_privcheck, Eina_Bool repeat);
+EINTERN void e_keyrouter_hardkeys_keycode_set(E_Keyrouter_Grabbed_Key *hardkeys, uint32_t keycode, Eina_Stringshare *keyname, Eina_Bool no_privcheck, Eina_Bool repeat);
EINTERN Eina_Bool e_keyrouter_harkeys_is_key_grabbed_by_client(E_Keyrouter_Grabbed_Key *hardkeys, uint32_t keycode, struct wl_client *client, uint32_t mode);
EINTERN Eina_Bool e_keyrouter_harkeys_is_key_grabbed_by_surface(E_Keyrouter_Grabbed_Key *hardkeys, uint32_t keycode, struct wl_resource *surface, uint32_t mode);