Changeset 8f16ede6 in mainline for uspace/srv/hid/input/layout/us_qwerty.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/us_qwerty.c
r3e1bc35 r8f16ede6 35 35 */ 36 36 37 #if !(defined(CONFIG_KB_LAYOUT_EXTERNAL) || defined(CONFIG_KB_LAYOUT_us_qwerty)) 38 #error Invalid configuration of CONFIG_KB_LAYOUT 39 #else 40 37 41 #include <errno.h> 38 42 #include <io/console.h> … … 45 49 static wchar_t us_qwerty_parse_ev(layout_t *, kbd_event_t *ev); 46 50 47 #ifdef CONFIG_KB_LAYOUT_us_qwerty 48 49 layout_ops_t layout_default = { 51 static const layout_ops_t layout_intern = { 50 52 .create = us_qwerty_create, 51 53 .destroy = us_qwerty_destroy, … … 53 55 }; 54 56 55 #else 56 57 #ifdef CONFIG_KB_LAYOUT_EXTERNAL 57 58 layout_ops_t get_layout(void); 58 layout_ops_t get_layout(void) { 59 layout_ops_t layout_default = { 60 .create = us_qwerty_create, 61 .destroy = us_qwerty_destroy, 62 .parse_ev = us_qwerty_parse_ev 63 }; 64 return layout_default; 65 } 66 59 layout_ops_t get_layout(void) 60 { 61 return layout_intern; 62 } 63 #else 64 layout_ops_t layout_default = layout_intern; 65 layout_ops_t layout_active = layout_intern; 67 66 #endif 68 67 … … 267 266 } 268 267 268 #endif 269 269 270 /** 270 271 * @}
Note:
See TracChangeset
for help on using the changeset viewer.