diff --git a/include/keyboard_layout.h b/include/keyboard_layout.h index e521d171c..a097e629a 100644 --- a/include/keyboard_layout.h +++ b/include/keyboard_layout.h @@ -7,7 +7,7 @@ #define _KEYBOARD_LAYOUT_H bool initialize_keyboard_layout_mapping (const char *filename, keyboard_layout_mapping_t *keyboard_layout_mapping, int *keyboard_layout_mapping_cnt); -int find_keyboard_layout_map (const u32 search, const int search_len, keyboard_layout_mapping_t *s_keyboard_layout_mapping, const int keyboard_layout_mapping_cnt); -int execute_keyboard_layout_mapping (u32 plain_buf[64], const int plain_len, keyboard_layout_mapping_t *s_keyboard_layout_mapping, const int keyboard_layout_mapping_cnt); +int find_keyboard_layout_map (const u32 search, const int search_len, const keyboard_layout_mapping_t *s_keyboard_layout_mapping, const int keyboard_layout_mapping_cnt); +int execute_keyboard_layout_mapping (u32 plain_buf[64], const int plain_len, const keyboard_layout_mapping_t *s_keyboard_layout_mapping, const int keyboard_layout_mapping_cnt); #endif // _KEYBOARD_LAYOUT_H diff --git a/src/keyboard_layout.c b/src/keyboard_layout.c index 3c5efba93..24778e1ba 100644 --- a/src/keyboard_layout.c +++ b/src/keyboard_layout.c @@ -90,7 +90,7 @@ bool initialize_keyboard_layout_mapping (const char *filename, keyboard_layout_m return true; } -int find_keyboard_layout_map (const u32 search, const int search_len, keyboard_layout_mapping_t *s_keyboard_layout_mapping, const int keyboard_layout_mapping_cnt) +int find_keyboard_layout_map (const u32 search, const int search_len, const keyboard_layout_mapping_t *s_keyboard_layout_mapping, const int keyboard_layout_mapping_cnt) { for (int idx = 0; idx < keyboard_layout_mapping_cnt; idx++) { @@ -108,7 +108,7 @@ int find_keyboard_layout_map (const u32 search, const int search_len, keyboard_l return -1; } -int execute_keyboard_layout_mapping (u32 plain_buf[64], const int plain_len, keyboard_layout_mapping_t *s_keyboard_layout_mapping, const int keyboard_layout_mapping_cnt) +int execute_keyboard_layout_mapping (u32 plain_buf[64], const int plain_len, const keyboard_layout_mapping_t *s_keyboard_layout_mapping, const int keyboard_layout_mapping_cnt) { u32 out_buf[16] = { 0 };