Changeset 902f0906 in mainline for uspace/lib/gui/terminal.c


Ignore:
Timestamp:
2013-04-12T19:05:06Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f06dae
Parents:
07b7c48
Message:

Multiple event type support in console IPC stubs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/terminal.c

    r07b7c48 r902f0906  
    7777static void term_set_rgb_color(con_srv_t *, pixel_t, pixel_t);
    7878static void term_set_cursor_visibility(con_srv_t *, bool);
    79 static int term_get_event(con_srv_t *, kbd_event_t *);
     79static int term_get_event(con_srv_t *, cons_event_t *);
    8080
    8181static con_ops_t con_ops = {
     
    579579}
    580580
    581 static int term_get_event(con_srv_t *srv, kbd_event_t *event)
     581static int term_get_event(con_srv_t *srv, cons_event_t *event)
    582582{
    583583        terminal_t *term = srv_to_terminal(srv);
     
    585585        kbd_event_t *kevent = list_get_instance(link, kbd_event_t, link);
    586586       
    587         *event = *kevent;
     587        event->type = CEV_KEY;
     588        event->ev.key = *kevent;
    588589        free(kevent);
    589590        return EOK;
Note: See TracChangeset for help on using the changeset viewer.