Changeset 41811af in mainline for uspace/srv/hid/kbd/generic/kbd.c
- Timestamp:
- 2011-06-10T10:14:26Z (14 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/generic/kbd.c
r9536e6e r41811af 43 43 #include <stdlib.h> 44 44 #include <stdio.h> 45 #include <ipc/ns.h> 45 #include <ns.h> 46 #include <ns_obsolete.h> 46 47 #include <async.h> 48 #include <async_obsolete.h> 47 49 #include <errno.h> 48 50 #include <adt/fifo.h> … … 50 52 #include <io/keycode.h> 51 53 #include <devmap.h> 52 53 54 #include <kbd.h> 54 55 #include <kbd_port.h> 55 56 #include <kbd_ctl.h> 56 57 #include <layout.h> 58 59 // FIXME: remove this header 60 #include <kernel/ipc/ipc_methods.h> 57 61 58 62 #define NAME "kbd" … … 88 92 void kbd_push_ev(int type, unsigned int key) 89 93 { 90 console_event_t ev;94 kbd_event_t ev; 91 95 unsigned mod_mask; 92 96 … … 163 167 ev.c = layout[active_layout]->parse_ev(&ev); 164 168 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); 166 170 } 167 171 … … 174 178 async_answer_0(iid, EOK); 175 179 176 while ( 1) {180 while (true) { 177 181 callid = async_get_call(&call); 178 switch (IPC_GET_IMETHOD(call)) {179 case IPC_M_PHONE_HUNGUP:182 183 if (!IPC_GET_IMETHOD(call)) { 180 184 if (client_phone != -1) { 181 async_ hangup(client_phone);185 async_obsolete_hangup(client_phone); 182 186 client_phone = -1; 183 187 } … … 185 189 async_answer_0(callid, EOK); 186 190 return; 191 } 192 193 switch (IPC_GET_IMETHOD(call)) { 187 194 case IPC_M_CONNECT_TO_ME: 188 195 if (client_phone != -1) { … … 222 229 if (irc_service) { 223 230 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); 225 232 } 226 233
Note:
See TracChangeset
for help on using the changeset viewer.