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