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