Changeset 41811af in mainline for uspace/srv/hid/kbd/generic/kbd.c


Ignore:
Timestamp:
2011-06-10T10:14:26Z (14 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ab547063
Parents:
9536e6e (diff), 390d80d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/kbd/generic/kbd.c

    r9536e6e r41811af  
    4343#include <stdlib.h>
    4444#include <stdio.h>
    45 #include <ipc/ns.h>
     45#include <ns.h>
     46#include <ns_obsolete.h>
    4647#include <async.h>
     48#include <async_obsolete.h>
    4749#include <errno.h>
    4850#include <adt/fifo.h>
     
    5052#include <io/keycode.h>
    5153#include <devmap.h>
    52 
    5354#include <kbd.h>
    5455#include <kbd_port.h>
    5556#include <kbd_ctl.h>
    5657#include <layout.h>
     58
     59// FIXME: remove this header
     60#include <kernel/ipc/ipc_methods.h>
    5761
    5862#define NAME       "kbd"
     
    8892void kbd_push_ev(int type, unsigned int key)
    8993{
    90         console_event_t ev;
     94        kbd_event_t ev;
    9195        unsigned mod_mask;
    9296
     
    163167        ev.c = layout[active_layout]->parse_ev(&ev);
    164168
    165         async_msg_4(client_phone, KBD_EVENT, ev.type, ev.key, ev.mods, ev.c);
     169        async_obsolete_msg_4(client_phone, KBD_EVENT, ev.type, ev.key, ev.mods, ev.c);
    166170}
    167171
     
    174178        async_answer_0(iid, EOK);
    175179
    176         while (1) {
     180        while (true) {
    177181                callid = async_get_call(&call);
    178                 switch (IPC_GET_IMETHOD(call)) {
    179                 case IPC_M_PHONE_HUNGUP:
     182               
     183                if (!IPC_GET_IMETHOD(call)) {
    180184                        if (client_phone != -1) {
    181                                 async_hangup(client_phone);
     185                                async_obsolete_hangup(client_phone);
    182186                                client_phone = -1;
    183187                        }
     
    185189                        async_answer_0(callid, EOK);
    186190                        return;
     191                }
     192               
     193                switch (IPC_GET_IMETHOD(call)) {
    187194                case IPC_M_CONNECT_TO_ME:
    188195                        if (client_phone != -1) {
     
    222229        if (irc_service) {
    223230                while (irc_phone < 0)
    224                         irc_phone = service_connect_blocking(SERVICE_IRC, 0, 0);
     231                        irc_phone = service_obsolete_connect_blocking(SERVICE_IRC, 0, 0);
    225232        }
    226233       
Note: See TracChangeset for help on using the changeset viewer.