Changeset f9edc7b in mainline for uspace/srv/hid/input/layout/ar.c


Ignore:
Timestamp:
2019-05-18T06:42:01Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
a8171b86
Parents:
95f603c
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-05-16 09:46:12)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-05-18 06:42:01)
Message:

Keyboard layouts can now identify itself

The structure layout_ops_t has been extended with the
parameter get_name() which returns the name of the kb layout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/layout/ar.c

    r95f603c rf9edc7b  
    4949static void ar_destroy(layout_t *);
    5050static wchar_t ar_parse_ev(layout_t *, kbd_event_t *ev);
     51static const char *ar_name(void);
    5152
    5253static const layout_ops_t layout_intern = {
    5354        .create = ar_create,
    5455        .destroy = ar_destroy,
    55         .parse_ev = ar_parse_ev
     56        .parse_ev = ar_parse_ev,
     57        .get_name = ar_name
    5658};
    5759
     
    6668layout_ops_t layout_active = layout_intern;
    6769#endif
     70
     71static const char *ar_name(void)
     72{
     73        return "ar";
     74}
    6875
    6976static wchar_t map_not_shifted[] = {
Note: See TracChangeset for help on using the changeset viewer.