Changes in uspace/srv/hid/kbd/generic/kbd.c [991f645:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/generic/kbd.c
r991f645 rffa2c8ef 36 36 */ 37 37 38 #include <ipc/ipc.h>39 38 #include <ipc/services.h> 40 39 #include <ipc/kbd.h> … … 173 172 int retval; 174 173 175 ipc_answer_0(iid, EOK);174 async_answer_0(iid, EOK); 176 175 177 176 while (1) { 178 177 callid = async_get_call(&call); 179 switch (IPC_GET_ METHOD(call)) {178 switch (IPC_GET_IMETHOD(call)) { 180 179 case IPC_M_PHONE_HUNGUP: 181 180 if (client_phone != -1) { 182 ipc_hangup(client_phone);181 async_hangup(client_phone); 183 182 client_phone = -1; 184 183 } 185 184 186 ipc_answer_0(callid, EOK);185 async_answer_0(callid, EOK); 187 186 return; 188 187 case IPC_M_CONNECT_TO_ME: … … 205 204 retval = EINVAL; 206 205 } 207 ipc_answer_0(callid, retval);206 async_answer_0(callid, retval); 208 207 } 209 208 } … … 223 222 224 223 if (cir_service) { 225 while (cir_phone < 0) { 226 cir_phone = ipc_connect_me_to_blocking(PHONE_NS, cir_service, 227 0, 0); 228 } 224 while (cir_phone < 0) 225 cir_phone = service_connect_blocking(cir_service, 0, 0); 229 226 } 230 227
Note:
See TracChangeset
for help on using the changeset viewer.