Changes in uspace/srv/hid/kbd/generic/kbd.c [79ae36dd:57d129e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/generic/kbd.c
r79ae36dd r57d129e 43 43 #include <stdlib.h> 44 44 #include <stdio.h> 45 #include <ns.h> 46 #include <ns_obsolete.h> 45 #include <ipc/ns.h> 47 46 #include <async.h> 48 #include <async_obsolete.h>49 47 #include <errno.h> 50 48 #include <adt/fifo.h> … … 52 50 #include <io/keycode.h> 53 51 #include <devmap.h> 52 54 53 #include <kbd.h> 55 54 #include <kbd_port.h> 56 55 #include <kbd_ctl.h> 57 56 #include <layout.h> 58 59 // FIXME: remove this header60 #include <kernel/ipc/ipc_methods.h>61 57 62 58 #define NAME "kbd" … … 92 88 void kbd_push_ev(int type, unsigned int key) 93 89 { 94 kbd_event_t ev;90 console_event_t ev; 95 91 unsigned mod_mask; 96 92 … … 167 163 ev.c = layout[active_layout]->parse_ev(&ev); 168 164 169 async_ obsolete_msg_4(client_phone, KBD_EVENT, ev.type, ev.key, ev.mods, ev.c);165 async_msg_4(client_phone, KBD_EVENT, ev.type, ev.key, ev.mods, ev.c); 170 166 } 171 167 … … 178 174 async_answer_0(iid, EOK); 179 175 180 while ( true) {176 while (1) { 181 177 callid = async_get_call(&call); 182 183 if (!IPC_GET_IMETHOD(call)) {178 switch (IPC_GET_IMETHOD(call)) { 179 case IPC_M_PHONE_HUNGUP: 184 180 if (client_phone != -1) { 185 async_ obsolete_hangup(client_phone);181 async_hangup(client_phone); 186 182 client_phone = -1; 187 183 } … … 189 185 async_answer_0(callid, EOK); 190 186 return; 191 }192 193 switch (IPC_GET_IMETHOD(call)) {194 187 case IPC_M_CONNECT_TO_ME: 195 188 if (client_phone != -1) { … … 229 222 if (irc_service) { 230 223 while (irc_phone < 0) 231 irc_phone = service_ obsolete_connect_blocking(SERVICE_IRC, 0, 0);224 irc_phone = service_connect_blocking(SERVICE_IRC, 0, 0); 232 225 } 233 226
Note:
See TracChangeset
for help on using the changeset viewer.