Changeset 8f16ede6 in mainline for uspace/srv/hid/input/layout/cz.c
- Timestamp:
- 2019-05-14T18:24:48Z (5 years ago)
- Children:
- e89dc0b
- Parents:
- 3e1bc35
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/layout/cz.c
r3e1bc35 r8f16ede6 35 35 */ 36 36 37 #if !(defined(CONFIG_KB_LAYOUT_EXTERNAL) || defined(CONFIG_KB_LAYOUT_cz)) 38 #error Invalid configuration of CONFIG_KB_LAYOUT 39 #else 40 37 41 #include <errno.h> 38 42 #include <io/console.h> … … 47 51 static wchar_t cz_parse_ev(layout_t *, kbd_event_t *ev); 48 52 53 static const layout_ops_t layout_intern = { 54 .create = cz_create, 55 .destroy = cz_destroy, 56 .parse_ev = cz_parse_ev 57 }; 58 59 #ifdef CONFIG_KB_LAYOUT_EXTERNAL 60 layout_ops_t get_layout(void); 61 layout_ops_t get_layout(void) 62 { 63 return layout_intern; 64 } 65 #else 66 layout_ops_t layout_default = layout_intern; 67 layout_ops_t layout_active = layout_intern; 68 #endif 69 49 70 enum m_state { 50 71 ms_start, … … 56 77 enum m_state mstate; 57 78 } layout_cz_t; 58 59 #ifdef CONFIG_KB_LAYOUT_cz60 61 layout_ops_t layout_default = {62 .create = cz_create,63 .destroy = cz_destroy,64 .parse_ev = cz_parse_ev65 };66 67 #else68 69 layout_ops_t get_layout(void);70 layout_ops_t get_layout(void) {71 layout_ops_t layout_default = {72 .create = cz_create,73 .destroy = cz_destroy,74 .parse_ev = cz_parse_ev75 };76 return layout_default;77 }78 79 #endif80 79 81 80 static wchar_t map_lcase[] = { … … 447 446 } 448 447 448 #endif 449 449 450 /** 450 451 * @}
Note:
See TracChangeset
for help on using the changeset viewer.