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


Ignore:
Timestamp:
2019-05-18T06:42:01Z (5 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/cz.c

    r95f603c rf9edc7b  
    5050static void cz_destroy(layout_t *);
    5151static wchar_t cz_parse_ev(layout_t *, kbd_event_t *ev);
     52static const char *cz_name(void);
    5253
    5354static const layout_ops_t layout_intern = {
    5455        .create = cz_create,
    5556        .destroy = cz_destroy,
    56         .parse_ev = cz_parse_ev
     57        .parse_ev = cz_parse_ev,
     58        .get_name = cz_name
    5759};
    5860
     
    6769layout_ops_t layout_active = layout_intern;
    6870#endif
     71
     72static const char *cz_name(void)
     73{
     74        return "cz";
     75}
    6976
    7077enum m_state {
Note: See TracChangeset for help on using the changeset viewer.